//X = wall, O = skip, P = pac man, ' ' = food //Ghosts: b = blue, o = orange, p = pink, r = red private String[] tileMap = { "XXXXXXXXXXXXXXXXXXX", "X X X", "X XX XXX X XXX XX X", "X X", "X XX X XXXXX X XX X", "X X X X", "XXXX XXXX XXXX XXXX", "OOOX X X XOOO", "XXXX X XXrXX X XXXX", "O bpo O", "XXXX X XXXXX X XXXX", "OOOX X X XOOO", "XXXX X XXXXX X XXXX", "X X X", "X XX XXX X XXX XX X", "X X P X X", "XX X X XXXXX X X XX", "X X X X X", "X XXXXXX X XXXXXX X", "X X", "XXXXXXXXXXXXXXXXXXX" }; Completed code with sprites: github.com/ImKennyYip/pacman-java
@musicplaylist6909Ай бұрын
Hi, just a self taught developer leaving time stamps while learning using this video. Thanks Kenny, these tutorials are really well made and extremely coherent. I hope your channel grows exponentiallY!!!!!!!!!!!!!!!!!!!!! 5:11 Creating game window 10:32 Loading images 14:11 intuition behind mapping 18:59 creating objects to be displayed on map 21:11 drawing the actual map 31:50 explaining the game loop and implementing it 34:03 implementing key listeners for pacman movement 43:34 implementing collision detection 48:43 implementing sprite direction changes for pacman 50:16 implementing ghost movements 56:15 final touches: score, lives, pacman-ghost collision, game-over
@neverexperience3 ай бұрын
Fantastic video man, just coded along with the video. The walkthrough was very smooth and great explanation. Loved it I'm thinking to add an 8 bit audio, powerups etc, it was real fun
@LBCreateSpace3 сағат бұрын
22:20 there is a lil c++ in your Java sir! xD But seriously, ty for making this tutorial
@shadyyam2488Ай бұрын
love watching your java tutorials. gives me so much more motivation to explore the language and have fun with It. pls make more of these with java
@CaioSantos_p153 ай бұрын
You're the goat man! I love all your videos!
@MarkE-mp9li2 ай бұрын
This channel is amazing! I've just started learning Java and your channel has been really helpful
@snusheeАй бұрын
Can you please tell me the first steps you've done to learn Java? Do you recommend starting with this video a a begin to learn Java?
@gungorberkayakkan980412 күн бұрын
@@snushee if you are still interested after 4 weeks i think that you should not start with java but learn basic and advanced algorithims as they are basically the code and the words that we use to represent those algoritithims are just syntax and they are easy to learn as a 15 year old self learnt coder that have been coding for 5 years now this is the easiest way hope that you are still interested(sorry for misspeling english is my second language)
@gungorberkayakkan980412 күн бұрын
@@snushee Have fun on your journey hopefully not full of bug and syntax error at line 27's :D
@lokaam30923 ай бұрын
hi! great tutorial that was very efficient thank you so much! ps: at 20:45 you said you would put the map code in the video description and i think you forgot ;)
@KennyYipCoding3 ай бұрын
ahh yes I did forget!, Added the map code in pin comment
@givoxx4970Ай бұрын
Nice video, i wrote this code with you, everything worked and i learned a lot 5!
@yuppolo10 күн бұрын
Thank you so much, this just motivated me to learn more about java
@laylaarshedmim5503Ай бұрын
Very good and clear explanations. Thank you so much for your efforts. Keep up the good works. Love and Respect.
@n4nalife3 ай бұрын
Thanks for your videos! They are amazing :)
@koketsobakwenamathole7773Ай бұрын
I had to subscribe because this is amazing. I will attempt a clone as well.
@x-elo12 күн бұрын
1:05:10 made me laugh so much, i wasn't expecting it at all
@chiuvinson503513 күн бұрын
Great stuff! It's a bit hard to move around, it seems like it's not picking up my inputs until I spam the direction key. is this the fault of my laptop maybe? I dont know how you could make it smoother
@HarisKhan-i7b8s2 ай бұрын
kenny, is any datastructure used in that project???
@SHEMZILLERАй бұрын
hi i have been following you series how to add audio?
@lila74102 ай бұрын
9:00 Why did u add private to all of them?
@ugniusmamaniskis5022 ай бұрын
thats so noone could cahnge the values
@stefangrigore88783 ай бұрын
bro, your work is amazing, but can you please help me with something? everytime i save my project some lines in the code gets deleted and i dont know why. Ill apreciate it if you can help me
@KennyYipCoding3 ай бұрын
That doesn’t happen to be so I have no idea why that is the case either, are you using vscode with Java? What lines are being deleted? Empty white space lines?
@stefangrigore88783 ай бұрын
@@KennyYipCoding yes, i am using vscode with java. im a begginer and im trying to learn. These 3 import java.awt.event.*; import java.util.HashSet; import java.util.Random; No matter what i do they always get deleted
@KennyYipCoding3 ай бұрын
There’s probably some extension installed or built in setting that gets rid of unused imports. If you add import statements and save, technically you still haven’t used the imports so the code automatically gets deleted. Should be an easy fix if you google/stack overflow “vscode unused imports being deleted”
@stefangrigore88783 ай бұрын
@@KennyYipCoding thanks for the help i managed to fix it
@robtai62253 ай бұрын
awesome thank you so much!!!
@johnmichaelocado52612 ай бұрын
Can i ask what are the sizes of the pictures that you used on this game?
@byool8721Ай бұрын
am i able to recreate this with apache netbeans?
@excujeeme9973 ай бұрын
Hey can you tell me which platform you are using for coding?
@KennyYipCoding3 ай бұрын
Vscode, there is a video link guide in my video description explaining how to setup Java with vscode
@SajithaUdesh2 ай бұрын
Can you tell me the name of the app you used here?
@KennyYipCoding2 ай бұрын
You mean the code editor? It’s called vscode, as mentioned in the video.
@ihavefriends420Ай бұрын
1:00 give us a flashbang warning please
@KennyYipCodingАй бұрын
you'll surive!
@UpskillingAcademyАй бұрын
Hello, My name is Eka from Upskiling. I'm really interested in the content you create, and I would like to ask for your permission to use the link to your KZbin video as a resource on the Upskiling website. Please note that Upskiling will not repost or re-upload the video from your KZbin channel; we will only be sharing the link to the video. I hope to hear from you soon. Thank you! 🙏
@KennyYipCodingАй бұрын
@@UpskillingAcademy Hi, it is okay to link my KZbin channel videos as long as the videos and source code are not reposted or re uploaded on your website AND you are not charging anyone for access to my free content AND nobody is impersonating or pretending to be me on your platform. If that is the case, feel free to share the link to my video ! 🙂
@odtu4948Ай бұрын
guys do you have full code of this with homework done ?
@gilmar657715 күн бұрын
Here is the code to teleport through the gap in the walls. Put this code on move function. if (pacman.y == tileSize * 9 && pacman.x == 0){ pacman.x = tileSize * columnCount; }else if (pacman.y == tileSize * 9 && pacman.x == tileSize * columnCount){ pacman.x = 0; }
@adityamukherjee22073 ай бұрын
bro while trying to run the code after 27:40 , the following error is showing : exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:232) at Pacman/pacman.Pacman.(Pacman.java:88) at Pacman/pacman.App.main(App.java:22) i have tried changing the path if the images , but still not working . i am using eclipse ide. can u help me further in this plz ....
@ugniusmamaniskis5022 ай бұрын
ask chatGPT
@167-naureen32 ай бұрын
Same error is showing on my code too if you have found how to solve that plz tell me🥲
@giorgiarevadze2162Ай бұрын
images need to be in src/main/resources for me it was the issue, hope it helps
@dexter702319 күн бұрын
Also having the same issue, if you managed to solve it, please let me know how.