Re: are there any exercises that is based off the python documentation?

Chapters 3, 4, 5, and 10 either deal with turtle or have examples with it, chapters 7, 19, and 23 only have a few exercises at the end of the chapters that involve using turtle or pygame.

Chapter 3 shows how to use turtle, which initially might seem difficult, but turtle functions very much like an NPC character that you can move around and command like you would in any game, including audiogames. In order to interact with it, you should use "turtle.pos()", or "turtle.position()", which will return its x and y coordinates on the screen, and "turtle.heading()" for the angle its facing. You can check its full list of commands [here], which might make working with the exercises a bit easier from a mathematics or geometry perspective. Another part of the chapter covers the For Loop, so if you want to skip everything about Turtle, you should head to the part about For loop, along with the for loop specific exercises.

Chapter 4 covers functions, most of it is demonstrated with turtle drawing geometric shapes, though the graphics are less relevant than the math their based on. If you have a difficult time groking it, you can skip this chapter and read up on functions elsewhere.

Chapter 5 is worth reading for statements and Boolean values, only section 5.12 has a turtle example with Bar Charts with a few exercises.

Chapter 10 starts getting game'esk, with examples that allow you to use keyboard and mouse input to control the turtle NPC, change its color, etc. You can use the previously mentioned "turtle.pos()" to help here, and add string values to determine its color when you change it. It also covers event handling and state machines, though handling mouse input might be a bit trickier. It may be worth playing around with the keyboard examples, though the state machine examples do a lot of screen rendering geometry that might be a turn off.

Chapter 17 is a straight introduction to pygame with an emphasis on graphics, simple drawing of images, fonts and text that are likely not accessible. It then moves on to cover more mid level concepts like animation, drawing checkerboards, sprites, mouse and keyboard events, etc. The first half of the chapter could be a bit useful for a basic setup, but otherwise you could probably skip the rest, I have other pygame examples that focus more on audio and key input available.

Chapter 18, section 18.1 starts off with drawing fractals with turtle, which are cool symetrical graphical shapes based on mathematical algorithms. But then in section 18.2 onward it moves on to covering recursion. Section 18.6 moves back to fractals using pygame. If you don't want to deal with all the graphical fractal stuff, just skip to the Recursion sections and exercises.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : sito via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : DaddySpice via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : sito via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : DaddySpice via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : DaddySpice via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : DaddySpice via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : DaddySpice via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : sito via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector

Reply via email to