Skip to content

Instantly share code, notes, and snippets.

View nezvers's full-sized avatar

Agnis Aldiņš "NeZvērs" nezvers

View GitHub Profile
@nezvers
nezvers / better_jumping_character_example.gd
Last active July 22, 2021 09:46 — forked from sjvnnings/better_jumping_character_example.gd
An easy to work with jump in Godot
# https://youtu.be/IOe1aGY6hXA
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