Player-vs-AI Games (JavaScript tutorial)

  Рет қаралды 7,903

Franks laboratory

Franks laboratory

Күн бұрын

Пікірлер: 60
@autozone5335
@autozone5335 6 ай бұрын
A bomb of awesomeness just exploded !
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Bang! 😂
@kiranpatel3753
@kiranpatel3753 6 ай бұрын
Hey frank.. I actually wanna share some of my codes with u so how can i?... Btw amazing video 👌👌👌
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
You can email me, I respond to all email but it might take me a while
@atandatosinpeter427
@atandatosinpeter427 3 ай бұрын
I made it! One concern, though, is that, I have to set eventInterval in game class to 120 to work smoothly on devices of 2GB RAM which makes the snakes' movement faster than I want. Is there a way to fix this?
@silentworldsound
@silentworldsound 4 ай бұрын
wow, this video is very helpfull for learning js, can you please make bubble shoter game in js?
@Radu
@Radu 6 ай бұрын
Amazing how you are able to teach such polished projects. I don't have the patience... Are you doing these for your actual work or just to teach on KZbin?
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Your projects are even more elaborare. I cant even imagine how much work you put into your last course. I do it just do it for fun. I need to find a job where they would pay me for these haha
@Radu
@Radu 6 ай бұрын
@@Frankslaboratory some of my code-bases are quite big, but the end result doesn't really look like an 'end-product' in any of them. I mostly focus on the learning experience.
@M4rt1nX
@M4rt1nX 6 ай бұрын
Omg, I love this. Thank you Frank!! When you read AI you think on big models, but it is always a joy to know that we build custom AIs for the projects. I'm very happy as well that you are implementing more user menus and UI in the projects.
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Hi. Yea. AI used in games since the 80s is not the same exact thing as machine learning and language models. It can be quite simple actually as I show here
@MeinDeutschkurs
@MeinDeutschkurs 4 ай бұрын
Why responsiveness, if touch is completely ignored? Yes, different screen sizes on Desktops. My stats show that 85% use mobile devices nowadays. I think touch controls are a must. And a pain to implement properly.
@AyoubNachat-wm4no
@AyoubNachat-wm4no 4 ай бұрын
actually its easy, you can just declare a variable that will contain the clicked button (keyboard or html buttons showed for mobile users) and the remap to the game action. if you want touch support for your game instead of html buttons to register your game actions you may already find a library that register touch events instead of implementing it yourself.
@MeinDeutschkurs
@MeinDeutschkurs 4 ай бұрын
@@AyoubNachat-wm4no I figured your that this is not enough. Unfortunately, iOS, iPadOS, Android, with or without keyboard inputs. There is lots to consider. In worse case, multiple inputs are triggered. Viewport behavior… It‘s a mess if you want to be compatible with several inputs and or platforms.
@AyoubNachat-wm4no
@AyoubNachat-wm4no 4 ай бұрын
@@MeinDeutschkurs it's game that runs in the web what does the OS have to do with compatibility?
@MeinDeutschkurs
@MeinDeutschkurs 4 ай бұрын
@@AyoubNachat-wm4no interface behavior. Just try to implement the inputs for any game on all platforms.
@AyoubNachat-wm4no
@AyoubNachat-wm4no 4 ай бұрын
@@MeinDeutschkurs i was only talking about devices that have a browser in them, and since the game controls are in the browser environment (a simple html button that fires an onclick function) everything is going to work good.
@fredl9815
@fredl9815 6 ай бұрын
Thanks a lot for your tutorial. I have a technical question, is the canvas suitable for games in terms of performance?
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Hi, yes canvas is made for handling graphics, it is good for performance. With more complex games it depends on how you write and optimise your code, same as any other language.
@rathanveerarts
@rathanveerarts 4 ай бұрын
Supper nice 🎉🎉
@naomiorinahsule3422
@naomiorinahsule3422 3 ай бұрын
Make a pacman game
@braveitor
@braveitor 6 ай бұрын
Great tutorial. Lots of great stuff there. Even the game seems fun. Thank you.
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Hi, yea there was a lot of stuff to cover, I think people might prefer shorter classes.
@braveitor
@braveitor 6 ай бұрын
@@Frankslaboratory Well, I'm more into React and Javascript frameworks nowadays, so when I see lot of staff that could be coded as components, or even separate classes, I can see the advantage in organization using that modular code, but I always learn something now with your tutorials. :)
@douglascounts4634
@douglascounts4634 6 ай бұрын
@@braveitorWell, you will not find React very useful for canvas drawing as it isn’t changing the DOM. You could wrap up the entire project into a single React component though where the canvas element is inside a React component. It might generate many DOM updates that way though. So you would have to work around that.
@braveitor
@braveitor 6 ай бұрын
@@douglascounts4634 Yes, you are right. I meant that those concepts of reusable components are really useful as they avoid to write time and time again similar code. In this case maybe using several classes (for players, objects, even controls...) could make the code much readable, organized and expandable. :)
@javifontalva7752
@javifontalva7752 5 ай бұрын
Wow Impressive!!!
@worldbest3097
@worldbest3097 5 ай бұрын
i actually memorized all script from Franklab. it helped me to refactor other youtuber's game code into my own way(frank's style). Your contents is really freaking great and teach me way to how to catch fish! I really appreciate!
@javifontalva7752
@javifontalva7752 5 ай бұрын
When can we see a platform game in javascript? Just an idea.
@Frankslaboratory
@Frankslaboratory 4 ай бұрын
I will do a platformer for sure, my favourite type of game, after tower defense I guess :D
@javifontalva7752
@javifontalva7752 5 ай бұрын
I would like to watch a tutorial about how to create these beautiful images.
@Frankslaboratory
@Frankslaboratory 4 ай бұрын
I would love to do it but the way KZbin works it's not allowed, algorithm... :D
@bramtea5790
@bramtea5790 4 ай бұрын
Love this👍, Thank you!!
@Frankslaboratory
@Frankslaboratory 4 ай бұрын
Glad you found some value
@leolopezdeveloper
@leolopezdeveloper Ай бұрын
This looks nice thanks.
@Frankslaboratory
@Frankslaboratory Ай бұрын
Thank you
@karlkoch3345
@karlkoch3345 5 ай бұрын
Yet another amazing learning experience, big fan of Franks Laboratory! Go Void Wolf! Thanks Frank!
@Frankslaboratory
@Frankslaboratory 4 ай бұрын
Good to see you here Karl, thank you for your kind comment
@melodydrase
@melodydrase 5 ай бұрын
thanks frank 👍👍👍
@Frankslaboratory
@Frankslaboratory 4 ай бұрын
Glad to help :D
@ericfourmaux833
@ericfourmaux833 6 ай бұрын
Very good tutorials, as usual! Love your chanel! :) I'd love to see a platform game tutorial with scrolling! :) Great work Frank! Thank You!
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
I want to remake some classic arcade games lime Megaman or the original Mario but need to find a good way to teach tile maps to make the levels decent size
@AlAmin-un7zx
@AlAmin-un7zx 6 ай бұрын
You are awesome Frank. We love you. Thank you for the tutorial.
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Thank you. Very happy to read this comment ☺️
@NoobOp-p9g
@NoobOp-p9g 6 ай бұрын
🔥🔥🔥
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
🖖
@playmambo9573
@playmambo9573 6 ай бұрын
Wow!!!! Thank you!!
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Glad to help :D
@king_lel_HD
@king_lel_HD 6 ай бұрын
OMG new Video 😍😍
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Yea it's been a while 😅
@worldbest3097
@worldbest3097 6 ай бұрын
damn, today!!! lol
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
😅
@ankushvishwakarma5074
@ankushvishwakarma5074 6 ай бұрын
Pumped up🎉🎉
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Hi Ankush. Glad to hear
@crispendragon1139
@crispendragon1139 6 ай бұрын
thanks! You are the best. More videos like this please!!!
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
Glad you found some value
@crispendragon1139
@crispendragon1139 6 ай бұрын
@@Frankslaboratory thanks to you so much. I learned so much from you Greetings and Blessings from Chile!
@philliplam2704
@philliplam2704 6 ай бұрын
Holy crap you are a god
@Frankslaboratory
@Frankslaboratory 6 ай бұрын
It's a simple game, it just has more parts than what I usually do. Trying to see what people prefer
Making a Game in JavaScript with No Experience
5:49
Goodgis
Рет қаралды 845 М.
AI Learns Insane Monopoly Strategies
11:30
b2studios
Рет қаралды 10 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 18 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,1 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 11 МЛН
How many kernel system calls do runtimes make?
19:18
Hussein Nasser
Рет қаралды 22 М.
JavaScript Game Tutorial - Advanced Techniques
36:48
Franks laboratory
Рет қаралды 26 М.
Writing a game the hard way - from scratch using C. #1
34:20
NCOT Technology
Рет қаралды 129 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 313 М.
Learn Creative Coding: Image Effects
39:10
Franks laboratory
Рет қаралды 14 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
Build an e-commerce site... with a twist - Web Dev Challenge S1E3
26:20
Learn With Jason
Рет қаралды 161 М.
I Tried Making a 3D RPG Game in JavaScript
14:19
SimonDev
Рет қаралды 1,2 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 18 МЛН