Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

:dance:
 

Platform Game Engine v0.1 by *GuyFlash:iconGuyFlash:


©2006-2009 *GuyFlash
:iconguyflash:

Artist's Comments

its a .fla file so you will need to click 'download to desktop' to view :)

ok, first off this is horrendously raw and I still need to do a lot of work on it, however some of the code is commented and what isnt should be fairly self explanitory.
I am only releasing the 0.1 version because I want anybody to find any bugs that are in at this point, and some people may just want to see how I code my platform games :)

Features:
- running, jumping and crouching (also skidding ;))
- simple system of using floors, walls and ceiling movieclips which the playable character interacts with appropriately
- easily modified character for various animations
- level appearance and complexity is as good as your flash artwork can be
- teleporting between levels so there is screen-by-screen progression similar to early prince of persia
- game loop code all commented

Still to come:
- a help file
- support for more than 10 floors, 10 walls and 10 ceilings
- a moddable main menu featuring the ability to change the controls
- improved (and hopefully simpler) teleporting
- built in preloader
- example game and tutorial on making it

stuff to note about v0.1:
-walls ceilings and floors need to be named uniquely (mcWALL1,mcWALL2,mcWALL3... mcCEILING1,mcCEILING2... mcPLATFORM1,mcPLATFORM2 etc)
-you can have a maximum of 10 walls, 10 ceilings and 10 platforms
-walls ceilings and platforms must not have the same name and number or they wont work
-PLEASE let me know if you need help or find bugs, I want to make this easy to use.
-also tips on coding would be much appreciated ;)

IMPORTANT!:
I havent had time to decide which licence to put on this code but I'll say this:
you are free to read, use and modify this code for the purposes of learning or making a game (even for profit) however you must credit me and give a link back to my page (and please dont be shy about it or hide the link somewhere, you should have a credits page in your menu, you want traffic too right ;p)
by using this you also realise that it is incomplete and I may change the file or improve it without informing you (i.e theres better stuff on the way)

ok, I think thats all the nonsence I need to waffle about, check it out. make something cool people :D

edit: oh yeah, its mx2004 file format ;p

Comments


love 1 1 joy 2 2 wow 1 1 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconkronickatt:
-.- It looks awesome but I don't think I have the mx2004 thingy, cuz when I download it, it says Unexpected file format or somethin :c

--
Time sure does fly when your adjusting the clock!

-KronicKatt
:iconpainisenjoyment:
rofl! i went to click "download to desktop" and mindlessly clicked "add to favorites". and, for some odd reason, it will not let me download it to me desktop. :( i hate the internet and deviantART and firefox. i just favorited something that i can't even view! :shakefist:

--
but to tell her, would be to clip the wings of the dove,
that could so easily have carried that message by kiss.
----------------------------------------------------------î Am: KÏñG tØmÅtHØñ
:iconguyflash:
err, I dont usually say this, and I will regret it in the morning... try ie?

...

I regret saying it allready :(

--
...FACT!
[Dont like censorship? join the anti-censorship club]
[Find me in #Flashers baybee!]
:iconpainisenjoyment:
ew! you said IE! i got it to work after like 60 tries, and opening and closing forefox a few times. haha.

:thumbsup:

--
but to tell her, would be to clip the wings of the dove,
that could so easily have carried that message by kiss.
----------------------------------------------------------î Am: KÏñG tØmÅtHØñ
:iconrockintom99:
Very nice. I should be ripping it apart pretty soon ;)

Also, i think GPL would fit nicely for licensing.

--
LOBSTER is not a crime.
:iconchampionchap:
hmm, ill give it a look tomorrow i guess
but i dont think ill be using your code.. ill be all about my own

i find it easier to write my own than to edit somebody elses

--
There's no emoticon for what i'm feeling!!!
:iconrockintom99:
Theres only one thing i can think of that would be simpler:
In the character, where you have the multiple animations on different frames, it is easier to have a single walking animation facing right (or left, whatever), and change the xscale to -100 when the left key is pressed. same could be said for all animations. Instead of the character doing a different animation, the sprite will just be facing the opposite direction.

Of course, that wouldn't work when you are using two different animations for left walk and right walk. But, in most cases, that doesn't happen.

Anyway, very nice engine. The collision detection is how i thought it would be, i just always assumed that was a very slow method. Guess not. Maybe i shall finally get off my ass and make a neat platform game :)

--
LOBSTER is not a crime.
:icon0pie:
Umm, what did you make the "player" in? Flash?

--
0pie is deviant #1808902
AVATARS BY ME: ~AVATAR-MASTER
Su mamá lame los lugares marrones en mi bajo prendas de vestir
--------------------------------------------
Tis Comant iz, ummmm, yah, an ofigument os yo inaginaination. HO HO HO!
-----------

Details

June 3, 2006
1.3 MB
11.3 KB
412×388

Statistics

64
115 [who?]
16,008 (7 today)
5,581 (1 today)

Share

Link
Embed
Thumb

Site Map