Should I even bother with this jam if I'm not enjoying it?

This commit is contained in:
Kayne Ruse 2025-01-19 09:23:14 +11:00
parent 023a9ed61e
commit fa48f4c4c0
2 changed files with 5 additions and 11 deletions

View File

@ -2,14 +2,12 @@ extends CharacterBody2D
const MAGNET_FORCE: int = 1000
@export var acceleration: Vector2 = Vector2.ZERO
func _ready():
add_to_group("magnets")
max_slides = 1
func _physics_process(delta):
acceleration = Vector2()
var acceleration: Vector2 = Vector2.ZERO
#calc acceleration to other magnets
for iter in get_tree().get_nodes_in_group("magnets"):
@ -26,14 +24,8 @@ func _physics_process(delta):
var dest: float = acceleration.angle() + TAU/4
var change: float = dest - rotation
var decimal: float = change - snapped(change, 1)
print (change, " : ", 1 - decimal)
#rotate faster when closer to 0
rotate(lerp(0.0, change, 1 - decimal) * delta)
#NOTE: this doesn't work the way I want it to ;_;
rotate(change)
#apply to velocity
velocity += acceleration * delta

View File

@ -1,3 +1,5 @@
# Pirate-Jam-16
yo ho ho.
Jam link: https://itch.io/jam/pirate