Search found 20 matches
- Mon Apr 09, 2012 12:35 pm
- Forum: Game Development
- Topic: increase performance with SDL
- Replies: 9
- Views: 3015
Re: increase performance with SDL
Some versions of .bmp have an optional alpha channel, not sure if you can use it with SDL.
- Sun Apr 08, 2012 9:03 pm
- Forum: Game Development
- Topic: increase performance with SDL
- Replies: 9
- Views: 3015
Re: increase performance with SDL
I am not sure how well SDL works with .jpeg but when it comes to the file format .jpeg will be the least intense on the CPU. What kind of sprites are these 16-bit? If so I think if you upload it as a jpg it should look fine. I for one have never had a problem loading all of the sprite sheets at the ...
- Sun Apr 08, 2012 8:07 pm
- Forum: Programming Discussion
- Topic: SDL and OpenGL game, what still to use in SDL.
- Replies: 8
- Views: 2376
SDL and OpenGL game, what still to use in SDL.
Still programming my "games" in SDL, I want to move onto integrating OpenGL since its apparently so awesome. From my understanding the only thing OpenGL can do is render and can't handle input, correct me if I am wrong. So I am assuming that when you integrate OpenGL with SDL all that you ...
- Sat Jul 30, 2011 8:07 pm
- Forum: Programming Discussion
- Topic: Help with 2d top down shooter question
- Replies: 15
- Views: 3518
Re: Help with 2d top down shooter question
Dude there is this great thing called pastebin.
- Fri Jul 29, 2011 10:08 am
- Forum: Programming Discussion
- Topic: SDL keystates problem.
- Replies: 14
- Views: 2889
Re: SDL keystates problem.
It returns 0, and I don't know what you mean about adding.
EDIT: I have a temporary fix by using a debounce that is reset by pressing the "G" key, so everytime you want to make a move you have to press "G" but oh well .
EDIT: I have a temporary fix by using a debounce that is reset by pressing the "G" key, so everytime you want to make a move you have to press "G" but oh well .
- Tue Jul 19, 2011 8:21 pm
- Forum: Programming Discussion
- Topic: SDL keystates problem.
- Replies: 14
- Views: 2889
Re: SDL keystates problem.
Odd....it works the first compile, then if I run it again it doesn't do anything but if I delete the line, recompile it, put the line back, then compile again it will work once more. Any ideas?
- Fri Jul 01, 2011 10:10 am
- Forum: Programming Discussion
- Topic: noob question
- Replies: 7
- Views: 990
Re: noob question
Scripting
- Mon Jun 27, 2011 10:20 pm
- Forum: Programming Discussion
- Topic: SDL keystates problem.
- Replies: 14
- Views: 2889
Re: SDL keystates problem.
Read it directly out of my c++ reference book.
- Mon Jun 27, 2011 8:08 pm
- Forum: Programming Discussion
- Topic: SDL keystates problem.
- Replies: 14
- Views: 2889
Re: SDL keystates problem.
Its black jack not a MMORPGFPSRTS, I don't need to make it inline, and yea I probably don't need to use getters and setters but, I am just lazy 8-) Is there a keystate for a release return key? EDIT: btw, for class methods you don't put inline if you already have it on a single line it automatically...
- Mon Jun 27, 2011 3:51 pm
- Forum: Programming Discussion
- Topic: SDL keystates problem.
- Replies: 14
- Views: 2889
SDL keystates problem.
Yo, back again to spam your forum up with help problems don't mind me. Anyways, When I am checking for the enter keystate it triggers the whole switch statement and places all the cards, its supposed place one card a time, when you hit enter. Basically I just want it to run through the switch once a...
- Sun Jun 26, 2011 3:04 pm
- Forum: Art, Music, and Design
- Topic: Good Sprite Application
- Replies: 13
- Views: 4528
Re: Good Sprite Application
Same problem here, just turn the little toolbar option when you re-size to pixelated , but you probably should use graphics gale its more built for spriting.
- Sat Jun 25, 2011 9:22 pm
- Forum: Programming Discussion
- Topic: Pass a class object as a parameter? (C++/SDL)
- Replies: 6
- Views: 1201
Re: Pass a class object as a parameter? (C++/SDL)
Ok thnx it worked, so a class is treated like the type of variable when referencing things? (int,char,bool)
- Sat Jun 25, 2011 3:31 pm
- Forum: Programming Discussion
- Topic: Pass a class object as a parameter? (C++/SDL)
- Replies: 6
- Views: 1201
Re: Pass a class object as a parameter? (C++/SDL)
so, this would be correct? I am confused were the name of the object is supposed to go, and is using a member function just reading? void option(const Card &Card1) { if (keystates[SDLK_LEFT]) { apply_surface(0,0,Table,screen); Card1.applyCard(100,280); Card2.applyCard(140,280); Card3.applyCard(4...
- Sat Jun 25, 2011 2:49 pm
- Forum: Programming Discussion
- Topic: Pass a class object as a parameter? (C++/SDL)
- Replies: 6
- Views: 1201
Pass a class object as a parameter? (C++/SDL)
Someone tried to explain this to me earlier and it didn't work out to well so if someone can show me how using my code I would like too, Have a class object created in main, and have a function before main use its member functions. Cake for the person that can! void option(const Card &card) { if...
- Tue Apr 05, 2011 8:15 am
- Forum: Programming Discussion
- Topic: [SOLVED] Broken game loop.
- Replies: 2
- Views: 813
Re: Broken game loop.
Thanks, I was assuming to put it in the handle events so I did and it worked