Skip to content

Instantly share code, notes, and snippets.

View vanviethieuanh's full-sized avatar
👋
Contact me!

Văn Viết Hiếu Anh vanviethieuanh

👋
Contact me!
View GitHub Profile
@sjvnnings
sjvnnings / better_jumping_character_example.gd
Last active October 21, 2025 18:53
An easy to work with jump in Godot
extends KinematicBody2D
export var move_speed = 200.0
var velocity := Vector2.ZERO
export var jump_height : float
export var jump_time_to_peak : float
export var jump_time_to_descent : float
{
"\u00e1\u00bb\u00a3": "ợ",
"\u00e1\u00bb\u009b": "ớ",
"\u00e1\u00bb\u0085": "ễ",
"\u00c3\u00a0": "à",
"\u00c6\u00a1": "ơ",
"\u00e1\u00bb\u0083": "ể",
"\u00c5\u00a9": "ũ",
"\u00c6\u00b0": "ư",
"\u00c3\u00ba": "ú",
@companje
companje / map.glsl
Created January 23, 2018 22:46
map() function for GLSL known from Processing & openFrameworks
float map(float value, float min1, float max1, float min2, float max2) {
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
}
$months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',