Tag Info

New answers tagged

0

Sorry to contribute a bit late right now, but I'm looking for something similar, and since the topic is less than a year old I figured I should not create a new one, correct me if I'm wrong. Anyway, They're clearly wrong, for a simple reason, Serious Sam 3 does it, on Windows, Linux and Mac, but I still didn't find out how... But it's possible then! If ...


0

The event VIDEORESIZE is triggered from windowing system, not from pygame. In response to event, program should update display with calling pygame.display.set_mode(newsize, sameoptions)


0

There is one more possibility, if performance doesn't matter much, and you are willing to use the newer version SDL2_TTF(available from the official hg.libsdl.org mercurial repository). SDL2_TTF has new functions including TTF_RenderText_Blended_Wrapped, where you can specify a wraplength parameter, which specifies in pixels the maximal width( the surface ...


2

SDL_FillRect(screen , &bullet[i].b , 0xFFFF66); This will fill your screen surface in the SDL_Rect &bullet[i].b Then later in the same frame, you use drawImage To draw the map over the entire size of screen, covering up the projectiles you filled it up with. I suggest you add a separate SDL_Surface* for your projectile and draw them in your ...


1

The solution is SDL_SetRelativeMouseMode. How can I have missed that.



Top 50 recent answers are included