Тёмный
RedFlyer Coding
RedFlyer Coding
RedFlyer Coding
Подписаться
Комментарии
@Tawa-b5v
@Tawa-b5v Месяц назад
Thank you for this video it's one of the best tutorials I've seen, I like that it's so beginner friendly, even though I've already done beginner HTML tutorials multiple times I keep forgetting what different things do
@asker5172
@asker5172 3 месяца назад
Це мабуть найкорисніше відео яке я зустрічав з теми java platformer до того ж все працює ідеально. Дякую за старання, це відео дійсно корисне для мене
@ElishaGarris
@ElishaGarris 4 месяца назад
I do enjoy the tutorial, but I'm not sure if the current 2024 version of JavaScript requires the use of modules or something, but I was not able to get everything working following the tutorial one-to-one. Once I started importing the Player class from the JS file and using ctx in the parameter list in the this.draw function everything started working.
@belial_lon
@belial_lon 5 месяцев назад
If someone needs a code from 37:00, then here it is: else if(index == 1) { for(int i=0; i<5; i++) walls.add(new Wall(Color.WHITE, offset + i*50, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 500, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 550, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 600, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 650, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 700, 600, s, s)); walls.add(new Wall(Color.WHITE, offset + 750, 600, s, s)); } else if(index == 2) { for(int i=0; i<14; i++) walls.add(new Wall(Color.RED, offset + i*50, 600, s, s)); for(int i=0; i<12; i++) walls.add(new Wall(Color.RED, offset + 50 + i*50, 550, s, s)); for(int i=0; i<10; i++) walls.add(new Wall(Color.RED, offset + 100 + i*50, 500, s, s)); for(int i=0; i<8; i++) walls.add(new Wall(Color.RED, offset + 150 + i*50, 450, s, s)); for(int i=0; i<6; i++) walls.add(new Wall(Color.RED, offset + 200 + i*50, 400, s, s)); } else if(index == 3) { for(int i=0; i<5; i++) walls.add(new Wall(Color.GREEN, offset + i*50, 600, s, s)); for(int i=0; i<5; i++) walls.add(new Wall(Color.GREEN, offset + 450 + i*50, 600, s, s)); walls.add(new Wall(Color.GREEN, offset + 150, 550, s, s)); walls.add(new Wall(Color.GREEN, offset + 200, 550, s, s)); walls.add(new Wall(Color.GREEN, offset + 200, 500, s, s)); walls.add(new Wall(Color.GREEN, offset + 200, 450, s, s)); walls.add(new Wall(Color.GREEN, offset + 500, 550, s, s)); walls.add(new Wall(Color.GREEN, offset + 450, 550, s, s)); walls.add(new Wall(Color.GREEN, offset + 450, 500, s, s)); walls.add(new Wall(Color.GREEN, offset + 450, 450, s, s)); } else if(index == 4) { for(int i=0; i<5; i++) walls.add(new Wall(Color.BLUE, offset + i*50, 600, s, s)); for(int i=0; i<4; i++) walls.add(new Wall(Color.BLUE, offset + 50 + i*50, 550, s, s)); for(int i=0; i<3; i++) walls.add(new Wall(Color.BLUE, offset + 100 + i*50, 500, s, s)); for(int i=0; i<2; i++) walls.add(new Wall(Color.BLUE, offset + 150 + i*50, 450, s, s)); for(int i=0; i<4; i++) walls.add(new Wall(Color.BLUE, offset + 500 + i*50, 600, s, s)); } else if(index == 5) { for(int i=0; i<5; i++) walls.add(new Wall(Color.YELLOW, offset + i*50, 600, s, s)); for(int i=0; i<3; i++) walls.add(new Wall(Color.YELLOW, offset + 100 + i*50, 550, s, s)); for(int i=0; i<2; i++) walls.add(new Wall(Color.YELLOW, offset + 150 + i*50, 500, s, s)); for(int j=0; j<4; j++) { for(int i=0; i<4; i++) walls.add(new Wall(Color.YELLOW, offset + 350 + i*50, 400 + 50*j, s, s)); } for(int i=0; i<7; i++) walls.add(new Wall(Color.YELLOW, offset + 350 + i*50, 600, s, s)); for(int i=0; i<2; i++) walls.add(new Wall(Color.YELLOW, offset + 550,500 + i*50, s, s)); } else if(index == 6) { for(int i=0; i<14; i++) walls.add(new Wall(Color.CYAN, offset + i*50, 600, s, s)); for(int i=0; i<7; i++) walls.add(new Wall(Color.CYAN, offset + 200 + i*50, 450, s, s)); } else if(index == 7) { walls.add(new Wall(Color.MAGENTA, offset, 600, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 50, 600, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 150, 500, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 200, 500, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 300, 400, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 350, 400, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 450, 500, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 500, 500, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 600, 600, s, s)); walls.add(new Wall(Color.MAGENTA, offset + 650, 600, s, s)); } }
@philip3746
@philip3746 5 месяцев назад
Looks like everyone is having a problem generating the board correctly. Mine displays only one row of numbers with black separating lines. Any suggestions on how to fix?
@barkerkatie86
@barkerkatie86 3 месяца назад
So I had the same thing happening and its because in the CSS file I had .title instead of .tile, always double check spelling🙃
@BufnicoiGamer
@BufnicoiGamer 6 месяцев назад
if you set frame relative to null it put it in midele of screan and less things to write
@UTech-ut
@UTech-ut 7 месяцев назад
How would you add a theme, background, character skin, to make the game more of a game?
@juzerbaatwala8868
@juzerbaatwala8868 9 месяцев назад
superb
@far355
@far355 11 месяцев назад
Is there anybody who can write the javascript code for showing up the board? I tried step by step by watching this video but it doesn't work. Please help :(
@raffazaver
@raffazaver 11 месяцев назад
the collision part could be so much easier if done correctly. Too much calculations, if you want to make it easy to understand then learn how to optimize things correctly
@krishnaadhikari5246
@krishnaadhikari5246 Год назад
I'm also having a problem in which my code of this tutorial is not working. Even though the code is correct, the result in my website is not coming. How is this happening and is there any solution?
@infiteri6030
@infiteri6030 Год назад
Its really interesting to watch like a year and a half ago i couldn't do this and now a now webgl
@bravefart651
@bravefart651 Год назад
Is anybody going to finish this. That guy was great at teaching and describing. I've only been coding for a few months and am sick the guy stopped (I should've checked the playlist before i started 🤔🤣) but i definitely learned a few things. If anybody wants to learn some more games check this guy out youtube.com/@KennyYipCoding Really good at explaining stuff too
@djneils100
@djneils100 Год назад
great video and great channel - I know it's early days but please keep going - you are very good at this. (I am a comp science tutor in the UK)
@jeff-creations
@jeff-creations Год назад
Thanks for the video series, awesome! The green rectangle wasn't showing up for me because I put the canvas width/height in the style sheet. Once I followed the video and put the width/height in the HTML canvas element as an attribute - the green rectangle appeared.
@MacESquare
@MacESquare Год назад
Hi, I have a question and I am hoping you can help me out. If I was using the double-digit number included such that I can have instead of just 1-9 it can include 10 to 100. so how do I set the array [ ] to make it work.
@GenesHero
@GenesHero Год назад
Thank you, this helped a lot and I hope you continue again sometime in the future! Much appreciated!!
@invisible_greg
@invisible_greg Год назад
It’s a great series thanks so much, but are you gonna finish the series or not?
@chefredr
@chefredr Год назад
Thank you so much for this tutorial, you explained things so well!
@huckleberryfinn8795
@huckleberryfinn8795 2 года назад
Great tutorials!!
@nunwithpipecleaner
@nunwithpipecleaner 2 года назад
Doesn't move for me oof. Have watched this video many times over, maybe 7-8 times. Just dunno what's wrong with it.
@mehershrishtinigam5449
@mehershrishtinigam5449 2 года назад
Yes, its called the coefficient of friction
@collegeverse5877
@collegeverse5877 2 года назад
can u share the source code of javascript?
@doctorjcw5857
@doctorjcw5857 2 года назад
dang too bad he did 1 video, this was actually good for getting to the point. Everyone else figures how to make this explanation and demonstration take 40 minutes, just to still skips steps and information
@Dessischment
@Dessischment 2 года назад
Best tutorial ever, shared already to my friends!
@TheLegendOfNiko
@TheLegendOfNiko 2 года назад
Thanks so much brother. Literally taught me everything that I needed to get started on my game developer journey. If you have a Udemy course or fan page, definitely link it !
@brunoapostolo6325
@brunoapostolo6325 2 года назад
Great tutorial. Amazing
@MotiviqueStudio
@MotiviqueStudio 2 года назад
Thanks for taking the time to do this. Just now wrapping my head around collision.
@mariamrevazishvili1006
@mariamrevazishvili1006 2 года назад
I had the same problem on generating board, instead of board.chartAt( i ) in function generateBoard(board) , used if (board[ i ] !== '-') { tile.textContent = board[i]; } It worked. Good luck everyone!
@codyf1
@codyf1 2 года назад
This guy really deserves more subs
@aliefmuhammadabdillah9657
@aliefmuhammadabdillah9657 2 года назад
Great Tutotiral!, Thank you for Save my homework :)
@OptilexYT
@OptilexYT 2 года назад
i followed everything correctly and i amde the canvas and everything, but my canvas is much smaller than yours and the red square doesnt appear. and my canvas doesnt turn white
@nightmarefreddy8675
@nightmarefreddy8675 2 года назад
Ok so its hard to help without seeing the code but normally when following programming tutorials it breaks when you copy it word for word, so i would first make sure everything is spelled right because syntax is important and second make sure all of the functions are called right and same with the variable
@newtocoding4483
@newtocoding4483 2 года назад
does anyone know how to make it so that you cant infinitely jump?
@TheLegendOfNiko
@TheLegendOfNiko 2 года назад
Check out the "setInterval" function for your jump logic. It will time your jump.
@slumped401
@slumped401 2 года назад
hey so max speed is working when i goto the right but not to the left
@slumped401
@slumped401 2 года назад
if(this.xspeed > this.maxSpeed) { this.xspeed = this.maxSpeed; }else if(this.speed < -this.maxSpeed){ this.xspeed = -this.maxSpeed; } this.x += this.xspeed; this.y += this.yspeed;
@slumped401
@slumped401 2 года назад
nvm fixed lol
@HyperS_LaunchedUpStudio
@HyperS_LaunchedUpStudio 2 года назад
why dont I move back down when jumping?
@caianmarcaccini
@caianmarcaccini 2 года назад
Finally the good name of Sudoku has been cleaned
@caianmarcaccini
@caianmarcaccini 2 года назад
Still butchering the poor sudoku name xD
@caianmarcaccini
@caianmarcaccini 2 года назад
Commenting F for poor dear Sudoku's name that was butchered on the making of this video hahahahahaha Also great tutorial! Keep it up!
@Gulemo
@Gulemo 2 года назад
Thanks
@xfreakerx1
@xfreakerx1 2 года назад
Thanks a million! My business app coding is pretty good but I wanted to mess around with gaming, hitboxes, and physics. You made it easy to understand!
@deadzivid
@deadzivid 2 года назад
How can I fix the player glitch? It doesn't update for me. It just throws out an error code.
@darkesthunter905
@darkesthunter905 2 года назад
i need next video :)
@arupde6320
@arupde6320 2 года назад
r u alive ??
@codyf1
@codyf1 2 года назад
He probably just got out of high school and got a job
@infiteri6030
@infiteri6030 2 года назад
f
@jeremiasnatalini5996
@jeremiasnatalini5996 2 года назад
Uncaught TypeError: Cannot set properties of null (setting 'textContent') at HTMLButtonElement.startGame Please Help
@dontgiveup3710
@dontgiveup3710 Год назад
same issue
@AlterMikevoid
@AlterMikevoid 2 года назад
hey, I'm pretty much new to JS and having some trouble with figuring out why the player doesn't appear, any reason this could be? edit: nvm, figured it out
@shirelkatz9476
@shirelkatz9476 2 года назад
what was the problem? because i am having the same issue
@AlterMikevoid
@AlterMikevoid 2 года назад
Don't remember really, but I do remember I either forgot a line or missed a letter/symbol
@infiteri6030
@infiteri6030 2 года назад
Tho i can do this myselffis stil interesting to watch
@aishwaryagarg8178
@aishwaryagarg8178 2 года назад
Please give the source code
@aishwaryagarg8178
@aishwaryagarg8178 2 года назад
Please give the source code
@aishwaryagarg8178
@aishwaryagarg8178 2 года назад
*Javascript
@gamzeylan1878
@gamzeylan1878 2 года назад
For those that do not have the board visible: add generateBoard(board); onto the end of the startGame() function.