Er....I'm trying to use App Game Kit with Visual Studio 2010, And when I try load an Image, it doesnt appear on the sprite it is assigned to. Instead, the sprite has a default error image. I've put the image I'm trying to use in the project folder, and in a folder titled media within the project folder...I feel very stupid
// Project : AGK1
// Name : Main.cpp
// Description : The application main routines
//
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// include our main header file
#include "Main.h"
// let the compiler know we're using the AGK namespace
using namespace AGK;
// declare our app
app App;
// globals
int width = 0;
int height = 0;
int orientation = 0;
char* platform = NULL;
void app::Begin ( void )
{
// TODO: Add your applications initialisation code here
// get device width and height
width = agk::GetDeviceWidth();
height = agk::GetDeviceHeight();
// find the current orientation
orientation = agk::GetOrientation();
// obtain the platform
platform = agk::GetDeviceName();
agk::LoadImage(1,"testimage.png");
agk::CreateSprite(1,1);//sprite id, image id
agk::SetSpriteX(1,400);
agk::SetSpriteY(1,400);
}
void app::Loop(void)
{
// print some information on screen
agk::Sync();
}
void app::End(void)
{
}
herp derp