If i set the color depth to 32 it runs EXTREMLY SLOWLY, what can i do?
Type: Posts; User: Paninaro
If i set the color depth to 32 it runs EXTREMLY SLOWLY, what can i do?
Also, how can I make that two sprites that have different palettes show good on screen?? If I load one sprite and show it on the screen and then load the other the first one switches to the palette...
How can I make that the background color of my sprites(white) doesnt show? Do I have to make them transparent?
isnt there a better way ?
When moving the sprites they leave a copy of them on the place of the screen where they were before they moved, so finally the screen is full of trash,how can I avoid that?
How can I make that a the background of a sprite drawn using draw_sprite() doesnt show on the screen?? I have certain pcx that I use as sprites but the background(white) shows as part of the sprite...
How can I make that an bitmap image blits on the screen and fills ALL the screen, not just the center?
I use blit() for that, but the BITMAP(welcome) only fills half the screen, so how do I have...
Can I use standard functions suchs as printf() and gets() whith allegro?? I'm asking this because when I use any of them the programs compiles fine but it shuts down immediately after I execute it.
...
At least it has been a success... 34 download so far!! :)
That's one of the reasons that encourage me to program: so people can use my programs and give me feedback. Besides, using the internet you...
What do you mean i'm compairing the addresses??
if(mess=="salir") is equal to if(&mess[0]=="salir")?.
Please explain!!
Thank you all for voting my game as lousy, you really give me hope.
#include <stdio.h>
#include <conio.h>
main(void)
{
char mess[80];
int i;
while(1){
printf("Mensaje:");
The problem is that the program seems to leap over the central part of the code when executed, so it goes directly from the while loop to the system pause as indicated, ignoring all the ifs...
...
I know BGI fairly good because I have used it to program my first game. You can see my game ballwar with source code which uses the BGI in this post
Still, I think allegro is better and I'm moving...
Compiler says:
-two or more data types in declaration of `presentar'
-conflicting types for 'presentar'
-previous declaration of 'presentar'
What's wrong in my program??
I have been programming in C for almost a month (although several years ago I programmed a bit too) and am quite proud of what I've done. I did in BASIC a game very similar to this one but more...
Why dont you make it better?? You have the source.
My first game is now finished, download it with the sorce code so you can play around with it :).
Actually I got tired of this game and want to move on to something else,that's why I finished it....
How can I make that the do-while keeps repeating while the user hasnt entered anything?? I mean, if when asked to enter your name you just press ENTER then the do-while repeats... I have this code...
This is a funtion that detects when two circles colide, for that I calculate the distance between the centers of both circles and then compare it with the sum of the radius of both circles. I have no...
what exactly does the sprintf() function?? I use it in my game and works fine, but i dont really know how it works.
How does the Dev-C++ debugger work??
Red_Baron you ask for too much!! Reading your post was overwhelming, why didnt you ask me to make Quake4?? I think that would be easier :D
Anyway, I still have to learn a lot and maybe try to...
The game I'm trying to finish is called ballwar and what I have programmed so far looks fine to me for being my first game in C (it has taken me 3 days).
It is the new version of the one I posted...
I want to put a text with variables using a graphic mode but I cant beacause i can only put strings without variables. EX: with outtext I can put "hello", but I cant put ("hello %s",paninaro).
Is...