TowerOfArcher
Description: User aims arrows at enemies that move along the ground or through the air
Programmer: George Wright
Compiler: Smart Mobile Studio 2.2
Introduction
George quickly became adept at using images in Smart Pascal and he developed this game remarkably quickly; he has shown the qualities of a fine game-making competitor. As usual, any feedback is welcome.
Gameplay
When playing
TowerOfArcher, you will see instructions on the start-up screen. You might find the following points helpful.
- See procedure TEnemy.Hit to see how the damage to an enemy depends on its speed.
- You start with no gold and need to kill an enemy to obtain some. You might need to hit it several times to kill it.
- In order to shoot a long way, you need to "drag the bowstring back" from the right of the screen. (You do not need to start from the bow).
- You might find that when you right-click to cancel a shot a menu appears. Clicking the middle button of a mouse might be a better alternative.
With practice you will become a more skilful archer and your games will last longer.
Technical Features
The program benefits from:
- object-oriented code throughout;
- use of inheritance e.g. TAirUnit and TGroundUnit are descendants of TEnemy;
- handling of touch events;
- well-planned code separated into units;
- thorough comments;
- use of C-style operators such as +=;
- use of inbuilt routines such as High, RandomInt, Round, Ceil, Trunc, Sqr, Sqrt, Sin, Cos, ArcTan2, FillRectF, Ellipse, MoveToF, LineToF, FillTextF, Translate, Rotate, ContainsPoint and BeginPath;
- use of the inbuilt types TRect and TW3EventRepeater.
George acknowledges that his game was inspired by Bow Master.