## Tower Climb

Show off your games, demos and other (playable) creations.
milkbomb11
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
Tower_Climb.love
Heres a windows executable
Tower_Climb_win.zip
Attachments
Tower_Climb_win.zip
Last edited by milkbomb11 on Thu Feb 14, 2019 12:20 am, edited 1 time in total.

randomnovice
Party member
Posts: 104
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!?

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

### Re: Tower Climb

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
Party member
Posts: 104
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.

pgimeno
Party member
Posts: 2337
Joined: Sun Oct 18, 2015 2:58 pm

### Re: Tower Climb

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: 21
Joined: Mon Jan 07, 2019 12:38 pm

### Re: Tower Climb

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?

pgimeno
Party member
Posts: 2337
Joined: Sun Oct 18, 2015 2:58 pm

### Re: Tower Climb

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
Party member
Posts: 104
Joined: Sat May 09, 2015 9:15 pm

### Re: Tower Climb

Thanks, that did the trick. Fun stuff!

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

### Re: Tower Climb

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

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

### Re: Tower Climb

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!

### Who is online

Users browsing this forum: MadByte and 22 guests