11 Commits

Author SHA1 Message Date
0f90dd61f2 Fix moving platform behavior
It seems like when you pass an up_vector to move_and_slide, that handles moving platforms for you! Although not 100% correctly...

The manual implementation was added again without an up_vector and that seems to work perfectly now.
2021-06-19 01:11:16 +02:00
78db1629b5 Lerp between planet-only and total gravity 2021-06-16 20:53:33 +02:00
596f4ddbc5 Some cleanup in Player 2021-06-16 20:41:26 +02:00
725c717446 Fix sliding while on planet by getting closest gravity 2021-06-16 20:33:24 +02:00
825bc032da Attempt at making grounded movement work well 2021-06-07 19:02:24 +02:00
219c8731f5 Add shooting enemy which shoots at future player pos
Works fairly well, although it doesn't account for changing acceleration which happens due to the changing gravity. I guess this is good enough, since it does hit if the player isn't careful
2021-06-07 16:41:56 +02:00
9401fc9c97 Implement standing on moving platform
This worked immediately, wtf
2021-05-05 23:55:31 +02:00
36ba889eeb Add a moving platform
No player velocity handling etc yet, just a moving platform
2021-05-05 19:59:58 +02:00
6d0da014df Add support for multiple planets 2021-04-22 23:40:01 +02:00
9eb34b431a Make gravity variable, add procedural planet texture 2021-03-31 17:05:08 +02:00
926684ca7a Movement around planet works 2021-03-25 21:47:37 +01:00