I've made a simple SDL program that should display a picture for twenty seconds, then shut down. Compiling is fine, but when I start it it's just a black screen.
I've tried using google to find help, although I can't find anything.
@MrApetastic Did you add the photo in as a bmp. If so you should remember to put SDL_Flip(SDL_Surface * screen) in your running loop. Also, use SDL_LoadBMP("bmp file")
Hey i'v been searching everywhere for a SIMPLE pong game to start off, and thank god you made one BUT your link doesn't work which is really disappointing, do you think you can get another link?
I've been learning SDL myself, on and off, in an effort to program something with basic 2D graphics. Of course, a PONG clone will be my first game, like most people have done. Then I'll try my hand at an asteroids style game.
Ultimately, I'd like to make a game that's somewhat similar to Star Control, but better. I'll see how that turns out.
I felt a little annoyed that someone would try and fob off her/his own work off on someone else. As for comment dates, sometimes the date doesn't matter to me and sometimes it does. But sometimes I don't read the date.
So lots of kills = not too many level gains Skills to increase are determined at level up enemy has the same (or almost the same) skills as player potions are rare and you have limited inv. (20 spots?) Drop rates? Item (equipment) names? How is xp allocated, a set amount per monster? an amount per hp hit? lvl1 - 100xp lvl2 - 300xp <-Good! Instead of lvl1-100xp lvl2 - 1000xp <-Not good
Ok, now write me a RogueLike combat system using the skills of (hp? str, dex, etc.) I need formulas (leveling/xp system too?) Oh, and factor in equipment (sword, armor) and also potions (give heal amounts?) Possibly some sort of % to hit thing? Here's how it works: Player is next to enemy, player "pushes" forward, enemy attacks and player attacks, process continues until one dies, potions will be drank with no turn loss It's grind based as combat can be quick (bosses longer?)
i wrote an app awhile back that changed my wallpaper. turned out to be way to annoying & distracting
icon0x1 2 months ago
How do you make it bounce off the paddles?
i have everything except that. im bout to rage. lol
satsumajeff8 3 months ago
@satsumajeff8 When the ball hits a paddle it's direction is reversed, so the x velocity would be multiplied by -1 or something.
xenflux 3 months ago
well i just, RECENTLY, mastered the basics
zerosk8er4lifee 4 months ago
@zerosk8er4lifee good 4 u?
0ChrisMackle0 3 weeks ago
I seem to do the same thing, when I introduce a big change that I think wont work (but later does) I branch it off as main main2 main3 etc.
739199 4 months ago
I made something like this in java once... Haha.
RobloxScriptTutorial 6 months ago
i wrote an app that changes my desktop all the time to rofl
icon0x1 8 months ago
I use BlitzMax now, I LOVE IT!!! :)
pufixas 9 months ago
did you use SDL_ttf with a custom font to render the score and endscreen or did you just use an image(bmp,png, etc...)?
joeymjones 10 months ago
This has been flagged as spam show
I mastered the basics. :|
MrJacobkip 11 months ago
I mastered the basics. :|
MrJacobkip 11 months ago 2
Great job. C++ is a tough language! Keep up the good work!
Hingir 11 months ago
How does SDL work? Is it like GL, just pushing a shitload of shape matrixes?
Also, can you do cool shaders? PS: Try putting PhysX in = nearly unique game.
thizda 1 year ago
link is broken
Exdozolie 1 year ago
Where can i learn to master the basic too?
Incogneto100 1 year ago
how do u get SDL?
GamingWaveGames 1 year ago
@GamingWaveGames Google SDL.dll theres actually a official site for it. I think its at 1.3 now
adgile 1 year ago
Could you (or anybody else) help me?
I've made a simple SDL program that should display a picture for twenty seconds, then shut down. Compiling is fine, but when I start it it's just a black screen.
I've tried using google to find help, although I can't find anything.
MrApetastic 1 year ago
@MrApetastic i could help you :p pm me the code and i'll take a look at it, if you still need help ;)
oonmm 1 year ago
@MrApetastic Did you add the photo in as a bmp. If so you should remember to put SDL_Flip(SDL_Surface * screen) in your running loop. Also, use SDL_LoadBMP("bmp file")
adgile 1 year ago
@MrApetastic Let me know. :dD
AndyHarglesis 3 months ago
This has been flagged as spam show
Your link doesn't work anymore :s
Ploumbb 1 year ago
Your link doesn't work anymore :s
Ploumbb 1 year ago
Your desktop is pretty annoying :P
7715z 1 year ago 15
@7715z Heh, I switched the Linux Distros full-time a long time ago. Windows isn't suitable for developing things, anyway. ;-)
xenflux 1 year ago 10
@xenflux
Yeah right...
pufixas 9 months ago
God, how do you remember all that code? Im learning SDL but all this crap is like... woah...
Soap360 1 year ago
Omg, you sound so much like a nerd. Blow your nose, good god.
zapleaf 1 year ago
To Fix ur sound Problem(the sound is coming too slow) u must set the buffer size lower
rsich1994 1 year ago
I like making binary code and hexadal codes 3d game making and 2 d
liugimansion 1 year ago
Hey i'v been searching everywhere for a SIMPLE pong game to start off, and thank god you made one BUT your link doesn't work which is really disappointing, do you think you can get another link?
master10123 1 year ago
@master10123 Download link is fixed now, sorry about that.
xenflux 1 year ago
anying back grounds, on windows 95 that keep flicking!
happygamestvfun1 1 year ago
Hey, what book or tutorial do you recommend to learn SDL.
Thanks!
thebiman 1 year ago
@thebiman I learned SDL by reading Lazy Foo's tutorials at lazyfoo.net
xenflux 1 year ago 5
@xenflux thanks dude
thebiman 1 year ago
@thebiman
Yes, I also read these Tutorials at lazyfoo.net
They are quite awesome but I'm still not better than xenflux.
In fact I'm much worse.
But I'm working on it :D
RungAaz 1 year ago
PLEASE give me the source code! i love this. you link isnt working :(
mnmboy9147 1 year ago
Hello,
is there any way to get your sourcecode?
The Link doesent work.
Ridley1311 1 year ago
I've been learning SDL myself, on and off, in an effort to program something with basic 2D graphics. Of course, a PONG clone will be my first game, like most people have done. Then I'll try my hand at an asteroids style game.
Ultimately, I'd like to make a game that's somewhat similar to Star Control, but better. I'll see how that turns out.
Soulsphere001 1 year ago
Impressive I guess. Now implement some real physics.
divinityzoo 2 years ago
In the real PONG the ball doesn't always bounce at the same angle.. Here it always bounces at 90 degrees
bl0ckeduser 2 years ago 5
I came up with this...
Strength 1-100
Weapon 1-100
Defence 1-100
Armor 1-100
Evasion 1-100
HP = (Strength*Defence)+Evasion/10
DAMAGE = ((Weapon*(Strength/10))+Strength+Weapon)
*(10/enemyArmor)+(10/enemyDefence)
Evade Chance = (Evasion*Defence)/(enemyStrength*10)
kidersx 2 years ago
I'm going to say it because no one else has yet. Code your own damn Rogue-like game, Kidersx.
Soulsphere001 1 year ago
@Soulsphere001 I feel as though I had attempted that ages ago. Do you not read the comment dates?
kidersx 1 year ago
@kidersx
I felt a little annoyed that someone would try and fob off her/his own work off on someone else. As for comment dates, sometimes the date doesn't matter to me and sometimes it does. But sometimes I don't read the date.
Soulsphere001 1 year ago
kidersx 2 years ago
kidersx 2 years ago