Posts Tagged ‘play’

Trevor Changes

February 20, 2008 Leave a comment

Its been a while since i last made some updates to trevor so i have. Ive also included to new levels in the download, although there some digging to do if you want to play the previous levels(there stored as a complied subclass of level, not as a text file in the levels folder).


So what are the changes?

well really only that i have made the movement of trevor much smoother. On the first versions the screen was repainted evrey time the main game loop was run. This meant it could only move one block per frame, making the animation verey jumpy. Now ive made it so that it is repainted 4 times for evrey block he moves, so he moves 5px per frame at 10 frames a second, so the motion looks verey smooth.

Becuase people found the “simple to use” level design method to hard!!!!!!! ive made it even simpler. When your level is read in the borders are automatically added, so all you have to do is make sure your level isnt more than 19 lines high and 59 accorss and add and blank line and then end at the end. Simple!!!

Ive included 2 new levels for you to play. Just change the play.bat file so that it pass the game the level you want to plays file name as a parameter.

Happy trevoring. You can also visit the trevor section my site


TREVOR PYTHAGORAS + C >> download update

February 7, 2008 Leave a comment

The latest version of trevor is now downloadable. I have made quite a few improvements to it since last time 🙂 and ive made a new level. To download click below, all posts on this blog also have a download on the left or from my site( — ull need to navigate away from the home page to see the trevor link in the nave bar)



Whats new?

  • Trevors motion is much smoother. Ive added in frame between each execution loop so the motion appears smooth and less like hes jumping around
  • A scrolling screen. This means the screen follows trevor around the level, displaying 20 blocks either side, opposed to displaying the whole level. This allows much larger levels to be created
  • A text file reader allowing you to write your own levels for trevor in a text file with no knowledge of codeing 🙂

How to create you own level

After downloading trevor you can create your own levels, just follow the simple steps below

  1. Open up a plain text editor – like note pad found in accessories
  2. Each chracter in the file represents a object in the game.
  3. once you have produced you level design leave a blank line and then on the next line type “end”
  4. save you level in the levels folder of trevor
  5. edit the play.bat file to have the name of your level instead of test.lev — rember to put in the file extenstion(probably .txt)
  6. run play.bat

so how do i create objects?

The level can be 59 objects wide(so 59 characters across) and 19 high (so on 19 rows). For an empty space use any key other than the ones specified below. You will need to build a floor and walls using the ground object else the game will crash when trevor leaves the games area (you may also need a ceiling)

object codes:

ground — g
triangle — t
evil fish — >
spikes — s
spring — ^
heart — h
exit — e Note: when using exit it takes up a square of 9 objects referenced from the top left so make sure there is nothing 3 objects to the right and down

Note Trevor starts at around object 3 across 4 down ish

MOST IMPORTANTLY ENJOY >> for more trevorness visit my site