Advertisement

Game with no external resources in SDL...

Started by January 11, 2005 06:48 PM
0 comments, last by Drew_Benton 19 years, 8 months ago
I'm gonna do this for fun, but I need help on a couple of questions. 1.) I want to create a surface, draw something on it, and be able to blit that surface whenever I want. I can draw pixels, but how would I go about creating a surface of a certain size, etc? 2.) Is there a way to make the POST speaker beep? The comp I'm doing this on has no sound. Thanks!
---"What? What is it? Is it the monkey in the pants? It's the monkey in the pants, isn't it. Don't give me that look."
1. You can use: SDL_CreateRGBSurface to make an empty surface with a size you want.

2. I do not know about the speaker beep - but try cout'ing or printf'ing lower ASCII values - one of them, from 0-13 generates a beep I believe.

This topic is closed to new replies.

Advertisement