This file contains 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 log(message: String) -> void: | |
print("-> %s %s %s " % [Time.get_time_string_from_system(), str(Time.get_ticks_msec()), message]) | |
func _ready() -> void: | |
GDLogger.log("Logger services ready") | |
This file contains 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.Linq; | |
using Godot; | |
using Godot.Collections; | |
public partial class SoundResource : Resource | |
{ | |
[Export] public string Id { get; set; } | |
[Export] public AudioStream AudioStream { get; set; } | |
} |
This file contains 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 Godot; | |
using System; | |
public partial class GameEventsManager : Node | |
{ | |
private static GameEventsManager _instance; | |
public static GameEventsManager Instance => _instance; | |
[Signal] | |
public delegate void UpdateWorldSpeedEventHandler(float speed); |
This file contains 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.Linq; | |
using Godot; | |
using Godot.Collections; | |
public partial class AudioManager : Node | |
{ | |
// ** needed sounds ** | |
// Music | |
// shoot | |
// die |
This file contains 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 generate_uuid_v4() -> String: | |
var uuid = PackedByteArray() | |
for i in range(16): | |
uuid.append(randi() % 256) | |
# Set the version to 4 (randomly generated UUID) | |
uuid[6] = (uuid[6] & 0x0F) | 0x40 | |
# Set the variant to DCE 1.1, ITU-T X.667 | |
uuid[8] = (uuid[8] & 0x3F) | 0x80 |
This file contains 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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "ExplosiveBarrel.h" | |
#include "PhysicsEngine/RadialForceComponent.h" | |
// Sets default values | |
AExplosiveBarrel::AExplosiveBarrel() | |
{ |
This file contains 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 Godot; | |
public partial class State : Node | |
{ | |
[Signal] | |
public delegate void FinishedEventHandler(string nextState); | |
[Signal] | |
public delegate void StackEventHandler(string nextState); |
This file contains 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
clock speed | |
solar flares | |
electromagnetic radiation from satellite debris | |
static from nylon underwear | |
static from plastic slide rules | |
global warming | |
poor power conditioning | |
static buildup | |
doppler effect | |
hardware stress fractures |
This file contains 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AccelerationControl : MonoBehaviour | |
{ | |
public float Speed = 50f; | |
// Use this for initialization | |
void Start () { |
This file contains 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace YakDogGames | |
{ | |
public class GameManager : MoreMountains.InfiniteRunnerEngine.GameManager | |
{ | |
public override void LoseLives(int lives) | |
{ |
NewerOlder