Introduction to Game Programming using Processing heading

Back to main page Main Page / Buggy Code

Buggy Code

Buggy Code are short programs that need fixing; the code contains bugs that readers can find and correct. The broken code speaks to readers who prefer (designed, quiz-like) challenges to free-form experimentation.

For concrete info on finding and fixing programming errors, see the sections 'The Process of Debugging' and 'Common Errors' in chapter 23 in the book.

Intro

Hello Buggy image No Rect No Run image No Circle No Run image Console Test Test image Variable Problem image More Variable Problems image Now The Mouse image Nothing to See Here image

Advanced

Lost Grid image No Triangles image No Rockets image No Psycho image Missing Rects image Cat Mask image Function of No Return image Where is my Star image Jack image

Tricky

Broken Rect image Broken Die image Buggy Collision Check image The Bouncy Ball and the Wall image Switch Bug image ArrayList Bug image Random Quad Snowflakes image Buggy Star Sabotage image

Disk elephant symbolHand-written note, download all buggy code in a single file (17 KB)

Demo Programs

Moving Cat Function screenshot Letters Reveal screenshot Tiled Platformer Demo screenshot More symbol

Code Examples

Chapter 2, Code Example 21 screenshot Chapter 7, Code Example 12 screenshot Chapter 25, Code Example 5 screenshot More symbol

Online Resources

The Coding Train (Daniel Shiffman): Learning Processing from the ground up, YouTube tutorials website screenshot Sprite Land website screenshot Vectors & Dot Product • Math for Game Devs [Part 1] on YouTube website screenshot More symbol