Skip to content

Instantly share code, notes, and snippets.

View hodgej's full-sized avatar
💻
Listening to Depeche Mode

Jack Hodge hodgej

💻
Listening to Depeche Mode
View GitHub Profile
extends KinematicBody2D
const FRICTION = Vector2(10,0)
var speed = -800
var turn_speed = 5
var backup_speed = -250
var backup_turn_speed = 3
var motion = transform.y * speed
var motion = Vector2(0,0)
var speed = 800
var acc = 0.6
var dec = 0.9
var turn_speed = 150
func _physics_process(delta):
get_input()
var movedir = Vector2(1, 0).rotated(rotation)