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 RayCast2D | |
# If this is use to disable collisions | |
export(bool) var disable_collisions = false; | |
# What to set/remove collisions against | |
export(NodePath) var physics_path | |
var physics_object | |
func _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
# ported from http://www.gizma.com/easing/ | |
# by http://th0ma5w.github.io | |
# | |
# untested :P | |
import math | |
linearTween = lambda t, b, c, d : c*t/d + b |
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 | |
onready var scene_tree: = get_tree() | |
var _path: = "res://src/Levels/Levels/" | |
var _levels: = [] | |
var _level_index: = -1 | |
var _level | |
var _container |
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
# Loads a scene in the background using a seperate thread and a queue. | |
# Foreach new scene there will be an instance of ResourceInteractiveLoader | |
# that will raise an on_scene_loaded event once the scene has been loaded. | |
# Hooking the on_progress event will give you the current progress of any | |
# scene that is being processed in realtime. The loader also uses caching | |
# to avoid duplicate loading of scenes and it will prevent loading the | |
# same scene multiple times concurrently. | |
# | |
# Sample usage: | |
# |
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
# ############################################################################ # | |
# Copyright © 2020-present Darenn Keller <[email protected]> | |
# Licensed under the MIT License. | |
# See LICENSE in the project root for license information. | |
# ############################################################################ # | |
extends Reference | |
class_name LinkParser | |
# ############################################################################ # |
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 Sprite | |
# This dictates the size of the viewport used for the "snapshot". | |
export var source_image_size : Vector2 | |
export var polygon : PoolVector2Array | |
func _ready(): | |
var viewport_container = ViewportContainer.new() | |
viewport_container.set_size(source_image_size) | |
add_child(viewport_container) |
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
# Aliases | |
alias gg='git finish' | |
alias g='git' | |
alias gst='git status' | |
alias gd='git diff' | |
alias gdc='git diff --cached' | |
alias gl='git pull' | |
alias gup='git pull --rebase' | |
alias gp='git push' |
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
tool | |
extends SceneTree | |
const PLATFORM_ANDROID = "Android" | |
const PLATFORM_HTML5 = "HTML5" | |
const PLATFORM_IOS = "iOS" | |
const PLATFORM_LINUX = "Linux/X11" | |
const PLATFORM_MAC = "Mac OSX" | |
const PLATFORM_UWP = "UWP" | |
const PLATFORM_WINDOWS = "Windows Desktop" |