Search found 20 matches

by jakobnator
Mon Apr 09, 2012 12:35 pm
Forum: Game Development
Topic: increase performance with SDL
Replies: 9
Views: 2651

Re: increase performance with SDL

Some versions of .bmp have an optional alpha channel, not sure if you can use it with SDL.
by jakobnator
Sun Apr 08, 2012 9:03 pm
Forum: Game Development
Topic: increase performance with SDL
Replies: 9
Views: 2651

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 ...
by jakobnator
Sun Apr 08, 2012 8:07 pm
Forum: Programming Discussion
Topic: SDL and OpenGL game, what still to use in SDL.
Replies: 8
Views: 2030

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 ...
by jakobnator
Sat Jul 30, 2011 8:07 pm
Forum: Programming Discussion
Topic: Help with 2d top down shooter question
Replies: 15
Views: 2786

Re: Help with 2d top down shooter question

Dude there is this great thing called pastebin.
by jakobnator
Fri Jul 29, 2011 10:08 am
Forum: Programming Discussion
Topic: SDL keystates problem.
Replies: 14
Views: 2292

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 :lol: .
by jakobnator
Tue Jul 19, 2011 8:21 pm
Forum: Programming Discussion
Topic: SDL keystates problem.
Replies: 14
Views: 2292

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?
by jakobnator
Fri Jul 01, 2011 10:10 am
Forum: Programming Discussion
Topic: noob question
Replies: 7
Views: 756

Re: noob question

Scripting
by jakobnator
Mon Jun 27, 2011 10:20 pm
Forum: Programming Discussion
Topic: SDL keystates problem.
Replies: 14
Views: 2292

Re: SDL keystates problem.

Read it directly out of my c++ reference book.
by jakobnator
Mon Jun 27, 2011 8:08 pm
Forum: Programming Discussion
Topic: SDL keystates problem.
Replies: 14
Views: 2292

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...
by jakobnator
Mon Jun 27, 2011 3:51 pm
Forum: Programming Discussion
Topic: SDL keystates problem.
Replies: 14
Views: 2292

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...
by jakobnator
Sun Jun 26, 2011 3:04 pm
Forum: Art, Music, and Design
Topic: Good Sprite Application
Replies: 13
Views: 3721

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.
by jakobnator
Sat Jun 25, 2011 9:22 pm
Forum: Programming Discussion
Topic: Pass a class object as a parameter? (C++/SDL)
Replies: 6
Views: 933

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)
by jakobnator
Sat Jun 25, 2011 3:31 pm
Forum: Programming Discussion
Topic: Pass a class object as a parameter? (C++/SDL)
Replies: 6
Views: 933

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...
by jakobnator
Sat Jun 25, 2011 2:49 pm
Forum: Programming Discussion
Topic: Pass a class object as a parameter? (C++/SDL)
Replies: 6
Views: 933

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...
by jakobnator
Tue Apr 05, 2011 8:15 am
Forum: Programming Discussion
Topic: [SOLVED] Broken game loop.
Replies: 2
Views: 659

Re: Broken game loop.

Thanks, I was assuming to put it in the handle events so I did and it worked :)