Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Jumpy, a small no-media game

Author
Message
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 22nd Nov 2006 06:46 Edited at: 22nd Nov 2006 06:53
I just saw this flash game the other day, and i wanted to code something like it to learn from. I dont have the original games URL or name, i just tried it briefly. Well, theres no media, and its coded in a few hours. I plan to maby make a level editor (also just for learning purposes), so the level making gets easier.
Currently it has four levels (just started the fifth.)
well.. Here ya go..

Oh, and this is DBP. I forgot to add it to the subject line. Mod's, feel free to add if you'd like.

Neptune
18
Years of Service
User Offline
Joined: 8th Jan 2006
Location: United Kingdom
Posted: 22nd Nov 2006 10:31
Nice. If I had one slight criticism it would be that the collision detection is a bit sensitive (i.e. detecting the collision of the character using a bounding box rather that a circle). Keep it up.
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 22nd Nov 2006 14:27
I dont have the eXtends plugins to do pixel perfect collision, and im trying to keep the code as short and effective as possible.
I see now that i forgot to add "if the plater has no more lives, retry?" part, and some other small stuff, will add later.

Anyone got any idea how i can do the rotating of the sprite with collision without getting eXtends?
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 23rd Nov 2006 05:33 Edited at: 23rd Nov 2006 05:34
Nice job!

It plays just like City Jumper ( http://www.nationlocation.com/cityJumper.swf ) which might be the game you were thinking of

Note: On my machine (1280x1024, default IDE, v1.062C) I had to add the line "Set Display Mode 1024,768,16" to the very beginning or else I received an "illegal area line 4" error message.
HZiM0rT4L
18
Years of Service
User Offline
Joined: 9th Sep 2006
Location: hnnnnnng
Posted: 23rd Nov 2006 21:00
level 3 not responding to space or up-arrow

(1.063 + Codesurge)

DB PRO RULES!
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 24th Nov 2006 03:38
What? there are a few bugs when jumping into the next level, though ive never experienced total non-responding of either keys (maby just for a few lives cause of the rotating thing). Try it again, it'll probably work. Im going to my parents the next few days, ill go over the code and try make it even shorter (and better) when i get back. Oh, and the separate levels have no different coding other than the placement of the boxes, so they should all respond..
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 24th Nov 2006 03:39
And xCept: I see there are tons of games just like this, city jumper is not the exact one i played, but similar (better graphics, and no city ) I dont know why you get the Set display mode bug, gotta be a IDE thing, i use Codesurge. Dont really know.. i will just add the set display mode command just to make sure later

Login to post a reply

Server time is: 2024-11-22 23:26:05
Your offset time is: 2024-11-22 23:26:05