Posts Tagged ‘game’

Trevor Pythagoras 08 Download

After a long wait ive just uploaded the most recent version of treovor pythagoras.

download and play Trevor Pythagoras now!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

For those of you who dont know what trevor pythagoras is, its a game which I (David Woodford) have created in my free time about a penguin called trevor. Trevors aim is to collect the triangles without dieing on the spikes or evil fish. The game is made in java and is complied as java application, which means i cant embed it yet.

For the “proper” instuructions go to my last trevor post

Note: the controlls are WASD not arrows

Whats new:

  1. The first thing youll ntice is my lovley start up screen, the trevlaunch file, this is just a verey basic JFrame with a button that iniates the game. The code associated with the button is identical to that in the main method of the game file. You can still run it straight from the game file using the other batch file provided
  2. My amazing background. The game now kind of supports backgrounds, the default is some iceburgs in alska. To change this just edit the background file(its one of the giffs in the img folder) but keep the dimensions the same. The background doesnt quite work as it moves at a different speed but ill sort it sometime
  3. You can finally kill fish!!! If you jump on the fish now you can in theory kill them, the code for this seems a bit 50:50. well 10:90 but it can work. It should work if the fish is directly below you or below and to the side in which your travelling, if you can make it work 100% ill be happy to update the game and give you a mention
  4. Ive still allowed you to create custom levels, to play these use edit and run the other(not play.bat) batch file as you did before
  5. Hmm thats about it. i cant remeber my last upload so there might be some chages i havnt mentioned but their the main ones.

enjoy playing and dont forget to email me changes is my new file sharing site– may it a visit


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

Trevor Pythagoras Level 1 && Diablo trick::Trampeze

January 30, 2008 Leave a comment

Trevor Level 1

Download here(this link now works)
I have now complied my “level 1” for Trevor. This means that there is no something you can play. Click the link above to download it(it is a link, even though it might not be underlined). The aim of the level is to reach the finish(the spirally thing) without dieing but by getting as many points as possible. You can get 10 points for each triangle you collect, i think the maximum is 120. However you can get injured if you get caught by the fish or land on the “spikes” each of the these take 10 points off your life.

other objects:

  • springs: These allow you to jump higher (9 squares instead of 5 i think) meaning you can reach some of the platforms. Just walk on one and watch yourself go up
  • hearts: these give you extra 10 health points
  • shields: This gives you 10 second (50 frames) protection from things that hurt you

How to play

  1. Click the link at the start of this page to download the game as zip file, save it to your hard drive and extract it
  2. If you havnt got java installed already on your computer go to to download it. Note you may need the developer version to download (this is the java jdk)
  3. Run the file play.bat that you downloaded

Diablo Trick:


In the trapeze you make the diablo swing up and around on of your sticks and land back on the string, keep it there for a short period of time and then swing it back down

  1. Get the diablo spinning fast
  2. Swing it across you your weak handed side
  3. And then back across quickly to your strong handed side so it comes up and over you strong handed stick
  4. heres the hard part, try and land the diablo on the strings between your 2 sticks, this is now your trapeze
  5. when the diablo starts to slow down swing it back down to its normal position

At first you wont be able to keep it on the strings for very long but after a while you should be able to lengthen the amount of time.

Play Trevor >> now avalible for download

January 16, 2008 Leave a comment

Hi the current version of Trevor is now avalible from download from here and my site. This means that you can now play the game, view the source code and make you own changes to the game

Download Trevor (this is a link even if it isnt underlined)

What to do

1) download the game from the above link
2)extract all the files
3)run play.bat

If your sensible you shouldn’t really trust my downloads so ive included all the source codes as well – if you don’t trust me you can check these and compile it for yourself.

What you get

You get the latest development of the game: this is one simple testing level but basically fully functioning game controls. This means you can create your own complex working levels(if you do please send them to me >> ill include a link to your site and i wont claim the level as my own)

All the source codes. This means you can have a look at how the program works, what objects it involves and even have a go at making your own levels, objects or simple changes to the behavior of the game. Any positive changes please send me >> ill remember to mention you.

Send me improvements and levels

If you have improved the behavior of the game or created a new level/object please send them to me at If you want ill include you name on the pages for the level and a link to your website(you’ll have to send me those as well)

Happy New Year

Happy new year!!!!!!!!!.

Trevor Update

IN trevor I have developed a system for reading in Levels from files. Ive done this by allowing the level to be stored as a string array where by each character i the string represents an obj in a row of the game eg)
would create a row with a stretch of ground, followed by three triangles two spikes another stretch of ground and 2 more spikes. I then read in the file a line at a time and create each successive row. Empty spaces can be made by putting a character that hasn’t been assigned a specif object type eg) 0 or “space”. These just initalise an object with the type property set to “empty”.

Ive also started creating moving platforms. Ive done this in a similar way to which i made moving emery’s but in still working on the way of making it so that Trevor moves with them. The main solution in looking at involves having a boolean value on the object called moving which is checked for in the gravity part of trevors movement loop and, if found to be true, adds this objects speed to trevors.

Juggling >> Diablo

For christmas i got a diablo which is another ting for me to add to my juggling tutorial. At the moment I am still learning the basics and some simple tricks(like a half sun). Hopefully soon i will have some videos of me doing these which i can put on Youtube and embed within my blogs. Another thing im aiming to do with this is to put a diablo learning section onto the end of each of my blogs which will explain each trick i learn when i learn it and any tips and tricks i come across.

Anti wobble

This is the posh name i just made up for stopping the diablo wobbling so that you can keep it going straight and makes it easier to throw and catch.

If the far end of the diablo is raising (so it tilts towards you) push forward with you string hands stick. If the near end is tilting towards you push forward your weak hands stick(or pull back you string hands). This should correct the diablo making it spin straight. An easy way to rember is the side thats lifting up is the side to push forward.


December 22, 2007 Leave a comment
Hi this is my first blog post and is really more of an experiment. I should hopefully get this blog running properly by the end of the xmas holls(fingers crossed). So come back soon to see my new entrys. If you want to see stuff ive currently got published go to dwebs ( which is my current website.

Post content:

  • Coming up
  • about trevor

Soon on this blog will be entrys about thedevelopment of the game Trevor Pythagroras, these include changes to the source code and explinations of how the game works. It will hopefully go through the step by step process invloved in the making of it. It will also give hints of the new levels that are going to be created for it and give accounts of the main changes to the game that i make. It may even run competitions to design the icons, pictures and music for the game :). Hopefully I will soon be able to publish the game on this blog else youll be able to find in on my website ( when its finished
Coming up
Thi blog should have entrys about trevors pythag aswell as some other topics that intrest me. These will include juggling, kiting and surfing(in the summer) where O plan to wrtie about knew things i learn and what ive done. These wont be in the main section of the blog, but underneath. You can read more about these at my site.

Thankx for reading :). also @ and youtube @ haker2k7 – come visit :). email me for more info at