alright, if i don't change the app name the image displays correctly but if i change the name of the app a red X appears instead of the image. what's wrong?
this is my script:
// Includes
#include "template.h"
#include <iostream>
// Namespace
using namespace AGK;
app App;
void app::Begin(void)
{
agk::SetAppName("Test 1");
agk::SetVirtualResolution (1024, 768);
agk::SetClearColor( 30,30,30 ); //a nice grey
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
}
void app::Loop (void)
{
//parameters to semplify things later
float CenterScreenX = 1024 / 2;
float CenterScreenY = 768 / 2;
//info on screen
agk::Print(agk::GetAppName());
agk::Print( agk::ScreenFPS());
//img1 setup
agk::LoadImage(1,"img1.png");
float imgX = agk::GetImageWidth(1);
float imgY = agk::GetImageHeight(1);
agk::CreateSprite(1, 1);
agk::SetSpriteX(1, CenterScreenX - (imgX / 2));
agk::SetSpriteY(1, CenterScreenY - (imgY / 2));
agk::Sync();
}
void app::End (void)
{
}