Coding Challenge #72: Frogger - Part 1
In this multi-part challenge, I create a simplified version of the classic Atari video game Frogger in Processing (Java). Code: https://thecodingtrain.com/challenges/72-frogger
💻 Github Repo: https://github.com/CodingTrain/Frogger
p5.js Web Editor Sketches:
🕹️ Frogger: https://editor.p5js.org/codingtrain/sketches/crMMFw8vD
🕹️ Frogger - Refactored: https://editor.p5js.org/codingtrain/sketches/C8gqXQ3Qd
Other Parts of this Challenge:
📺 Part 2 - Add cars: https://youtu.be/06-ZvYmSeus
📺 Part 3 - Add additional elements of Frogger: https://youtu.be/hk326ZHlENQ
📺 Part 4 - Refactoring the code: https://youtu.be/c6WdJltqEtM
🎥 Previous video: https://youtu.be/LFU5ZlrR21E?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
🌐 Frogger on Wikipedia: https://en.wikipedia.org/wiki/Frogger
Videos:
🎥 Video of the Gameplay: https://youtu.be/l9eTOaNFwKQ
🎥 Video Games track: https://thecodingtrain.com/tracks/games
🔴 Coding Train Live 96: https://youtu.be/7BdfPG3peP4?t=1547s
Related Coding Challenges:
🚂 #3 The Snake Game: https://youtu.be/AaGK-fj-BAM
🚂 #46 Asteroids: https://youtu.be/hacZU523FyM
🚂 #67 Pong!: https://youtu.be/IIrC5Qcb2G4
🚂 #71 Minesweeper: https://youtu.be/LFU5ZlrR21E
🚂 #91 Snakes & Ladders: https://youtu.be/JrRO3OnWs5s
🚂 #115 Snake Game Redux: https://youtu.be/OMoVcohRgZA
Timestamps:
0:00 Introducing today's topic: the classic arcade game Frogger
1:43 What do we need to program Frogger?
4:07 Make a Rectangle class
5:36 Write a function that tests whether two rectangles are intersecting
9:34 Use inheritance to make a frog object that extends the Rectangle class
11:29 Use the "super" key word to initialize the inherited values
15:54 Write a function to move the frog
22:41 Conclusion and next steps
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#gamemechanics #froggeratari #inheritance #processing
Other Videos By The Coding Train
Other Statistics
Frogger Statistics For The Coding Train
At present, The Coding Train has 203,726 views spread across 4 videos for Frogger, and about an hours worth of Frogger videos were uploaded to his channel. This is less than 0.17% of the total video content that The Coding Train has uploaded to YouTube.