Search found 25 matches

by sk1v3r
Sun Feb 27, 2011 7:15 am
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2177

Re: Need help with c++/sdl and drawing

SDL_DisplayFormatAlpha(surface) is an SDL function that sets your screens format to the same bits per pixel as your main screen, and also enables an alpha channel for transparency. The fact that when you comment it out there is still a black screen is very odd ... This time (still just guessing here...
by sk1v3r
Sat Feb 26, 2011 7:39 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2177

Re: Need help with c++/sdl and drawing

if you comment out when you first blit the menu screen does it stop the problem? (just troubleshooting here)
by sk1v3r
Sat Feb 26, 2011 7:36 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2177

Re: Need help with c++/sdl and drawing

I'm not quite sure :/
One nitpick though, how come you aren't using

Code: Select all

 SDL_DisplayFormatAlpha(surface);
?
It probably won't have anything to do with it , but you've been very error safe with the rest of your code
by sk1v3r
Sat Feb 26, 2011 7:07 pm
Forum: Programming Discussion
Topic: [Solved] Need help with c++/sdl and drawing
Replies: 25
Views: 2177

Re: Need help with c++/sdl and drawing

is background a surface that you are drawing to, or a surface that you have loaded a single image into?
by sk1v3r
Tue Jan 25, 2011 1:21 pm
Forum: Programming Discussion
Topic: SDL first project
Replies: 9
Views: 722

Re: SDL first project

the only surface I had was the screen, I was under the impression that SDL_Quit freed the screen only. If not then oops :/
by sk1v3r
Tue Jan 25, 2011 1:00 pm
Forum: Programming Discussion
Topic: SDL first project
Replies: 9
Views: 722

Re: SDL first project

Thanks for the replies :) I'll keep in mind to name everything appropriately :)
by sk1v3r
Mon Jan 24, 2011 2:51 pm
Forum: Programming Discussion
Topic: SDL first project
Replies: 9
Views: 722

SDL first project

Hey, I'm fairly new and I have just created my first SDL 'experiment' because I'm fairly new, and you guys are awesome, I wanted to see if you guys like it, and if the code is good or bad :) http://rapidshare.com/files/444341187/rain_arrow.zip I'm proud of it, but I have no idea if what I'm doing is...
by sk1v3r
Sun Jan 09, 2011 5:39 pm
Forum: Game Development
Topic: Platformer Collision Help
Replies: 20
Views: 4491

Re: Platformer Collision Help

I use c++ but the theory is the same for everything :)
by sk1v3r
Sun Jan 09, 2011 5:13 pm
Forum: Game Development
Topic: Platformer Collision Help
Replies: 20
Views: 4491

Re: Platformer Collision Help

I know this thread is kindof old and you have probably fixed it by now, but as in my eyes it came to no clear conclusion, I would like to say that once had this problem as my tiles were smaller than my player(the player itself wasn't tile-based so there weren't exact collision detection and he would...
by sk1v3r
Sun Jan 09, 2011 3:19 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 595948

Re: Official "Hello, World! (I'm new!)" thread

Hey, I'm sk1v3r(, or tom, whichever has less numbers :P)
I'm fifteen and have been coding for over a year, enjoying it greatly.
Currently making a side-scroller with c++ and SDL, coming along good
been watching AiGD for AGES...
so hi :)