Тёмный

Build Jumping Game - HTML Canvas | Infinite Runner 

Qixotl LFC
Подписаться 1,7 тыс.
Просмотров 7 тыс.
50% 1

In this video you will learn how to create this infinite jumping style game using the vanilla HTML canvas, so no frameworks will be necessary. The game is question is one of those infinite type of arcade games, where the game runs for as long as the user continues to jump over the obstacles and not mess up by colliding into one of them. If this does happen then the game will end & the users high score will show up, from this point the user will be able to restart the game from scratch if they want to.
To make things more challenging, the game speeds up if the player manages to survive for an extended period of time, it will continue to do this until the player does eventually mess up, this will give the game a natural skill curve where difficulty smoothly increases.
While there may be other videos that teach a similar style of game already on RU-vid. The main attraction of my game is the rotation animation that can be seen on the player square when it jumps into the air to avoid an obstacle. There are also cool sound effects in my game that are missing from other people’s games of similar type. The sound effects where chosen to be as appealing as possible & give the game a jovial feel.
📚 Materials/References:
Link to the completed applications Code Pen page: codepen.io/LFC...
Coin SFX: ia801409.us.ar...
Jump SFX: ia801400.us.ar...
Game Over SFX: ia601405.us.ar...
🧠 Concepts Covered:
How to make the player object jump into the air & then come back down again.
How to make specific objects rotate in canvas without the rotation effecting other objects.
How to make an object move in the same direction whilst also rotating.
How to increase the speed of the game as time goes by.
How to infinitely spawn enemies over an indefinite period of time.
💻 Technologies used:
HTML5 and the canvas API
JavaScript (No jQuery)
CSS (No Bootstrap)
If you enjoyed this video then please consider liking 👍 and subscribing. You would be doing me a huge favour if you did this and it would be greatly appreciated ❤️ by me. Likewise, if you have any queries or comments that you want answered. Then please, don’t hesitate post them down into the comments box below. I would love to hear back from you and will answer all of your questions to the best of my ability.
Stay awesome guys. Peace and love. ☮️❤️
#HTML#css#canvas#canvasapi#JavaScript#Java#gamedev#webdev#platformer#2dgame#makegame#JavaScriptCanvas

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@SeezyP
@SeezyP 2 года назад
This was a really well done tutorial mate! Surely deserves more views, unless I was the only few looking for this ahaha
@ashwathvasudevan4330
@ashwathvasudevan4330 3 года назад
it was really helpful. thanks a lot
@carolcourtney772
@carolcourtney772 3 года назад
That's great 👍
@prachigupta1990
@prachigupta1990 3 года назад
Hi! Amazing tutorial! What should we do replace the black block block with an image of a character? Can you please guide?
@bryanfernando8504
@bryanfernando8504 2 года назад
Great tutorial btw! I have a question, as long the player can't move respect to x axis, so there's no change in the x position, is it possible to add a fade animation behind the player using ctx.fillStyle = 'rgba(255, 255, 255, 0.3) and ctx.fillRect(0, 0, canvas.width, canvas.height) instead of ctx.clearRect(0, 0, canvas.width, canvas.height) or anything else? Thanks!
@ramyasrisydu9506
@ramyasrisydu9506 3 года назад
How to jump the black cube
@lukechopper22
@lukechopper22 3 года назад
Press the space bar
@arkinsantos5737
@arkinsantos5737 2 года назад
bruh
@G3BRU1K3R5N44M
@G3BRU1K3R5N44M 2 года назад
I would suggest not jumping non-stop in the beginning of the video, I cannot hear anything
Далее
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 3,1 млн
PERFECT PITCH FILTER.. (CR7 EDITION) 🙈😅
00:21
Просмотров 3,3 млн
HTML5 Canvas CRASH COURSE for Beginners
51:26
Просмотров 218 тыс.
6 Months of Learning JavaScript Game Dev in 6 Minutes
6:35
The Easiest Javascript Game Ever
8:34
Просмотров 966 тыс.
JavaScript Game Tutorial with HTML Canvas
27:45
Просмотров 79 тыс.
Sprite Animation in JavaScript
46:05
Просмотров 168 тыс.
Collision Detection Between Rectangles in JavaScript
5:53
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 3,1 млн