Well, I'm well into a snake game, but I'm having issues with storing the snake "pieces". At first I was planning on using vectors, but people suggested to me using a ring queue. I'm wondering what...
Type: Posts; User: Grantyt3
Well, I'm well into a snake game, but I'm having issues with storing the snake "pieces". At first I was planning on using vectors, but people suggested to me using a ring queue. I'm wondering what...
Yep, I got it working, thanks!
I'm relatively new to classes, and I'm trying to figure out something:
I have two classes, and they both need to access a boolean array, but if I declare that array in one of the classes, even if...
The problem with Resource Hacker is that when I open the .exe file, nothing shows up for me to change like it does with any other .exe file that already has an icon. I guess I need a program that can...
IconWorkshop isn't free though
Does anyone know of a free .exe icon changer? Because the .exe files that are created with Visual Studio don't have an icon and I want to put my own icon.
for(int i = 0; i < 5; i++)
{
expblity = expblity + 64;
for(int x = 0; x < 5; x++)
{
expblitx = expblitx + 64;
blit(explode,exps[x][i],0,0,0,0,expblitx,expblity);
}
}
How do you write programs for PocketPC's, PalmOS and phones? What do you do differently from writing computer programs?
Nevermind, It works now. Thanks! I still don't see why itoa did what it did though, but I guess it doesn't matter.
All it did is flicker "Score: -1". OH wait, it was flickering because I didn't draw it to the buffer first.
What do you mean non-standard? There both Allegro functions.
But this doesn't seem to be a problem with the output of text, just the conversion.
For my breakout clone, I need to convert the integers for the score and the level number into arrays of characters so I can display them on the screen with Allegro's textout function. I searched on...
Nevermind, I fixed it.
ballx and bally are always positive. I'm confused: You make an array like blocks[x][y] right? But don't you access the information like blocks[y][x]? This always happens. Actually, I counted wrong,...
There, it's fixed.
No, that is the exact code. I copy and pasted, but it took the [i] part out because it thought I was trying to italisize.
OH wait, it's not like that in the actual CPP file. I think it got taken out because it thought I was trying to italisize something. But it's not actually like that so that's not it.
Oops, why didn't I catch that? That's definately messed up. I'll fix that and see if it makes a difference.
This seems really strange to me. I've tried over and over to fix it myself, but I just can't see what the problem is. I'm making a breakout clone, you know where you control the paddle and you hit...
I looking for, I guess it would be called, a GUI Library that would have functions that would allow you to create a GUI for your program. Like how I'm using Allegro for graphics functions, I would...
I'm wondering if any of you know of a good free C++ GUI?
Does anyone who wants to play a game I made with Allegro, have to have Allegro installed?
Oh oops. Was it supposed to be if(collision == true)?
It still thinks that it's always colliding...
The final hurdle in my little snake game: collision detection. I read a tutorial on Allegro collision detection, and used their method. I have the snake, and I have the little fruit that you have to...