Recent

Author Topic: leaper (inc)  (Read 422 times)

speter

  • Hero Member
  • *****
  • Posts: 527
leaper (inc)
« on: March 29, 2026, 04:08:16 am »
Here is another game based on Tim Hartnell's "Giant Book of Spectrum Games".

In the game, you control a frog (leaper) and attempt to move the frog accross a pond and then a road. The frog can move foward or to the side. When crossing the pond you need to land on the lilies; when crossing the road you need to avoid the cars. :)

I have made a number of changes to the logic of the game:
  • in the original, the cars moved to and fro in each lane; in my version, all the cars in the first 4 lanes head one way... also, the cars  "wrap" onto the other end
  • in the original, the score increased by 10 as the frog moves forward; in my version the score decreases with each move.
By default the cars drive on the left-hand-side; if you'd prefer right-hand-side simply change (line 16):
Code: Pascal  [Select][+][-]
  1. drive_left = true;
to false.

Similarly, to make the cars go faster decrase the timer interval (line 15):
Code: Pascal  [Select][+][-]
  1. interval = 500;
Enjoy!
S.
« Last Edit: March 29, 2026, 04:11:03 am by speter »
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

 

TinyPortal © 2005-2018