Coder Social home page Coder Social logo

Bug: hero drops about icy-tower HOT 9 OPEN

chavi362 avatar chavi362 commented on September 22, 2024
Bug: hero drops

from icy-tower.

Comments (9)

chavi362 avatar chavi362 commented on September 22, 2024 1

@HadassaAvimor , I must tell you that I don't know exactly why does the problem happen,
So, maybe it has nothing to do with the gravity and it connected to the moving blocks or moovingScreen.
I'm now working on adding comments.

from icy-tower.

HadassaAvimor avatar HadassaAvimor commented on September 22, 2024

@chavi362 Can you assign this issue to me, I can work on it to try resolving this bug.

from icy-tower.

chavi362 avatar chavi362 commented on September 22, 2024

Thank you so so much!!!
If you need some help please write me!
The problem should be in tower.js

from icy-tower.

HadassaAvimor avatar HadassaAvimor commented on September 22, 2024

@chavi362 When does this bug happen to you? Because I ran several times and it didn't happen to me.
(I mean - is it at a specific player level, for example?)
Beyond that, I think that documenting functions may also be useful in solving bugs.
Please let me know when the bug occurs.

from icy-tower.

chavi362 avatar chavi362 commented on September 22, 2024

Hello @HadassaAvimor !
I think at the beginner level it doesn't happen. Happens more at the advanced level and at the higher level. As if after I start playing suddenly the character falls. Basically, there should be a force of gravity that pulls the character down because otherwise you are not disqualified. But sometimes it gets too much.
the gravity function is this:function gravity() {
if (character.onGround == false) {
character.distanceY += game.gravity;
character.distanceY *= game.drag;
} else {
character.distanceY = 0;
}
character.distanceX *= character.onGround ? game.groundDrag : game.drag;
}
andthis declere the variables:const game = {
gravity: 1.0,
drag: 0.999,
groundDrag: 0.9,
}
But, if I do low gravity the game becams very easy. You can press consecutive short presses on the above arrow andto not fall never.
I want that the game will be like the link below . I mean that the game will be challenging but possible. Now the condition it that sometimes it's impossible (also for game expert) not to fall. I think that you'll play more you'll noticed what I mean.
I want us to work on the somersaults later. This is my goal going forward.
I want that right now those who train a lot can be very successful at any level.
I hope that you understood me, if you play the game a little you will see that sometimes you fall for no reason as if you feel that you have no control over the character.
This is a link to a video about the original play: https://www.youtube.com/watch?v=dup-U7jSHzs
Thank you so much!!
Best regard!!!
Chavi

from icy-tower.

chavi362 avatar chavi362 commented on September 22, 2024

@HadassaAvimor , how are you?
I added comments and arranged the code in tower.js, so, I recommend you to work on the updated version.
Thank you for your work!

from icy-tower.

HadassaAvimor avatar HadassaAvimor commented on September 22, 2024

@chavi362 The comments are great and explain the code well.
I played the game several times and the bug you describe did not happen to me, but I tried anyway to go through the code and see if there is anything that could explain it, and I could'nt find.
If you say that at the low level the bug does not occur, I think it simply means that the game works great and the more advanced levels are difficult for the game...
In any case, I have no way to fix a bug that I don't even see, sorry...
wish you luck!

from icy-tower.

chavi362 avatar chavi362 commented on September 22, 2024

Thank you so so much!!

from icy-tower.

chavi362 avatar chavi362 commented on September 22, 2024

Again, thank you so so much!!!
Sorry for driving you crazy...
May you take another issue?
If you find this project useful or interesting, please consider giving it a star ⭐️!
Thanks
Chavi

from icy-tower.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.