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.