Tower Climb
-
- Prole
- Posts: 21
- Joined: Mon Jan 07, 2019 12:38 pm
Tower Climb
I created this game for a game jam and I forgot to upload the game executable files to my game page and I can't fix my game page because you can't edit it until the game jam ends. So I'm completely doomed
So I decided to upload the game here.
It's a roguelike platformer where you must reach the top of the tower as fast as you can without losing your three precious hearts.
If you lose all of them, the tower's interior changes randomly, making memorizing the whole map impossible and giving you different experiences every time
Heres the .love file Heres a windows executable
So I decided to upload the game here.
It's a roguelike platformer where you must reach the top of the tower as fast as you can without losing your three precious hearts.
If you lose all of them, the tower's interior changes randomly, making memorizing the whole map impossible and giving you different experiences every time
Heres the .love file Heres a windows executable
- Attachments
-
- Tower_Climb_win.zip
- (15.29 MiB) Downloaded 337 times
Last edited by milkbomb11 on Thu Feb 14, 2019 12:20 am, edited 1 time in total.
-
- Party member
- Posts: 126
- Joined: Sat May 09, 2015 9:15 pm
Re: Tower Climb
Thanks for uploading. Is there any other way to jump besides the up arrow? I was unable to reach any platform above me... can't make it off the very ground level!?
-
- Prole
- Posts: 21
- Joined: Mon Jan 07, 2019 12:38 pm
Re: Tower Climb
So you weren't able to jump when you pressed the up arrow?randomnovice wrote: ↑Tue Feb 12, 2019 7:14 pm Thanks for uploading. Is there any other way to jump besides the up arrow? I was unable to reach any platform above me... can't make it off the very ground level!?
What version of the game were you playing (.love or windows standalone)?
Also, I tested out if the tower generator was making unreachable platforms, but it functioned correctly.
Sorry for the issue you are having right now, but the game seems to work properly on my computer
-
- Party member
- Posts: 126
- Joined: Sat May 09, 2015 9:15 pm
Re: Tower Climb
I downloaded the .love file above. It seems like the gravity is way too strong for me? I can jump, but my head reaches the top of the first block before I'm sucked back down to ground level.
Re: Tower Climb
It seems that there's a miscalculation of gravity. Changing this in Objects/PlatformerPlayer.lua:
to this:
and adjusting gravity to this value:
might fix it.
Code: Select all
function player.gravity(grv, dt)
player.yv = player.yv + grv
end
Code: Select all
function player.gravity(grv, dt)
player.yv = player.yv + grv*dt
end
Code: Select all
player.gravity(835, dt)
-
- Prole
- Posts: 21
- Joined: Mon Jan 07, 2019 12:38 pm
Re: Tower Climb
I think the reason for the bug was because of delta-time not being calculatedpgimeno wrote: ↑Wed Feb 13, 2019 12:09 pm It seems that there's a miscalculation of gravity. Changing this in Objects/PlatformerPlayer.lua:
to this:Code: Select all
function player.gravity(grv, dt) player.yv = player.yv + grv end
and adjusting gravity to this value:Code: Select all
function player.gravity(grv, dt) player.yv = player.yv + grv*dt end
might fix it.Code: Select all
player.gravity(835, dt)
P.S: Do I have to multiply dt every time some sort of variable that influences the player's movement somehow in any form increases?
Re: Tower Climb
Not necessarily, but since you're implementing custom physics, the velocity changes at a rate that depends on the time step and the current acceleration, just as the position changes at a rate that depends on the time step and the current velocity. See for examplemilkbomb11 wrote: ↑Thu Feb 14, 2019 12:24 am P.S: Do I have to multiply dt every time some sort of variable that influences the player's movement somehow in any form increases?
https://gafferongames.com/post/integration_basics/
Nice little game, by the way
-
- Party member
- Posts: 126
- Joined: Sat May 09, 2015 9:15 pm
Re: Tower Climb
Thanks, that did the trick. Fun stuff!
-
- Prole
- Posts: 21
- Joined: Mon Jan 07, 2019 12:38 pm
Re: Tower Climb
Thanks for the compliment
-
- Prole
- Posts: 21
- Joined: Mon Jan 07, 2019 12:38 pm
Re: Tower Climb
I read the article and my simple premature brain wasn't able to understand most of it. But I think this will come in handy later when I have some knowledge of high school physicspgimeno wrote: ↑Thu Feb 14, 2019 2:00 am See for example https://gafferongames.com/post/integration_basics/
Thanks for the compliment!
Who is online
Users browsing this forum: Semrush [Bot] and 3 guests