Computer Science Canada

My Turing Platformer Game

Author:  Warchamp7 [ Tue Jun 17, 2008 9:31 am ]
Post subject:  My Turing Platformer Game

A big special thanks to Mazer for his jump system found here
http://compsci.ca/v3/viewtopic.php?t=16790

Also in that thread, thanks to Michael516 for his explanation of platforms, as I had missed the velocity portion which through comparison of my code and his I was able to determine.

This version only contains 4 "Tutorial" levels that explain the gimmicks of the game. I have some other levels made in a version at home. If anyone has any ideas for some other gimmicks, I'm welcome to hear some of them.

I already have a level editor planned out in my head which I intend to do at a later date.

Author:  Insectoid [ Tue Jun 17, 2008 9:47 am ]
Post subject:  RE:My Turing Platformer Game

Not bad!

Did you use View.Update in it? It flickers a lot.
Next step- Replace boxes & circles with pictures/sprites. Upload the other levels, I beg you!

Author:  Warchamp7 [ Tue Jun 17, 2008 2:18 pm ]
Post subject:  Re: RE:My Turing Platformer Game

insectoid @ Tue Jun 17, 2008 9:47 am wrote:
Not bad!

Did you use View.Update in it? It flickers a lot.
Next step- Replace boxes & circles with pictures/sprites. Upload the other levels, I beg you!


You know, I had never really tinkered with it. I would toss it in and everything would trail and not erase right. Now that I think about it, all I need to do is draw a white version of whatever is changing heh

Which I have just done and it looks great Very Happy

The levels themselves I actually made very flexible. All the platforms get checks in the main loop. So every time the game loops (Exiting the game loop after each level) it sets level + 1 and then through a if, elsif statement, each level is just the variables for everything. If I'm not using a platform, I just place it offscreen. Coins have a boolean and only display if it's true, etc.

I'm rather proud of myself for the set up actually XD


For the heck of it, I'll post my level 1 code with some added comments signified by two %
code:

%%Number of Coins to be collected
NumCoins := 0
%%Coins collected so far, set to 0 before even checking levels
CoinsCol := 0
%Level definitions Here
if level = 1 then
%Player Start
posx := 20
posy := 50

%Platform variables
%%The platforms are actually drawn at ground level for level 1 as there are none
Plat1x := 100
Plat1y := 0

Plat2x := 200
Plat2y := 0

Plat3x := 300
Plat3y := 0

Plat4x := 400
Plat4y := 0

%Win Box variables
winx := 600
winy := 1
% -------------------
elsif level = 2 then

%%Blah blah blah :P


Behold the complexity of level 1 lol

More comments on this please! All feedback is appreciated!

Author:  Warchamp7 [ Wed Jun 18, 2008 3:48 pm ]
Post subject:  Re: My Turing Platformer Game

Wow, you can't edit a post thats been replied to. That's a little lame Razz

Anyway, here's a newer version with a few levels and a couple new updates to the system including a level drawing system that draws each individual piece of the level before starting Smile

The game also now properly makes use of offscreenonly, no more flickering!

My next step is obviously more levels and adding a trail to the box you control using some arrays Very Happy
DONE

COMMENTS ON THIS ARE APPRECIATED!!

PLEASE get the font in my first post, as some game text won't display properly without it


Edit: I made some more updates to the game, including allowing you to run around the main screen Very Happy

Author:  SNIPERDUDE [ Thu Jun 19, 2008 10:34 am ]
Post subject:  RE:My Turing Platformer Game

pretty good.

A couple of things...

were you going for the blurred box effect?
for some reason you can't jump through the portal from directly underneath it.

Other than that, I think it was well laid out.

Smile

Author:  gitoxa [ Thu Jun 19, 2008 12:38 pm ]
Post subject:  RE:My Turing Platformer Game

Is it just me, or is the file "batmfa__.zip" empty?

Game still works without it though, it's fairly good. I'd suggest maybe some more colour, there's a lot of white on screen. Razz

And yes Sniperdude, he was going for the blurred box effect.
Warchamp7 wrote:
My next step is obviously more levels and adding a trail to the box you control using some arrays Very Happy
DONE

Author:  Insectoid [ Thu Jun 19, 2008 1:14 pm ]
Post subject:  RE:My Turing Platformer Game

Gah! I can't download it! I'll have to download from FireFox after my mom is done checking her E-mails.

Author:  SNIPERDUDE [ Thu Jun 19, 2008 2:05 pm ]
Post subject:  Re: RE:My Turing Platformer Game

gitoxa @ Thu Jun 19, 2008 12:38 pm wrote:

And yes Sniperdude, he was going for the blurred box effect.


my bad.

So the only other thing I had with it was jumping straight up into a portal

Author:  Insectoid [ Thu Jun 19, 2008 2:21 pm ]
Post subject:  RE:My Turing Platformer Game

Downloaded, played, and loved! Next step- Ending screen showing time and a high score list.

Author:  Warchamp7 [ Thu Jun 19, 2008 7:51 pm ]
Post subject:  Re: RE:My Turing Platformer Game

SNIPERDUDE @ Thu Jun 19, 2008 2:05 pm wrote:
gitoxa @ Thu Jun 19, 2008 12:38 pm wrote:

And yes Sniperdude, he was going for the blurred box effect.


my bad.

So the only other thing I had with it was jumping straight up into a portal


I don't understand what you mean. I can jump straight upwards into a portal, I even went through one end and then back through without moving left or right, works fine for me. Also, if that font file is empty, I'll put up a new one ><


Also, regarding the trails, do you guys like them or no?

Author:  SNIPERDUDE [ Sat Jun 21, 2008 7:46 am ]
Post subject:  RE:My Turing Platformer Game

the trails are pretty cool, I just didn't know if it was your plan to. Maybe have an option screen where you can turn it off or on (and other stuff like music later) for those other players.

Anywho what I mean about the portals is on some maps when I stand directly under the portal and jump without moving left or right, it will teleport me back to where I was.

EDIT: Hmmm, I think I know what it is...

It seems to be the placement of the teleports (how high off the ground), I noticed on one of the levels that it is placed higher than the rest in the game and doesn't cause this problem.

Author:  Warchamp7 [ Mon Jul 07, 2008 4:18 pm ]
Post subject:  Re: RE:My Turing Platformer Game

SNIPERDUDE @ Sat Jun 21, 2008 7:46 am wrote:
the trails are pretty cool, I just didn't know if it was your plan to. Maybe have an option screen where you can turn it off or on (and other stuff like music later) for those other players.

Anywho what I mean about the portals is on some maps when I stand directly under the portal and jump without moving left or right, it will teleport me back to where I was.

EDIT: Hmmm, I think I know what it is...

It seems to be the placement of the teleports (how high off the ground), I noticed on one of the levels that it is placed higher than the rest in the game and doesn't cause this problem.


I added an option on the main screen to toggle the trails

Also, lemme clarify. You jump through the portal, teleport to the other portal and then get teleported back to the first one again?

The game has a 500 ms delay between going through a portal again, and I don't have this issue when I've tried to replicate the issue. The only thing I can think of is the system you're playing the game on is a little laggy

Author:  SNIPERDUDE [ Tue Jul 08, 2008 12:18 pm ]
Post subject:  RE:My Turing Platformer Game

not laggy in the least.

Have you tried it on all levels?

Author:  Warchamp7 [ Tue Jul 08, 2008 1:49 pm ]
Post subject:  RE:My Turing Platformer Game

Yes, thoroughly. Any chance you could get a video of it happening?

Author:  SNIPERDUDE [ Tue Jul 08, 2008 11:18 pm ]
Post subject:  RE:My Turing Platformer Game

hmm, I'll see.
Post it tommorow.

Author:  andrew. [ Fri Jul 18, 2008 9:13 am ]
Post subject:  RE:My Turing Platformer Game

The variable system is kind of like how my Super Mario Battle loaded levels except mine read each level from a file. That way people could make their own.

Author:  Warchamp7 [ Mon Jul 21, 2008 10:40 pm ]
Post subject:  Re: RE:My Turing Platformer Game

andrew. @ Fri Jul 18, 2008 9:13 am wrote:
The variable system is kind of like how my Super Mario Battle loaded levels except mine read each level from a file. That way people could make their own.


I'm going to be doing that for the level editor when I get around to it lol

Author:  Warchamp7 [ Fri Sep 05, 2008 3:36 pm ]
Post subject:  NEW VERS -Platformer-

Call this a thread revive Wink

New Version :O

I've been slowly tinkering with a few things and then today in Math Class I got bored and completely rewrote the platform system on paper and have now implemented it.

This version contains:
-Trails Toggle Option
-New Disappearing Platforms
-New Platform System (Nothing Graphically Apparent)
-Pause Menu
-Game Runs Faster

Controls
Left, Right - Movement
Up Arrow - Jump
P - Pause Button
Enter - Respawn

Contained in the Zip is the game and the font file which you NEED to install for the text in-game to display correctly.

If you main drive is C:\ then the font goes in C:\WINDOWS\Fonts

Author:  SNIPERDUDE [ Fri Sep 05, 2008 9:28 pm ]
Post subject:  RE:My Turing Platformer Game

Nice! Liked, was very addicting.

I also like the new disappearing platform idea.

Author:  Boiq [ Mon Sep 08, 2008 7:15 am ]
Post subject:  RE:My Turing Platformer Game

Awesome game.

It's pretty addicting, haha.

Author:  Warchamp7 [ Fri Sep 12, 2008 1:32 pm ]
Post subject:  Re: My Turing Platformer Game

New Update

This Version Contains
-About 5 lines of the editor that you won't ever see in action
-New Font Check

About the Font Check
Try running the game without the font installed in your font folder Smile
(If you've installed it already, it's in the folder as BatmanForeverAlternate)

Controls
Left, Right - Movement
Up Arrow - Jump
P - Pause Button
Enter - Respawn

Aside from that not much has changed

Contained in the zip is the game exe and font

Enjoy

Author:  Tyr_God_Of_War [ Mon Nov 10, 2008 6:32 pm ]
Post subject:  RE:My Turing Platformer Game

Very good but could you make it more floaty, (reduce the gravity), please?

Author:  SNIPERDUDE [ Wed Nov 12, 2008 8:24 pm ]
Post subject:  RE:My Turing Platformer Game

Hmm, it would be interesting to see that - but would it make it too easy?
Speaking of it is a little easy at this point, try looking into some harder levels. (All of a sudden reminding me of Wicky Woo 2)

Author:  Synix [ Wed Nov 19, 2008 10:48 pm ]
Post subject:  RE:My Turing Platformer Game

love it

Author:  corriep [ Thu Dec 04, 2008 5:33 pm ]
Post subject:  RE:My Turing Platformer Game

Awesome game!
I was thinking of making a platformer/puzzle game for my final project!

I think it really needs more color but other than that its great.

I have just one question, how did you make it detect if it was touching an elevated platform? I think what you did (based on the small snippet you showed) since all of your platforms are exactly 100 pixels long, was a couple of if statements to check if the box's x value was within range of the platformx and above your platformy. Correct me if i'm wrong

Author:  csl_hrdcr [ Wed Dec 17, 2008 8:14 pm ]
Post subject:  RE:My Turing Platformer Game

how do you make the coins dissapear? I am currently making a platformer in turing and I am not experienced at all. I know that I could probably find it somewhere, but I am too lazy. Razz
I love your game, and I agree that more colour would make it better. Anyway, thanks a lot for any help. Bye

Author:  crysis [ Sun Feb 08, 2009 4:32 pm ]
Post subject:  Re: My Turing Platformer Game

does it work without the font? cause i cant install it if so can u post 1 that doesnt need it.

Author:  SNIPERDUDE [ Sun Feb 08, 2009 8:13 pm ]
Post subject:  RE:My Turing Platformer Game

If you don't have the font installed it will just use the default "Ariel".

Author:  saltpro15 [ Sun Feb 08, 2009 8:37 pm ]
Post subject:  RE:My Turing Platformer Game

won't run in linux Sad, ran it through wine, and it opens with the message "you do not have the correct fonts installed, please install the fonts and restart the game", just make it run with ariel or something

Author:  SNIPERDUDE [ Sun Feb 08, 2009 9:03 pm ]
Post subject:  RE:My Turing Platformer Game

ah, Linux. Fun.

But for checking you can make your programme look to see if they have the font, and if it doesn't change the font it uses to Ariel. Easy and safe.

Author:  Agner [ Sat Feb 21, 2009 2:14 pm ]
Post subject:  Re: RE:My Turing Platformer Game

Really fun addicting game, I like the disappearing platform things, it's really cool


: