Krzysztof Mossakowski
Windows Programming
2005 - Tasks
GDI+
Version A
Speedway
Demonstration
Functionality:
Space key - starts and stops the race
Right Control key - when held the player is turning
Technical requirements:
audience, track and grass drawn as in the demonstration (
task09a_audience.bmp
,
task09a_grass.bmp
)
all bitmaps must be included as resources (do not try to load bitmaps from files)
scale the scene properly after window's resizing
do not let to flicker (during playing and during resizing)
Hints:
GetKeyState()
Region mehods: IsVisible(), Union(), Exclude()
TextureBrush, SolidBrush
Bitmap
Graphics methods: FromImage(), DrawImage(), ScaleTransform(), DrawCurve()
Approximate points:
drawing the scene: 3.0
scaling the scene: 2.5
no flickering: 2.5
using bitmaps from resources: 1.0
the race: 1.0