Posts

Showing posts with the label Lab3

Lab 3: Bouncing Ball (Final)

Image
Introduction I discovered an error in the previous posting's code . In this post, I will show what error I found and how I fix it. Also, I have improved my code so it becomes more reusable. You can understand the steps on how I develop this code to read previous postings: Lab 3: Bouncing Graphic (Part 1 - Calculate Pointer) Lab 3: Bouncing Graph - Drawing and Moving Graph in the Pointer Location Lab 3: Bouncing Graph - Done Lab 3 Instruction The option my group choose is bouncing graphic. The instructions of this option are the following: Create a simple graphic in a square that is 5*5 or 7*7 pixels in size. Use the colors available in the emulator's bit-mapped display. The graphic could be a ball a happy face, a logo, an emoji, or anything else that you want to use Encode that graphic in bytes using DBC (declare constant byte) instructions Write code to make the graphic bounce around the screen, reflecting off the edges when it hits Make the speed keyboard-adjus...

Lab 3: Bouncing Graph - Done

Image
Introduction In this post, I will show how to do the lab 3: bouncing graphic. The code can be upgraded when I discover an error but the bouncing and moving a ball and applying keyboard part have done. You can understand more this posting if you read my previous postings: Lab 3: Bouncing Graphic (Part 1 - Calculate Pointer) and Lab 3: Bouncing Graph - Drawing and Moving Graph in the Pointer Location . The detailed lab 3 instruction is written below. Lab 3 Instruction The option my group choose is bouncing graphic. The instructions of this option are the following: Create a simple graphic in a square that is 5*5 or 7*7 pixels in size. Use the colors available in the emulator's bit-mapped display. The graphic could be a ball a happy face, a logo, an emoji, or anything else that you want to use Encode that graphic in bytes using DBC (declare constant byte) instructions Write code to make the graphic bounce around the screen, reflecting off the edges when it hits Make the spe...