Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 My Turing Platformer Game
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Warchamp7




PostPosted: 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.



Platformer.zip
 Description:
The game

Download
 Filename:  Platformer.zip
 Filesize:  340.16 KB
 Downloaded:  1329 Time(s)


batmfa__.zip
 Description:
This font is required to display the game properly. Extract the ttf file to
C:\WINDOWS\Fonts
if C is your default local drive

Download
 Filename:  batmfa__.zip
 Filesize:  22 Bytes
 Downloaded:  415 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: 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!
Warchamp7




PostPosted: 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!
Warchamp7




PostPosted: 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



Platformer.rar
 Description:
Newest version right now.
!-------------------------------------------------------------------------!
You still need the font in my first post for this to display correctly
!-------------------------------------------------------------------------!

Download
 Filename:  Platformer.rar
 Filesize:  341.87 KB
 Downloaded:  469 Time(s)

SNIPERDUDE




PostPosted: 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
gitoxa




PostPosted: 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
Insectoid




PostPosted: 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.
SNIPERDUDE




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: 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.
Warchamp7




PostPosted: 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?



batmfa__.zip
 Description:
The font file for the game

Download
 Filename:  batmfa__.zip
 Filesize:  24.31 KB
 Downloaded:  241 Time(s)

SNIPERDUDE




PostPosted: 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.
Warchamp7




PostPosted: 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
SNIPERDUDE




PostPosted: 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?
Warchamp7




PostPosted: 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?
SNIPERDUDE




PostPosted: Tue Jul 08, 2008 11:18 pm   Post subject: RE:My Turing Platformer Game

hmm, I'll see.
Post it tommorow.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 3  [ 31 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: