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
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 ;)
@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.
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.
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.
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.
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!
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.
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 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.
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.
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 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.
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.
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.
This has been flagged as spam show
One question... How did you define where character can stand, and where he can't? Also the moving bounds, left and right?
scofieldforlife 1 month ago
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)
lukeme99 1 year ago
Keep it up because you have to start somewhere and you have to crawl before you walk. Love your game
Incogneto100 1 year ago
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 1 year ago
@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.
johngeetar 1 year ago
Not bad! :D Looks good ;)
TheDaniel0108 1 year ago
Awesome! I'm still working on environment and collusion detection, but I haven't enough expirience...
RungAaz 1 year ago
AWESOME!!!
arnedussin 1 year ago
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 ;)
DoubleM55 1 year ago
dude great game! can i please have source code? and how do u make the map out of txt file ty
mnmboy9147 1 year ago
@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.
HyppoStudios 1 year ago
very nice... wish i could do that in php
kongartur 1 year ago
hey me too.. please tell me how you do gravity..
anyway 5/5
blackcoder41 1 year ago
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.
Soulsphere001 1 year ago
That was to Blackcoder41, by the way.
Soulsphere001 1 year ago
@Soulsphere001 what i want to know is how does his character jumps so realistic.. maybe its about acceleration as you just said..
blackcoder41 1 year ago
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.
Soulsphere001 1 year ago
you said "I know its not much" Dude it is much :P 5/5
NamishuHatake 2 years ago 7
could you pls tell my how did you do gravity? Nice work BTW =)
123ponco 2 years ago
keep it dude nice work..
superbursihido 2 years ago
Verry nice. I bet you put a lot of hard work in it.
kajzec 2 years ago
how can you say youre not good at this? most intermediate c++ programmers wouldnt be able to do this
polopnol 2 years ago 5
Thanks :)
HyppoStudios 2 years ago
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.
bl0ckeduser 2 years ago 2
Nice Work!
jagarbercolumbus 2 years ago
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!
ryancfcsas 2 years ago
nice
Element20200 2 years ago
how much c++ do you know, and how long have you been learning SDL. I know c++, but i don't know sdl programming.
spartasoldier300 2 years ago
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.
HyppoStudios 2 years ago
so i should start with sdl 2d, not opengl 3d. Well is opengl 3d hard or something.
spartasoldier300 2 years ago
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.
shneebleu 2 years ago
Very good. Excellent work.
MatutinSoad 3 years ago
nice im trying a sdl+c++ game havent reached your level yet though lol
gonzo191 3 years ago
Hello nice game you have coded there. How did you code the gravity (jumping, falling down)?
IIIIIIIIIIIIlIIIIIII 3 years ago
did you get your answer on how to code the gravity cus i know just ask if you want
knabbers 2 years ago
its look like gamemaker
thegamecreator 3 years ago
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.
HyppoStudios 3 years ago
hey, im trying to find a decent C/C++ SDL tutorial to make something like this, where did you learn?
randomProgrammer 3 years ago
Get a Begginners book for gaming, the authors need the money so they put extra care in it XD
WaWaWalrus 3 years ago
Lol. They don't want complaints from stupid customers, eh ?
bl0ckeduser 2 years ago
Great!
What's the FPS?
Tip: Save the maps in a folder called 'map' with the extension *.map. Sounds more professional.
HBoud 3 years ago
It was very low. That's why I quit the project.
HyppoStudios 3 years ago
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!!
aldex123 3 years ago
Yeah, but the height of his jump is controlled by a single integer, so it's easily adjusted.
manhaeve5 3 years ago
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
soccergod561234 3 years ago
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.
HyppoStudios 3 years ago
awesome, keep it up
psygnia 3 years ago
nice.
snasebrase 3 years ago
where did u learn this?
im trying to learn SDL, but its hard for me to find a tutorial that work.
shadebite 3 years ago
This comment has received too many negative votes show
You didn't make anything of that, that was made by an editor called Game Factory or similar.
AndreONEz 3 years ago
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.
manhaeve5 3 years ago
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 :-)
ProgrammerInProgress 3 years ago 3
Nice project... keep working =D
KuramaYoko10 3 years ago
Nice game :D
EdurarTe 3 years ago
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 :)
DusteDdekay 3 years ago
How did you capture the video? I plan to do some video tutorials on SDL and game development.
ableh123456789 3 years ago
Screen Movie studio
manhaeve5 3 years ago
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.
smbot31 3 years ago
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.
manhaeve5 3 years ago
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.
ableh123456789 3 years ago
Do you guys find it wierd that a 12 year old is intrested in programing
BUDOKAI1 3 years ago
It's thirteen, and why is that strange?
manhaeve5 3 years ago
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
LusikkaMage 3 years ago
When your young you wonder how they make those games then when you findout you want to learn
BUDOKAI1 3 years ago
Oh and how do you go true full screen?
jSaurabh 3 years ago
set your screen surface to
"SDL_SetVideoMode(800,600,32,SDL_HWSURFACE|SDL_FULLSCREEN);"
manhaeve5 3 years ago
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.
jSaurabh 3 years ago
Yes Its C++ with SDL. Too bad I cant study for it yet, still 13 =(
manhaeve5 3 years ago
Good for a beginner :D
MrPickelnose 4 years ago
Were you able to finish the game? I'm trying to make an SDL asteroid game, hehe.
P4rD0nM3 4 years ago
This kinda stuff is pretty simple to do with Python and Pygame, a binding for SDL (without 3d however).
chert95 4 years ago
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) :(
manhaeve5 4 years ago
Sounds like your engine is inefficient. When you redraw, are you redrawing ever single object? I found that that is the common problem.
jSaurabh 3 years ago
Well, I was just a beginner in SDL that time, so i took a very expensive way of drawing, last time i do that...
manhaeve5 3 years ago
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. :)
leezhieng 4 years ago
its made with Screen Movie Studio
manhaeve5 4 years ago
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.
LusikkaMage 4 years ago
Thank you. It is indeed only for the experience.
manhaeve5 4 years ago
good start! you will at least get some good programming experience out of it.
wabashii 4 years ago