- Visual Studio Code (recommend)
- Visaul Studio Community
- Jetbrains Rider
- Requires subscription
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Typical lobby implementation, imagine this being in /root/lobby | |
extends Node | |
# Connect all functions | |
func _ready(): | |
get_tree().connect("network_peer_connected", self, "_player_connected") | |
get_tree().connect("network_peer_disconnected", self, "_player_disconnected") | |
get_tree().connect("connected_to_server", self, "_connected_ok") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Via https://godotengine.org/qa/24621/painting-game-persist-drawing | |
# Based on http://zylannprods.fr/dl/godot/godot3/ChalkBoard.zip | |
extends Control | |
var _pen = null | |
var _prev_mouse_pos = Vector2() | |
func _ready(): | |
var viewport = Viewport.new() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compilation Copyright (c) [year] [person/company] All rights reserved. | |
This copyright applies only to this software distribution package | |
as a compilation, and does not imply a copyright on any particular | |
file in the package. | |
All individual files in this compilation are placed in the public domain by | |
Wei Dai and other contributors. | |
[Credits here] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Core | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
dotnet: ["3.1.200", "3.1.201"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace SourceGen | |
{ | |
internal class SourceBuilder | |
{ | |
public SourceBuilder(string nameSpace, params string[] usings) | |
{ | |
var builder = new StringBuilder($@"// This code was auto-generated{Environment.NewLine}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 Car Pile-Up Results In New City Sculpture | |
9 Out Of 10 Sims Prefer Cranberry Jelly Over Preserves | |
After 36 Years Of Marriage, Man Discovers Wife Is Actually A Rare Yucca Plant | |
All Raccoons Cheat At Poker, Animal Researchers Say | |
Ancient Meteorite Revealed To Be Burnt Burger | |
Ball Lightning Destroys Toupee But Polishes Victim's Car | |
Bark Art Exhibition By Bark Simson | |
Big Game Bistro Opens Amid Animal Rights Protests | |
Black And White Ball Disrupted By Bank Robbery | |
Black And White Ball Preparations Underway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Example | |
on: | |
push: | |
branches: [develop, main, "feature/**", "patch/**"] | |
pull_request: | |
branches: [develop, main, "feature/**", "patch/**"] | |
jobs: | |
build_name: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
func key_value(json_path, json_file, key, is_dictionary = false): | |
var file = File.new() | |
var full_path = str(json_path + json_file); | |
if file.file_exists(full_path): | |
file.open(full_path, File.READ) | |
var result = parse_json(file.get_as_text()) | |
if is_dictionary == true: | |
result.clear() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo dotnet workload install maui | |
sudo dotnet workload install maui-maccatalyst maui-ios maui-android | |
sudo dotnet workload install wasm-tools |
OlderNewer