| Category | Points | Min | Max |
ScaleTank
- Draws a scaled tank into the ScreenBuffer,
centered at the location specified by XPos, YPos.
Rotation determines the view of the tank.
PlayerNum determines which tank is drawn.
- Works like library case for 'MAIN 1', 'MAIN 2', and 'MAIN 3'
- Provides smooth, linear scaling betwen all possible scale values
(1..99 = reduction, 100=same, >100=increase)
-10 for implementation that cannot support ALL fractions
- Clips boundries of tank when partially (or completely) off screen
-10 for implementations that wrap or crash
| | 0 | 20 |
Program Execution Speed
- To receive credit for speed in this section, the student's
scaletank must be functional. Students may use LIBMP5 calls
for other functions.
- Compare the code of the first test case ('MAIN 1') to that of
the lab manual. Students should not modify any lines of
code for this testcase.
- Run 'MAIN 1' with student's executable. Use the best number of
three runs
Running Time = ___________ 1/18 s
- Run 'I:\ECE291\MP5\MAIN 1' with library-based executable:
Use the best number of three runs
Running Time = ___________ 1/18 s
- Divide student time by library time. and multiply by 100%
Speed Fraction = ___________ %
- Assign points as follows:
- Faster than library (less than 71 ticks): +12 (2 point bonus)
- Just as fast as library (equal to 71 ticks): +10 (full credit)
- Within 75% of library speed (less than 100 ticks): +8
- Within 50% of library speed (less than 142 ticks): +6
- Within 25% of library speed (less than 284 ticks): +4
- Within 10% of library speed (less than 710 ticks): +2
- More than 10 times slower (more than 710 ticks): 0
| | 0 | 10 |
HallDemo
- Moves three tanks in a long hallway.
Green tank is moving towards the camera,
Illini tank is moving away. A second Illini
tank scrolls along the bottom.
| | 0 | 10 |
MyDemo
- Exercises scalable bitmaps, walls, and motions in a student-created
animation.
- Award students for imagination and creativity.
| | 0 | 10 |
| Functionality SubTotal
| | 0 | 50 |
Comments (* percentage of code written)
- Clear and precise line & procedure comments
(describes all major routines): -0
- Sports Announcer comments (line-by-line): -1
- Unclear comments: -1
- Sparse comments: -3
| | -5 | 0 |
Technique & Style (* percentage of code written)
- Compact and Efficient code: -0
Really bad code in DrawPoly: -3
- Contains repeated code (lacks loops): -3
- Makes poor use of registers and/or variables: -2
| | -5 | 0 |
I/O Specs & Modularity (* percentage of code written)
- Violates specifications for given subroutines: -5 (all points)
- Preserves valus of registers: -5 (all points)
| | -5 | 0 |
Penalty/Bonus
Before 5pm, Tue 11/25/97: +1 pt/weekday
After 5pm, Tue 11/25/97: -5 pts/weekday (exclude WED/THR/FRI/SAT/SUN/MON)
| | -50 | 5 |
| Total | | 0 | 55 |