Made managed stuff nicer and changed asset names to avoid name collisions.

This commit is contained in:
Kapendev 2025-02-04 16:39:23 +02:00
parent 23615c4c8e
commit a7c844f210
9 changed files with 47 additions and 24 deletions

View file

@ -10,7 +10,7 @@ auto tileFlip = Flip.none;
void ready() {
lockResolution(320, 180);
atlas = loadTexture("atlas.png");
atlas = loadTexture("parin_atlas.png");
// Parse a CSV string representing a tile map, where each tile is 16x16 pixels in size.
map.parse("-1,-1,-1\n21,22,23\n37,38,39\n53,54,55", 16, 16);
}

View file

@ -7,7 +7,7 @@ auto patchAtlasArea = Rect(5 * 16, 1 * 16, Vec2(16 * 3));
void ready() {
lockResolution(320, 180);
atlas = loadTexture("atlas.png");
atlas = loadTexture("parin_atlas.png");
}
bool update(float dt) {

View file

@ -11,7 +11,7 @@ auto walkAnimation = SpriteAnimation(0, 2, 6);
void ready() {
lockResolution(320, 180);
atlas = loadTexture("atlas.png");
atlas = loadTexture("parin_atlas.png");
}
bool update(float dt) {