In this assignment you have to perform 4 tasks:

 

  1. Create an array that contains an image of a tree
  2. Create a procedure that will draw the road in the SCROLLBUFFER
  3. Create a procedure that will draw a tree at the specified x,y position in the SCROLLBUFFER
  4. Create a procedure that will copy the last 50 lines in the SCROLLBUFFER to the video memory

 

!!!! Late submissions for this assignment will not be accepted !!!!

 

The details of the assignment and hints are given in the source code.

Before running the program, do the following:

1. Make sure that the window size for Windows command prompt is set to be 50 characters

 

2. Before running any program, run CodeView and immediately exit. This will properly initialize the video memory since we do not do it in the program.

 

 

 

 

After all 4 tasks are complete, the program will show the following image. Use it to check correctness of your program: