Skip to content

Instantly share code, notes, and snippets.

View setanarut's full-sized avatar

Barış setanarut

  • Turkey
View GitHub Profile
@setanarut
setanarut / vec.go
Last active November 12, 2024 13:55
Vector2 package for Go language
package v
import (
"fmt"
"math"
)
var (
// One vector, a vector with all components set to 1.
One = Vec{1, 1}
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