Tunnel Run game in ~170 lines of pure JS
43 comments · 97% upvoted · source · other discussions
43 comments · 97% upvoted · source · other discussions
I didn't realize you could jump at first. I was like, just me or is this game freaking impossible?
Chuck Norris beat this game without jumping or moving left/right.
[deleted]
thanks for your feedback! in my opinion there is a lot of value in vanilla.js
Shouldn't take many more lines to make it go infinite right ?
Cool game
So game tells you "skip the black squares or you die". So you do for a while. Until all squares become black, you fall endlessly into the black void while the game is laughing at you and mockingly saying "you win, ahahaha, you win, you gullible asshole!"
I don't like this game. It's like life.
thank you for sharing. deep stuff!
Kinda shit, have you considered using more lines?
/s
[deleted]
i pasted the wrong link - sorry! the code with the explanation is here: https://slicker.me/javascript/tunnel/tunnel_run.htm
I’ve played it in my iPhone yet, u cant jump with the button u just have to tap anywhere.
yes, the button bitmap is just for orientation. the code is triggered by just the x coordinate of the event
Pretty game, why does it ended so fast ? I enjoyed myself
it got too difficult for me, but you can change the maxrows in line 20
Tapping on the controls (double tap) causes it to zoom-in for me, if there's any way to prevent that behavior.
Very cool, though. Keep iterating on it. Good job!
add some easing to the jump animation. it would go a long way. linear movement feels off
Need more speed pedal
this is amazing. i am quite new to javascript and would love to see your code. possible?
Lordthom 7 points · Apr 2021
Use the inspect tool and check the .js file? Should work! Can't confirm though as i'm currently on mobile
monica_b1998 [OP] 15 points · Apr 2021
holy crap! i pasted the wrong link - sorry! the code with the explanation is here: https://slicker.me/javascript/tunnel/tunnel_run.htm