Coding Challenge #72: Frogger - Part 3
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 1: https://youtu.be/giXV6xErw0Y
πΊ Part 2 - Add cars: https://youtu.be/06-ZvYmSeus
πΊ 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=6219s
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 Part 3 - Add additional elements of Frogger
0:56 Have cars move in both directions
2:40 Add a safety lane
3:28 Add a Log class that extends the Car class
10:22 Check if the frog is on a log
11:53 Attach the frog to the log when the frog intersects the log
17:08 Add the ability to detach frog from log
19:53 Constrain the frog to the window
23:00 Conclusion and suggesions for variations
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.