Skip to content

Instantly share code, notes, and snippets.

@turdfire
turdfire / Idle.gd
Created March 2, 2025 16:11 — forked from ansimuz/Idle.gd
State Machine example for Godot 4
extends State
# Idle State example for the player
func handle_input(event: InputEvent) -> void:
pass
func update(delta: float) -> void:
owner.apply_gravity(delta)
owner.move_player()
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
@turdfire
turdfire / index.html
Created September 29, 2024 02:37 — forked from rengel-de/index.html
Timeline for d3 - proof-of-concept
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" lang="de" content="Zeitleiste, Zeitlinie, Zeitkarte, Geschichte, Chronologie">
<meta name="keywords" lang="en" content="Timeline, Timemap, History, Chronology">
<title>Timeline - Proof-of-concept</title>
<!-- That's my local d3 path. When working locally, use your local path. -->