Pizza RPG Part 4 - Grid Based Movement

  Рет қаралды 23,079

Drew Conley

Drew Conley

Күн бұрын

In this episode of our Pizza Legends game, we add movement on a grid in the style of Pokemon. The player will be able to control the hero with both arrow keys and WASD. We'll also refactor some of our previous coordinate code to set us up for subcell positioning in the future.
Starting Code:
drive.google.c...
Ending Code:
drive.google.c...
** Links **
More about Pizza Legends:
coopmode.dev/s...
💬 Discord
Need help, have a question, or want to share your game dev project?
Join our Discord. Here's the link: / discord
✉️ Join my Email List!
Get updated when new videos are ready.
You'll get a free RPG Sprite Pack in your inbox, too:
us13.list-mana...

Пікірлер: 56
@LucasDev
@LucasDev 3 жыл бұрын
Hi Drew, please continue with this amazing playlist. I am a software developer for almost a decade and a huge game lover. I never thought a game like this would be possible to make using only html/css/js, every time I wanted to do something similar, I was thinking about rpg maker or something related, but the idea of create everything from scratch is amazing. congratulations. I didnt watch all videos yet, but surely will do and create my version of Pizza Legends soon.
@darmilouch2808
@darmilouch2808 2 жыл бұрын
Hi from France :D ! It's amazing, please don't stop this project, I learn so much thx !
@afili7265
@afili7265 3 жыл бұрын
Building a game is way complex for me then building a webpage. Like i am so used to build webpage, then i can architect everything in my head. But because i never made games (only web puzzles), its super hard to figure out all required pieces which are needed. good job, interested in tutorial how ti make a grid / map and how to do animations in game. The rest should be easier. Planning to do survival game with sockets. Thats why i want to say Thank you, and good job.
@tranlan4265
@tranlan4265 3 жыл бұрын
Waiting for next video :d
@muhammadamirhuzaifahbinsam4541
@muhammadamirhuzaifahbinsam4541 10 ай бұрын
Thank You Man!!! My team really loves your videos! FrFr keep up the grind!
@Falney
@Falney 2 жыл бұрын
I actually left the NPC as a game object. I was figuring that, if you didn't, I was going to make a new class for the NPC's then they could have pre-programmed movement. That being said, I kinda saw the NPC moving with the PC coming.
@muhammadhusseinnematollahi9867
@muhammadhusseinnematollahi9867 2 жыл бұрын
Hey Drew, thanks for your awesome tutorial I was wondering if i can add an element on screen like a btn that can act like a touch screen arrow keys, How can i assign an e.code for that btn that can be used in this directionInput map?
@xycko4122
@xycko4122 2 жыл бұрын
the same question for me, man… i’ve been trying to add a touch control.
@Magistrado1914
@Magistrado1914 8 ай бұрын
Excellent video. Viewed on 2024/09/01
@heliosaiden
@heliosaiden 8 ай бұрын
With my limited knowledge about js, this series has me learning A LOT of things i didn't know I was missing. And learning about game development process is such a thrill. Simply just AMAZING!
@2infamouz475
@2infamouz475 2 жыл бұрын
Every time I get lazy on my rpg project I end up watching another video in this series & being inspired again. Appreciate this a lot. Shared 2 LinkedIn so hopefully others are inspired as well 🙏
@McFamily25
@McFamily25 Жыл бұрын
I tried to like it twice, but it only lets me like it once.
@Tecno_Senior
@Tecno_Senior 2 жыл бұрын
Make a simple card game. Like yugioh.
@SamuelKoh521
@SamuelKoh521 Жыл бұрын
Hi, i took your end code you left in your description below, and ran it on my browser. Followed the steps you did, except that the hero character does not move when i try to press the arrow keys. However, there is the printing of the 'left', 'down', etc, printed in the console. This shows that the browser knows i am pressing the arrow keys, and which arrow keys, but does not move the character at all. Would appreciate if anyone could help, thanks!
@whyareyoureadingthissss
@whyareyoureadingthissss 3 ай бұрын
I'm 9 months late but experiencing this problem aswell... did you find an answer? Dw if you can't remember though
@mattmcnett2635
@mattmcnett2635 3 жыл бұрын
Great job again!!!! This is so exciting!
@jhonpayne1747
@jhonpayne1747 2 ай бұрын
Would running it on vs code live server work. Or do I need that python code server he made in video 1?
@NickTorius
@NickTorius Ай бұрын
yes it does, im using live server and it works fine
@mitejmadan8672
@mitejmadan8672 3 жыл бұрын
How to design such maps. Is there any specific tool or software used to create such maps?
@douqwry
@douqwry 3 жыл бұрын
i'm not sure, but you can check his "tile set map editor" video and make your own maps with it ~
@tariklancelot6748
@tariklancelot6748 Жыл бұрын
Who felt like just copying the code at about 15'. How to handle user input seems a bit confusing to me at the moment ?! Nonetheless , high quality content, mille mercis !
@fabioculmone2652
@fabioculmone2652 Жыл бұрын
i called my Hero... Gennarino the Pizza Hero from Little Italy ... and i laughed so much ahahahahaha i love it
@siete3d950
@siete3d950 2 жыл бұрын
I had a typo on movingProgressRemaining and it took me about 2-3 hours to find out, now I can laugh xD
@evgeniygaragan2184
@evgeniygaragan2184 2 жыл бұрын
Very interesting! I'm making my first game along with you! (WOW!!)
@victorhugofranciscon7899
@victorhugofranciscon7899 Жыл бұрын
I am loving this tutorial series, maybe after I finish the tutorials I will put my own ideas to make my very own game using this code base.
@fingersnap
@fingersnap 2 жыл бұрын
Been working very slowly following these tutorials for a week but I finally finished this part. Definitely very satisfying to finally get the main character moving around!
@ИгорьШуманский-т9л
@ИгорьШуманский-т9л 2 жыл бұрын
Hello Bro what theme are you using vs code editor?
@liotr6737
@liotr6737 2 жыл бұрын
Thank you for the video! It's very cool :D
@allanaek
@allanaek 3 жыл бұрын
When is the next one coming out?! Awesome videos! Maybe propose some exercises at the end?
@uppast420am
@uppast420am Жыл бұрын
great tutorial as always, glad i'm a hardcore gamer in your eyes lmao
@AutMouseLabs
@AutMouseLabs 2 жыл бұрын
Wow, just every video I learn more about what the game engines I have used are doing! Thanks for this series!
@andremp1927
@andremp1927 2 жыл бұрын
Continue pls, so f.. good, much ty
@trongph.animation
@trongph.animation 2 жыл бұрын
Hi Drew, I noticed that all gameObject are being render to canvas at the same time, so we can't decided which character is drawn first. What if the player is rendered first and the npc 2nd, how the player sprite's show above the npc when we move to in front of the npc (because we currently update the position, not actual re-draw with different order). Thank you all for this amazing series
@uppast420am
@uppast420am Жыл бұрын
not completely sure why that would be necessary unless you would want to change the order in which they're drawn based on their Y value, say if hero was above npc1, npc1 would be drawn first making it appear as if they are in front; and vice versa.
@nomoremuda
@nomoremuda 3 жыл бұрын
I need more... more.... MOOOOOOOORRREEEE!!!!!
@diegoferreira3145
@diegoferreira3145 3 жыл бұрын
Your videos are very good, please continue!
@m.a.3083
@m.a.3083 Жыл бұрын
Really enjoying this series!
@angrycatpico63
@angrycatpico63 3 жыл бұрын
Exactly what i was waiting for :)
@UnderArea51
@UnderArea51 3 жыл бұрын
Question: Would a Raspberry-Pi 4 work as a development computer for a game project like this? I'm trying find an affordable small PC to develop on. Shoe-string budget.
@DrewConley
@DrewConley 3 жыл бұрын
I think it would be fine for developing, but it may run the game at a little slow? I don't have any experience with Raspberry Pi's, but maybe somebody else here will know and comment. Good luck!
@afili7265
@afili7265 3 жыл бұрын
You can spin up multiple basic websites and run them. But game needs gpu. You can build a ton of stuff on top of pi4.
@ilug5197
@ilug5197 2 жыл бұрын
i saw a rasberry pi video running minecraft at 14~ fps, this will run smooth
@rock4459
@rock4459 3 жыл бұрын
this what we have been waiting for 🖒
@olivermetz8242
@olivermetz8242 Жыл бұрын
Loving the series so far, just wondering is there anyway to make the character like bounce a little or hop to the next tile they work, as I love grid movement and having that little effect adds that detail, just wondering if this is possible?
@DrewConley
@DrewConley Жыл бұрын
Totally possible! The y offset of the character could be computed by progress through the move, like have them rise up in the middle then back down by the end. Love this idea
@guiguetzomega
@guiguetzomega 3 жыл бұрын
Awesome! How are you planning on collision checking? Calculating overlapping position between two objects?
@DrewConley
@DrewConley 3 жыл бұрын
Exactly, yes. That’s coming soon!
@douqwry
@douqwry 3 жыл бұрын
ayo, a new tutorial c:
@Akosiyawin
@Akosiyawin 2 жыл бұрын
It would be really great if we could implement something like 'Delta Time' if you are familiar in unity. I would really love to, but I have no idea how that would be possible 😀
@DrewConley
@DrewConley 2 жыл бұрын
Good call - delta time is definitely the way to be. It’s possible to pass in the amount of time since last frame to the loop frame with a little bit of Date.now() diffing
@independentnavbcdeveloper3342
@independentnavbcdeveloper3342 Жыл бұрын
I started learning here and my target for 2023 is to be a game developer too!
@uppast420am
@uppast420am Жыл бұрын
this is wholesome, i hope it works out man
@austinmurphy9074
@austinmurphy9074 2 жыл бұрын
P I Z Z A L E G E N D S !
@SwagBudder
@SwagBudder 2 жыл бұрын
I'm struggling to change the speed of the sprite, I work on 64-bit and the movement of the character is a bit slow, does anyone know how to fix it?
@0AwS
@0AwS 2 жыл бұрын
position.x -= ( a larger amount );
@ascb
@ascb 2 жыл бұрын
change the numbers in the direction update map in the person js file and decreast this.movingprogressremaining by that same number in the updateposition function
Pizza RPG Part 5 - Character Animations #pizzalegends
18:06
Drew Conley
Рет қаралды 15 М.
I redesigned my game
23:32
jdh
Рет қаралды 16 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 1,9 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 1,9 МЛН
2D Game Art Tutorial In 10 Minutes
9:08
Thomas Brush
Рет қаралды 22 М.
JavaScript 2D Game Tutorial
44:42
Franks laboratory
Рет қаралды 171 М.
Grid Based Game with JavaScript Part2 | Moving a Player
23:53
Game Code Bites
Рет қаралды 3,3 М.
Exploring grid-based movement
5:30
GDQuest
Рет қаралды 78 М.
Pizza RPG Part 7 - Walls & Collisions
22:07
Drew Conley
Рет қаралды 15 М.
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 306 М.
What Makes a Game Feel Mysterious?
29:37
Game Maker's Toolkit
Рет қаралды 220 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН