A Flash Developer Resource Site

Page 1 of 21 1234511 ... LastLast
Results 1 to 20 of 407

Thread: MarioKart style flash engine

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Posts
    101

    MarioKart style flash engine

    howdy, i've only been working on this engine for the last few days, but im quite pleased with how well its working so i thought i'd show it off

    The game uses a 1000x1000 pixel image for the road, so i've done two versions, a non-compressed 290K one and an uber compressed 45k version.

    Graphics and car movement need alot of work.

    http://www.pargames.co.uk/mariokartsm.html (45k)
    http://www.pargames.co.uk/mariokart.html (290k)

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    252
    HOLY CRAP! thats so cool!

    btw, i see that you got lazy and didn't want to draw the car at another angle, instead you just mirrored the image cause the guy inside the car jumps from the drivers side to the passengers side whenever you turn left/right

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Posts
    101
    ... shhh now

    twasnt lazy ness, was to save on file size

    car is only temporary anyhow, i'll make one that'll be symetrical and then it wont matter when it flips it horizontally.

    Thanks for the praise

  4. #4
    .: Weirded Out :. The_Xell's Avatar
    Join Date
    Nov 2002
    Location
    Under the table and dreaming...
    Posts
    802
    worthy of praise! It's AMAZIN'!

  5. #5
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,744
    wow, hat off! thats truly wonderfull... great to see something so inspiring around here!

    hows about a quick synopsis on how you went about it... =)

  6. #6
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    Yes, very cool idea, and it's fast too!

  7. #7
    ism BlinkOk's Avatar
    Join Date
    Aug 2001
    Location
    , location, location
    Posts
    5,002
    ditto on the amazing! wonderfull stuff!
    Last edited by BlinkOk; 06-23-2003 at 06:27 PM.
    Graphics Attract, Motion Engages, Gameplay Addicts
    XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro

  8. #8
    um.. everyone already said it... but NICE WORK

  9. #9
    Time Killer sspskater's Avatar
    Join Date
    Jun 2002
    Location
    Closer to u then u think
    Posts
    493
    That's hella cool! Feels like im playing mario kart 64 all over again except no controler.
    A young mind is more knowledgable then a mind corrupted and blinded by society.

    Portfolio: My Portfolio
    FFGuardians:PHP MMORPG(Closed Beta)
    PyroWare Studios:PyroWare Studios-Flash&Web Development

  10. #10
    Senior Member
    Join Date
    Aug 2001
    Posts
    101

    hills??

    Thanks all

    >hows about a quick synopsis on how you went about it... =)

    Maybe but i wanna be mean for now and keep the method a secret. But no doubt i'll probably end up getting bored of working on the engine so i'll make it open source.

    However, thats not gonna happen soon, (my getting bored) because I've just discovered a technique that might mean I can create a landscape with hills and stuff, instead of a flat plain

    obviously it doesnt work right now, but hopefully this gives you an impression of what I mean.

    http://www.pargames.co.uk/mariokart5.html

  11. #11
    Senior Member Kirill M.'s Avatar
    Join Date
    May 2002
    Location
    Toronto, Canada
    Posts
    711
    That's some great stuff. And you've got the collision detection with the grass working an everything. The landscaping is great too. This is going to redefine Flash gaming.

  12. #12
    Neoteric Lukstr's Avatar
    Join Date
    Apr 2002
    Location
    "The Cave"
    Posts
    695
    mbenney, it's the same type of engine we were talking about way back when, except, he did it, and we didn't. Percy, I thought for a long time trying to figure out a good way to go about it. Gives us hints!
    - Lukstr

  13. #13
    Neoteric Lukstr's Avatar
    Join Date
    Apr 2002
    Location
    "The Cave"
    Posts
    695
    I thought I'd explain a little more on how his engine works (but I still don't know how he did it!)

    His engine begins with a bunch of strips like this

    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------

    Ok, so starting with the first strip (the bottom one, it is given a slice of road, then the next one up is given a slice of road, but it is scaled down, and so on, so it gives the illusion of perspective. A great example of this is Mario Kart of course, but another great is Top Gear 1/2/3000 for the SNES, I suggest you check those out if you want to see what I mean (it has hills and stuff). You could indeed make a mario cart engine out of this, but I'd like to see what it would look like if you made the bands 1 px each, the quality must look amazing then, but at the loss of a high fps.
    - Lukstr

  14. #14
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    Yes, as Lukstr pointed out the moving road and grass is made up of strips of the original image. I think I know how it is done (or at least can be done):

    From the bottom of the screen to the middle of the screen there are movie clips placed with decreasing height, say 10 at the bottom and 1 in the middle of the page and everything in between. Every "strip movie clip" is masked using a mask with the same height as the strip movie clip itself (1-10). Inside the strip mc the image is placed and scaled, smaller scale for strips with smaller height, to give the appearence of perspective as Lukstr pointed out. The car has an angle (the direction of movement). The car has a position on the huge image. The images in the strip mc:s are rotated by the car angle around the car position coord on the image. The images in every strip mc are moved to this position, with an offset in y-pos in the strip mc depending on the strip mc's position between the horizon and the bottom of the screen.

    The collision detection is probably a comparison to a 2d array (it doesn't have to be that detailed because the road is pretty large, and you don't need that precision...)

    PercyPea, have I misunderstood completely? Again great idea and execution of the idea!

  15. #15
    for the win Asclepeos's Avatar
    Join Date
    Dec 2000
    Posts
    388
    ok it's planar so x and y probably no z (that's wwhat probably accounts for the speed).

    umm the dynamics shouldn't be so hard to guess at.

    but it's the render system that completely baffles me.

    The car has a position on the huge image
    that's probably my best guess.

  16. #16
    for the win Asclepeos's Avatar
    Join Date
    Dec 2000
    Posts
    388
    Originally posted by Lukstr
    I thought I'd explain a little more on how his engine works (but I still don't know how he did it!)

    His engine begins with a bunch of strips like this

    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------
    ---------------------------

    Ok, so starting with the first strip (the bottom one, it is given a slice of road, then the next one up is given a slice of road, but it is scaled down, and so on, so it gives the illusion of perspective. A great example of this is Mario Kart of course, but another great is Top Gear 1/2/3000 for the SNES, I suggest you check those out if you want to see what I mean (it has hills and stuff). You could indeed make a mario cart engine out of this, but I'd like to see what it would look like if you made the bands 1 px each, the quality must look amazing then, but at the loss of a high fps.
    ahh I get it. frightfully clever.

  17. #17
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    quote:
    --------------------------------------------------------------------------------
    The car has a position on the huge image
    --------------------------------------------------------------------------------


    that's probably my best guess.
    Yes, that sounded a bit stupid...

    I've attached an image I drew just to get an idea of the procedure that PercyPea probably used, might help somebody else too.
    Attached Images Attached Images

  18. #18
    Senior Member
    Join Date
    Feb 2003
    Posts
    146
    Cool!

    Now all you need is realistic car physics and some competition.

    Flash Turismo!

    (I can help with car physics *wink* *wink*)

  19. #19
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Haha i was playing mario cart advance yesterday all day trying to make an engine worthy what a coincodence haha. Very nice engine. Add some paralax scrolling in the backgroud of some building or something give more effect. It roxors by the way.
    Last edited by hooligan2001; 06-23-2003 at 10:48 PM.

  20. #20
    Always Twirling Toward Freedom pooon's Avatar
    Join Date
    Oct 2001
    Location
    On the sunny beaches of Canada
    Posts
    896
    Man, stuff like this could change the way we make flash games. Its nuts. Keep it up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center