Simple scene manager with simple transition effects using RPG Maker greyscale images. Doesn't do async loading at all, but that's fine for small games that just want a little pizzaz to their visuals. Just drop the file into your project and add it to your Autoloads. Then start doing SceneManager.change_scene('res://myscene.tscn')
instead of get_tree().change_scene('res://myscene.tscn')
and you'll be good to go.
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 | |
var next_scene = null | |
var is_ready setget _finish_transition | |
onready var anim = $Fader/AnimationPlayer | |
func _finish_transition(value): | |
if value: | |
is_ready = true |
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
from sanic import Sanic | |
from consul.aio import Consul | |
import default_settings | |
import asyncio | |
""" | |
Initialize application | |
""" |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
public class RedirectInput : StandaloneInputModule { | |
// letterboxed fixed area | |
[SerializeField] Vector2 fixedResolution; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Tilemaps; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace Adventure.Tilemaps |
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.Collections.Generic; | |
/// <summary> | |
/// Very simple entity-component system | |
/// Provides just the basics, doesn't need to be very efficient because it's | |
/// most valuable for smaller games without a shit ton of entities | |
/// </summary> | |
namespace github.io.nhydock.ECS | |
{ |
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
Simple function created so you can make reducers that are classes in ES6. | |
I did this because I found the switch-statement approach to be rather messy | |
once the action handling within the reducer gets substantially large. |
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
public class EventPool extends SharedInheritenceReflectionPool<Event> { | |
public EventPool () { | |
this(16, Integer.MAX_VALUE); | |
} | |
public EventPool (int initialCapacity) { | |
this(initialCapacity, Integer.MAX_VALUE); | |
} |
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
3ch Language Specification | |
***keywords*** | |
always lower case | |
var - declare variable | |
val - declare constant | |
cls - class | |
slf - self (this) | |
sup - super |
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/sh | |
device='/dev/sr0' | |
mount=$(mount | grep $device | cut -d " " -f 3) | |
DVD_NAME=$(find $mount -name "SLUS_*" | grep -o '[^/]*$') | |
blockcount=$(isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4) | |
blocksize=$(isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5) | |
dd if=$device bs=$blocksize count=$blockcount of=$DVD_NAME.iso |