Tower Climb

Show off your games, demos and other (playable) creations.
milkbomb11
Prole
Posts: 20
Joined: Mon Jan 07, 2019 12:38 pm

Tower Climb

Post by milkbomb11 » Tue Feb 12, 2019 10:04 am

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 :D


Heres the .love file
Tower_Climb.love
(12.07 MiB) Downloaded 158 times
Heres a windows executable
Tower_Climb_win.zip
(15.29 MiB) Downloaded 86 times
Attachments
Tower_Climb_win.zip
(15.29 MiB) Downloaded 73 times
Last edited by milkbomb11 on Thu Feb 14, 2019 12:20 am, edited 1 time in total.

randomnovice
Citizen
Posts: 71
Joined: Sat May 09, 2015 9:15 pm

Re: Tower Climb

Post by randomnovice » 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!?

milkbomb11
Prole
Posts: 20
Joined: Mon Jan 07, 2019 12:38 pm

Re: Tower Climb

Post by milkbomb11 » Wed Feb 13, 2019 2:32 am

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!?
So you weren't able to jump when you pressed the up arrow?
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 :(

randomnovice
Citizen
Posts: 71
Joined: Sat May 09, 2015 9:15 pm

Re: Tower Climb

Post by randomnovice » Wed Feb 13, 2019 7:13 am

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.

User avatar
pgimeno
Party member
Posts: 1552
Joined: Sun Oct 18, 2015 2:58 pm

Re: Tower Climb

Post by pgimeno » Wed Feb 13, 2019 12:09 pm

It seems that there's a miscalculation of gravity. Changing this in Objects/PlatformerPlayer.lua:

Code: Select all

function player.gravity(grv, dt)
  player.yv = player.yv + grv
end
to this:

Code: Select all

function player.gravity(grv, dt)
  player.yv = player.yv + grv*dt
end
and adjusting gravity to this value:

Code: Select all

  player.gravity(835, dt)
might fix it.

milkbomb11
Prole
Posts: 20
Joined: Mon Jan 07, 2019 12:38 pm

Re: Tower Climb

Post by milkbomb11 » Thu Feb 14, 2019 12:24 am

pgimeno wrote:
Wed Feb 13, 2019 12:09 pm
It seems that there's a miscalculation of gravity. Changing this in Objects/PlatformerPlayer.lua:

Code: Select all

function player.gravity(grv, dt)
  player.yv = player.yv + grv
end
to this:

Code: Select all

function player.gravity(grv, dt)
  player.yv = player.yv + grv*dt
end
and adjusting gravity to this value:

Code: Select all

  player.gravity(835, dt)
might fix it.
I think the reason for the bug was because of delta-time not being calculated
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?

User avatar
pgimeno
Party member
Posts: 1552
Joined: Sun Oct 18, 2015 2:58 pm

Re: Tower Climb

Post by pgimeno » Thu Feb 14, 2019 2:00 am

milkbomb11 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?
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 example
https://gafferongames.com/post/integration_basics/

Nice little game, by the way :)

randomnovice
Citizen
Posts: 71
Joined: Sat May 09, 2015 9:15 pm

Re: Tower Climb

Post by randomnovice » Thu Feb 14, 2019 5:32 am

Thanks, that did the trick. Fun stuff!

milkbomb11
Prole
Posts: 20
Joined: Mon Jan 07, 2019 12:38 pm

Re: Tower Climb

Post by milkbomb11 » Thu Feb 14, 2019 8:58 am

randomnovice wrote:
Thu Feb 14, 2019 5:32 am
Thanks, that did the trick. Fun stuff!
Thanks for the compliment :D

milkbomb11
Prole
Posts: 20
Joined: Mon Jan 07, 2019 12:38 pm

Re: Tower Climb

Post by milkbomb11 » Thu Feb 14, 2019 9:13 am

pgimeno wrote:
Thu Feb 14, 2019 2:00 am
See for example https://gafferongames.com/post/integration_basics/
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 physics
pgimeno wrote:
Thu Feb 14, 2019 2:00 am
Nice little game, by the way :)
Thanks for the compliment! :D

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests