Comments (9)
@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.
@chavi362 Can you assign this issue to me, I can work on it to try resolving this bug.
from icy-tower.
Thank you so so much!!!
If you need some help please write me!
The problem should be in tower.js
from icy-tower.
@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.
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.
@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.
@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.
Thank you so so much!!
from icy-tower.
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)
- The score is below and you don't see it while playing HOT 1
- adding audio HOT 19
- Adding-note-of-thanks HOT 1
- hide verify password fiel
- more style to the home page HOT 5
- In some screens the bottom of the sign in page is hidden
- The gradient animation of game over doesn't work HOT 4
- Character hover HOT 2
- designing homepage HOT 2
- Make Icy Tower Game Mobile-Friendly HOT 10
- Issue templates HOT 2
- Config Prettier HOT 2
- UI Revamp HOT 6
- Add comments to tower.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icy-tower.