Skip to content

Instantly share code, notes, and snippets.

View Zertuk's full-sized avatar
🐈
cats are cute!

Nora Forcier! Zertuk

🐈
cats are cute!
View GitHub Profile
extends Node2D
onready var player = get_node("player")
onready var camera = get_node("player/Camera2D")
onready var temp = get_node("temp")
onready var transition = get_node("CanvasLayer/game-ui/transition")
var pauseUnits = false
var currentLevel = ""
var initLoad = true
var isDev = true
@Zertuk
Zertuk / player.gd
Created February 19, 2019 18:49
player controller
extends KinematicBody2D
# regular vars
var state = STATE.DEFAULT
var velocity = Vector2(0, 0)
var direction = -1
var health = 5
var maxHealth = 5
var spirit = 10
var tongue
@Zertuk
Zertuk / text-box-label-container.gd
Last active May 10, 2024 06:03
godot textbox with typewriter effect, shake, wavy, slow, and colored letters
extends Node2D
var timeToShow = 5
var originalPosition
var waveDelay = 0
var isWavy = false
var wavyDirection = 1
var isShakey = false