Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Simple mario like 2d game. (programming with SDL) part1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
15,834
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 28, 2009

This is the game what i'm doing now.
I use dev c++, SDL (www.libsdl.org) for programming, MSpaint for sprite drawing.
What is on the game: side scrolling, collosion detection, tile based map.
What i develop now: enemy, smaller, and more tiles, background, gravity, sliding.
It is my second game(the first was a very simple pong), so i'm a beginner
The resolution is only 320*240, cause i'm making it on my very old compaq armada 4131t laptop(133mhz 24 mb ram)
http://nords.fw.hu
Ez a játék amit jelenleg készítek:
Dev c++, SDL használatával fejlesztem, a prite animáció rajzolását MS paintben készítettem.
ami benne van: szkrollozás, ütközés detektálás, négyzetekből álló pálya.
Amit még készítek: ellenség, kisebb és több négyzet alapú tárgyelem, háttér, gravitáció, csúszás.
Ez a második játékom, (az első egy pong volt), szóval még nagyon kezdő vagyok :).
felbontás csak 320*240, mert a nagyon régi laptopomon fejlesztem.
http://nords.fw.hu

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (avvoltoio31)

  • I have a question: How do you did the scrolling? You have a very large picture and just scroll the screen around it? Or you did something else? (I already know SDL, and I'm interesting in do something like this).

  • the background pic with the hills is a very large(it is in the other video about this game) pic.

    The foreground(the place where the dwarf can move, or the red bricks) are 32*32 blocks, the resolution of the game is 320*240, so when the dwarf X reach 260 the dwarf not move more only the background move. To move the background, i only need to add the dwarfSpeedX value to the BlockX value(i only move the blocks as i moved the dwarf)

  • Nice job, keep up the good work! :)

  • Thanks :)

Top Comments

  • Do you have a tutorial? I want to make a game like that... :)

  • OMG!!! Mario got an axe! :)

    Nice job!

see all

All Comments (36)

Sign In or Sign Up now to post a comment!
  • can you please make a tutorial?

  • @Invisibrah he should also turn off the graph hex editor and turn down GUI physics to run down frame rat eissues. in my experience a larger GUI is more important than a expended hex probe

  • Terrible physics.

  • Goes to slow but other then that its good

  • @swu880

    You just put a boolean value in all of them. If it's false, then the program won't even consider them for collision.

  • The jumping looks really jagged.

    Instead of adding just one number to his Y position, try in turn adding a number to that as well, it'll make him jump smoothly because of the acceleration.

  • hi, is it possible to get the source code for this? It looks like an awesome start.

    Im totally confused about how the collision detection works. How do you know that theres a floor under "mario" to run on? cuz you got all these "hills" and drops so what do you use to compare & check for?

  • Nice. You should fix the gravity.

  • I can make better with Blitz3D and BlitzPlus...

  • @InertLoop Continue to ignore me...you'll regret it.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more