@Elkvis, yeah, I've thought about that while I was at school..
Type: Posts; User: rocko384
@Elkvis, yeah, I've thought about that while I was at school..
I am using VS 2010..
Then how am I supposed to give it value? It wont let me in the header.
#include <SDL.h>
#include "Sprites.h"
#include "Images.h"
Sprite::Sprite(SDL_Surface *img, int dimenX, int dimenY)
{
Sprite::framesF[4][2] = { { dimenX, dimenY }, { dimenX, dimenY }, {...
Fixed it
I did that, and I have it exiting if it didn't load (doesn't do much, but atleast it tells me what's going on). I tried adding the file - snakey.bmp - as a Resource file, but that didn't work either....
Sorry, I replied right after I posted without checking for other posts, so...latepost
but yeah, ill try that
Well, I edited it a little, to this:
#include <SDL.h>
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
Basically, my code is just meant to load a BMP file, just to test SDL in Visual Studio. It works in Code::Blocks with MingW, and it worked in VS up until I added
Uint32 colorkey =...
Sorry guys. Thanks for putting up with me in my worst.
#include <gb/gb.h>
#include <gb/drawing.h>
UBYTE ship[10] =
{
{0, 0},
{2, 1},
UBYTE is one of the standard, low memory usage data types the DK offers. It's the most common one too. Anyway, yeah, I was just trying to make an array that I could store the X and Y of each point....
No...see, I was trying to make this plot each of those vector locations. I had the for loop run throuh each position, then plot a point based on the first and second values in the array. But I don't...
#include <gb/gb.h>
#include <gb/drawing.h>
UBYTE ship[10] =
{
{0, 0}
{2, 1}