Program8 - Smiley 3

Program8 - Smiley 3 - CSC 322 Program 8 – Big Smiley Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSC 322 Program 8 – Big Smiley Due Friday December 9, 2011 This assignment is a quantum leap from Smiley Two. It utilizes four virtual pages/screens yet it only requires you to maintain one Smiley that is bigger and better than before. This time Smiley’s job is to eat all the dots before time runs out. As Smiley runs off one edge of the screen, he no longer just wraps around to the other side of the screen - Smiley moves to another virtual page/screen. That is, when Smiley walks off one edge of the screen, he appears on the other side of the screen and the pattern and color of the screen changes to reflect the current virtual page. You will find this assignment much easier if you use macros, structs, and procedures. Try to find a good balance between them. Below is an outline of what your Big Smiley should do: 1. First your code should "paint" the screen with the virtual page zero pattern of characters given below. Give each virtual page unique color characteristics to enhance your experience. 2. Place a single Smiley on page zero. Smiley this time consists of a head (like before), a body that initially consists of one asterisk, and a tail that is always a plus sign (+). Your initial Smiley should look like: +* 3. During execution Smiley will grow in size as he eats dots. Each dot Smiley eats should add one asterisk to his body. 4. The tail should always be the “+”. 5. You will need an array of data structures to hold information about where Smiley is located. Make sure that you include which page each character of the Smiley is located in your data structure. Use a struc to reference the different fields of this data structure. 6. Write a procedure to place Smiley on the screen. Remember, parts of Smiley might not be visible on the current screen. 7. Write a procedure to erase Smiley – again, only those parts showing on the current screen. 8. Write a procedure to shift Smiley’s data structure as if it were moving. You may want to pass a parameter into one procedure indicating which direction to “move” Smiley....
View Full Document

This note was uploaded on 01/03/2012 for the course CSC 323 taught by Professor Allen during the Fall '11 term at Mercer.

Page1 / 4

Program8 - Smiley 3 - CSC 322 Program 8 – Big Smiley Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online