Finals are over! I thought we'd take a break from Java for just a week and do some game programming. Many beginning programming students can use practice designing systems for extensibility. I thought I'd show a way to design an extensible tile-based background system.
This channel is suitable for beginners or experienced programmers who want to learn Python or pygame, and also for instructors teaching programming. There are also Java, R, and some microcontroller videos. Let's have some fun learning to program with Python!
Here's a video on writing tiled terrain:
• Code terrain from tiles in pygame; Ob...
And here are some on writing a scrolling background:
• Code a scrolling background in pygame...
• Scrolling terrain in pygame; Objects ...
• Platform side-scrolling basics in pyg...
The example I was working from is in my Objects and Games with Python book:
ebook:
https://www.amazon.com/dp/B0B3V93YG9
textbook:
https://www.barnesandnoble.com/w/obje...
If you're interested in an introductory Python book, my book Problem Solving with Python is here:
ebook:
https://amzn.to/3oiWwOb
textbook:
https://www.barnesandnoble.com/w/prob...
The github repository with the code examples from this video is here:
https://github.com/ProfessorBurke/Pyt...
If you want to earn credit for learning to code, take an online course at CCRI!
https://ccri.edu/comp/
Pygame logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
TheCorruptor/pygame developers, LGPL http://www.gnu.org/licenses/lgpl.html, via Wikimedia Commons
Python logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
www.python.org, GPL http://www.gnu.org/licenses/gpl.html, via Wikimedia Commons
The spiral image in the program is modified from the image here:
https://www.thirteen.org/wnet/brain/i...
Thumbnail portal penguins generated with NightCafe
00:00 Welcome and the base program
04:54 Modifying the base program for extensibility
13:14 Extending with a disco floor
18:38 Extending with portals
Watch video Use inheritance to write extensible terrain online without registration, duration hours minute second in high quality. This video was added by user DesignCodeDebugRepeat 17 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7 once and liked it people.