RandomPlatformScroller

Smart Mobile Studio game by George Wright: Y9 Age ~14

Introduction

Click here to play Version 2 of RandomPlatformScroller (RPS). If you obtain an error message from your current browser, please try another such as Chrome. The game, although unfinished, is a great example of what can be achieved by a highly talented lower-school student with free access to professional editions of software both at home and at school. This is our most collaborative contribution. Alex Karet supervised (and wrote some of the levels as indicated in comments) and Steven Binns provided valuable input.

Major new features in Version 2 include buttons that allow you to play the game on a mobile device, climbable platforms and turrets that shoot at you when you are not blocked from the path of their bullets. This version received nothing but encouraging feedback at a recent exhibition.

For those of you who are unable to progress through the levels but would still like to have a look at later features such as turrets, we added a line of code to unlock the doors in the level selector. Click here to play the testing version.

Gameplay

When playing RandomPlatformScroller:

  • aim to reach the other door without falling between platforms to your death;
  • you regenerate in the original door if you do die;
  • on a mobile device, use the buttons for control;
  • with a keyboard, initially use wasd keys for movement, space bar to go through a door (and e to shoot at a "crumble" platform);
  • you can select Options to change the keys that control the game;
  • go through a door to select a level;
  • note that the first levels are for training - a most impressive feature;
  • double jumping is possible;
  • some of the platforms are generated randomly so that the game is different each time you play it;
  • the "45" above the player's head displays health;
  • a mouse click may attract a bullet from the player;
  • note the colour coding of the platforms shown in this table.
    Orientation Jump through Fall through Jump through Colour
    Horizontal Yes No Yes Dark red
    Horizontal Yes Yes Yes Dark green
    Horizontal No No Yes Dark blue
    Horizontal No Yes Yes Black
    Vertical No No Yes Orange
    Vertical No Yes Yes Grey
    Vertical No No No Pink
    Vertical No Yes No Purple
A brief description of the levels follows:
  1. training for moving left and right;
  2. training for jumping;
  3. training for double jumping;
  4. training for falling through a platform;
  5. training for wall jump;
  6. training with the 7 types of platform;
  7. training with crumbling platforms;
  8. training with moving platforms;
  9. training with scrolling;
  10. training to find a door;
  11. a game with lots of jump through platforms;
  12. a game with lots of crumbling platforms;
  13. a game with lots of moving platforms;
  14. a game with lots of vertical platforms;
  15. a game with no wall jumps;
  16. training with a turret;
  17. a game with turrets;
  18. another game with turrets.

You could experiment with the parameters in a level to suit your preferences. Please let us know if you design a level that you think will be popular.

Technical Features

The program benefits from:

  • object-oriented code throughout;
  • well-planned code separated into many units;
  • thorough comments;
  • deeply nested if and case statements;
  • own functions and versatile procedures with many parameters;
  • enumerated types;
  • use of C-style operators such as +=;
  • handling of input events from keyboard and mouse;
  • UCreates unit that makes it easy for others to create new levels;
  • use of inbuilt routines such as High, RandomInt, Round, Tanh, FillTextF, FillRectF, Ellipse, Translate, Rotate and BeginPath.

Feedback

  • AthenaOfDelphi, Webmaster of Pascal Game Development wrote a most encouraging article about this website and George's achievement.
  • The above piece also appeared on DelphiFeeds on 6th July 2014.
  • The Smart Mobile Studio team describe the project as "exciting" and recommend this site to schools that take advantage of their marvellous free educational version with which George developed this game.
  • Student users report that Level 15 is challenging. Many teachers can expect to experience difficulty with much earlier levels!

 

Programming - a skill for life!

Five programs including RandomPlatformScroller and TowerOfArcher by George Wright