I've made a very simple code that only draws a tile map in an isometric view to the screen.
The tiles all have tiny white outlines around each one making the map display like a grid instead of being smooth.
It is not an issue with the tile image.
Code is below. Any help appreciated.
Bought AppGameKit about 2 years ago but just now starting to mess with it lol. Image attached also.
// Includes
#include "template.h"
// Namespace
using namespace AGK;
app App;
void app::Begin(void)
{
int SCREEN_WIDTH = 1200;
int SCREEN_HEIGHT = 800;
const int TILE_WIDTH = 128;
const int TILE_HEIGHT = 64;
agk::SetVirtualResolution (SCREEN_WIDTH, SCREEN_HEIGHT);
agk::SetClearColor( 151,170,208 ); // light blue
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
agk::LoadImage(1,"grass1.png");
agk::CreateSprite(1,1);
//agk::SetSpriteVisible(1,0);
const int MAP_WIDTH = 10;
const int MAP_HEIGHT = 10;
int tileType;
int nextSprite = 2;
float tileX;
float tileY;
int worldMap[MAP_WIDTH][MAP_HEIGHT] = {
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1},
};
for (int i = 0; i < MAP_WIDTH ; i++)
{
for (int j = 0; j < MAP_HEIGHT ; j++)
{
tileX = ((i -j) * TILE_HEIGHT)+(SCREEN_WIDTH*0.5);
tileY = (i + j) * (TILE_HEIGHT*0.5);
tileType = worldMap[i][j];
agk::CloneSprite(nextSprite,tileType);
agk::SetSpritePosition(nextSprite,tileX,tileY);
nextSprite++;
}
}
}
void app::Loop (void)
{
//agk::Print( agk::ScreenFPS() );
agk::Sync();
}
void app::End (void)
{
}