SDL game
0:53
Added: 4 years ago
From: manhaeve5
Views: 7,004
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (68)

Sign In or Sign Up now to post a comment!
  • is this when X equals ground tile? because a saw something similar where X's dipict tile? (ps im not a noob, so dont give some fancy xplilnation)

  • Keep it up because you have to start somewhere and you have to crawl before you walk. Love your game

  • You say it isn't much but i appreciate it. Cuz i do programming and i know how it is. How did you first start building games? I really want to start. I'm really fascinated by it

  • @Incogneto100 If you already know some C++ do a google search for SDL tutorials. SDL is a fairly easy to learn graphics library. Good luck man.

  • Not bad! :D Looks good ;)

  • Awesome! I'm still working on environment and collusion detection, but I haven't enough expirience...

  • AWESOME!!!

  • It's very good! Good thing you didn't chose game maker or some other bullshit, C/C++ is the right way to learn programming! Keep working, and you will make great things! Also, if you need some text on your game screen, try using SDL_TTF extension, works great for me ;)

  • dude great game! can i please have source code? and how do u make the map out of txt file ty

  • @mnmboy9147 I don't have the sourcecode anymore and the textfiles represent the locations of those cubes, and the games turns that into a map on the screen.

  • very nice... wish i could do that in php

  • hey me too.. please tell me how you do gravity..

    anyway 5/5

  • I doubt gravity would be much different from automatically moving an object. Though you'd have to take acceleration into account. I think the trick is to use a floating point value. Yeah, you might be wondering why you'd use a floating point value with pixels, but think about it. You're not necessarily going to move at least one pixel per frame, especially at the apex of an arc.

  • That was to Blackcoder41, by the way.

  • @Soulsphere001 what i want to know is how does his character jumps so realistic.. maybe its about acceleration as you just said..

  • Yes, because gravity is a force exerted on an object. Force is equal to the mass of said object multiplied by the acceleration of the object. I don't know if he's taking mass into account here, but acceleration is the more important factor to start with here.

    The acceleration of gravity is 9.80 meters per second every second, or 9.80 m/s^2. I believe that translates into 32 feet/s^2, if I'm not mistaken.

  • you said "I know its not much" Dude it is much :P 5/5

  • could you pls tell my how did you do gravity? Nice work BTW =)

  • keep it dude nice work..

  • Verry nice. I bet you put a lot of hard work in it.

  • how can you say youre not good at this? most intermediate c++ programmers wouldnt be able to do this

  • Thanks :)

  • Really ? If you are an 'intermediate' programmer and can't do a platformer, you probably have a problem.... Maybe they just learned game programming badly (eg. step-by-step tutorials with only specific examples) rather than figuring it out themselves.

  • Nice Work!

  • Good program!! I have always been computer literate since I was 13 even staed off school because of computers, taught everthing I know by myself and help of PC magazines and online tutorials. Been learning online video and text tutorials. Videos lets me see how it should look step by step while. the text tutorial shows better ways I think. But well done!

  • nice

  • how much c++ do you know, and how long have you been learning SDL. I know c++, but i don't know sdl programming.

  • I think I've come to the level of C++ that I don't really need te learn anymore for now. I can program alot, all I need to do is just hold on to the project. I've been programming in C++ for about two and a half years now. I've been working with SDL for just a bout a year now I guess. And I'm almost making the jump to 3D with OpenGL, because I can already do 2D with OpenGL.

  • so i should start with sdl 2d, not opengl 3d. Well is opengl 3d hard or something.

  • Yes, start with SDL 2D, then move on later. You might find SDL is good for your needs anyway. It can be very powerful if used correctly.

  • Very good. Excellent work.

  • nice im trying a sdl+c++ game havent reached your level yet though lol

  • Hello nice game you have coded there. How did you code the gravity (jumping, falling down)?

  • did you get your answer on how to code the gravity cus i know just ask if you want

  • its look like gamemaker

  • Yeah, I know, it LOOKS like gamemake, but it isn't. If you watch my other videos, like my Multiplayer shooter, you'll see I use C++. I once made a game with gamemaker when I was 7 or 8, but I've passed that state.

  • hey, im trying to find a decent C/C++ SDL tutorial to make something like this, where did you learn?

  • Get a Begginners book for gaming, the authors need the money so they put extra care in it XD

  • Lol. They don't want complaints from stupid customers, eh ?

  • Great!

    What's the FPS?

    Tip: Save the maps in a folder called 'map' with the extension *.map. Sounds more professional.

  • It was very low. That's why I quit the project.

  • awesome man! I'm learning to make games with C++, I'm just starting tho! I hope I'll get to do things like this!

    The only thing I don't like a lil bit, is the gravity XD heh! he can jump way too much XD

    Nice man really nice! Keep it up!!

  • Yeah, but the height of his jump is controlled by a single integer, so it's easily adjusted.

  • hey ive seen some of your videos and i dont this this one im talking about is on youtube, but its where you got those two oval shapes and its like a platform game except its map not tiel ANYWAYS i was wondering you made the gun rotate around depending on where the cursor was ive been trying to do that in allegro i know you use SDL but i was wondering if you could "unleash" the physics behind it so i coudl use it in my alegro app :P very much apreciated

  • Well, in the cmath library you have the atan2 function. take the mouse coordinates: x1 and y1 and the player coordinates: x2 and y2 the angle of the gun is then atan2(x1-x2,y1-y2);

    I don't know it for sure atm because I cant acces my code. But I think this works.

  • awesome, keep it up

  • nice.

  • where did u learn this?

    im trying to learn SDL, but its hard for me to find a tutorial that work.

  • No it wasn't. It was made by C++ and SDL. If you don't believe me I can send you some of my code to prove it. That game got erased when my HDD's partition tables were messed up.

  • game factory? hardly, I tried the games factory, and it was incapable of making anything like that!

    that game is coded in C++, with the SDL library, and it's pretty good aswell :-)

  • Nice project... keep working =D

  • Nice game :D

  • because of the low framerate (i guess caused by the capure software) its hard to see how smooth it plays.

    Anyway, interesting work, i hope you get this to a "playable" state, and release it into the wild, it's pretty fun to do :)

  • How did you capture the video? I plan to do some video tutorials on SDL and game development.

  • Screen Movie studio

  • Nice work man, very smooth collision detection! do you know where I can find a good tutorial to teach you how to do that? you know like timers, map loading, scrolling, collision detection, etc.

  • The only tutorial i followed was on how to use SDL. I figured the rest out myself. If u want I can write a tutorial for you.

  • The best way to do this is to represent the world with a 2 dimensional matrix (array). Collision is extremely easy, displaying the map is also easy. Best of all you can implement some awesome path finding algorithms for AI.

  • Do you guys find it wierd that a 12 year old is intrested in programing

  • It's thirteen, and why is that strange?

  • No? Isn't like every kid/young person interested in game design? I've been programming since I was at least 10...

    And I'm impressed that he's already using C++!

    Good job. :D

  • When your young you wonder how they make those games then when you findout you want to learn

  • Oh and how do you go true full screen?

  • set your screen surface to

    "SDL_SetVideoMode(800,600,32,S­DL_HWSURFACE|SDL_FULLSCREEN);"­

  • That's pretty good for a beginner. When I first started I programs were kinda like this. For my grade 11 final I wanted to a wolfenstien clone but I never got around to putting enemies and guns so it just became a 3D maze program. This year I am learning openGL, and I plan to make a stealth game that is really heavy on AI. What language are you using? C++ I presume.

  • Yes Its C++ with SDL. Too bad I cant study for it yet, still 13 =(

  • Good for a beginner :D

  • Were you able to finish the game? I'm trying to make an SDL asteroid game, hehe.

  • This kinda stuff is pretty simple to do with Python and Pygame, a binding for SDL (without 3d however).

  • Sry but i dropped the project. I couldnt get the performance up and the game was supossed to be much heavyer (lots and lots of enemys) :(

  • Sounds like your engine is inefficient. When you redraw, are you redrawing ever single object? I found that that is the common problem.

  • Well, I was just a beginner in SDL that time, so i took a very expensive way of drawing, last time i do that...

  • Heyy, nice work you've got there. I'm doing a 2D game with SDL too, but just started a week. Hope to see more progress on this. Good luck. :)

  • its made with Screen Movie Studio

  • Yeah, getting scrolling to work and collision can be quite tedious, especially while making the code look nice. In fact, I don't really know how games are _supposed_ to be organized, but I try anyways. @_@;

    What'd you use to record this with? I'd like to record some of my own stuff, too.

  • Thank you. It is indeed only for the experience.

  • good start!  you will at least get some good programming experience out of 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