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 tile...
And here are some on writing a scrolling background:
• Code a scrolling backg...
• Scrolling terrain in p...
• Platform side-scrollin...
The example I was working from is in my Objects and Games with Python book:
ebook:
www.amazon.com/dp/B0B3V93YG9
textbook:
www.barnesandnoble.com/w/obje...
If you're interested in an introductory Python book, my book Problem Solving with Python is here:
ebook:
amzn.to/3oiWwOb
textbook:
www.barnesandnoble.com/w/prob...
The github repository with the code examples from this video is here:
github.com/ProfessorBurke/Pyt...
If you want to earn credit for learning to code, take an online course at CCRI!
ccri.edu/comp/
Pygame logo retrieved from:
commons.wikimedia.org/wiki/Fi...
Attribution:
TheCorruptor/pygame developers, LGPL www.gnu.org/licenses/lgpl.html, via Wikimedia Commons
Python logo retrieved from:
commons.wikimedia.org/wiki/Fi...
Attribution:
www.python.org, GPL www.gnu.org/licenses/gpl.html, via Wikimedia Commons
The spiral image in the program is modified from the image here:
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
Негізгі бет Use inheritance to write extensible terrain
Пікірлер: 2