reordered spritesheet loading to be more userfriendly

pull/1/head
Sara 2023-04-11 08:11:21 +02:00
parent c22c090c42
commit 8d644c6d4c
1 changed files with 12 additions and 13 deletions

View File

@ -92,32 +92,31 @@ void load_game() {
sprite_from_spritesheet(&world_sheet, 0), sprite_from_spritesheet(&world_sheet, 0),
sprite_from_spritesheet(&world_sheet, 1), sprite_from_spritesheet(&world_sheet, 1),
sprite_from_spritesheet(&world_sheet, 2), sprite_from_spritesheet(&world_sheet, 2),
sprite_from_spritesheet(&world_sheet, 3),
sprite_from_spritesheet(&world_sheet, 4),
sprite_from_spritesheet(&world_sheet, 5),
sprite_from_spritesheet(&world_sheet, 10), sprite_from_spritesheet(&world_sheet, 10),
sprite_from_spritesheet(&world_sheet, 11), sprite_from_spritesheet(&world_sheet, 11),
sprite_from_spritesheet(&world_sheet, 12), sprite_from_spritesheet(&world_sheet, 12),
sprite_from_spritesheet(&world_sheet, 13),
sprite_from_spritesheet(&world_sheet, 14),
sprite_from_spritesheet(&world_sheet, 15),
sprite_from_spritesheet(&world_sheet, 20), sprite_from_spritesheet(&world_sheet, 20),
sprite_from_spritesheet(&world_sheet, 21), sprite_from_spritesheet(&world_sheet, 21),
sprite_from_spritesheet(&world_sheet, 22), sprite_from_spritesheet(&world_sheet, 22),
sprite_from_spritesheet(&world_sheet, 23),
sprite_from_spritesheet(&world_sheet, 24),
sprite_from_spritesheet(&world_sheet, 25),
sprite_from_spritesheet(&world_sheet, 30), sprite_from_spritesheet(&world_sheet, 30),
sprite_from_spritesheet(&world_sheet, 31), sprite_from_spritesheet(&world_sheet, 31),
sprite_from_spritesheet(&world_sheet, 32), sprite_from_spritesheet(&world_sheet, 32),
};
for(int i=0;i<g_tilemap.width*g_tilemap.height;++i) { sprite_from_spritesheet(&world_sheet, 3),
g_tilemap.tiles[i].value = i%3; sprite_from_spritesheet(&world_sheet, 4),
} sprite_from_spritesheet(&world_sheet, 5),
sprite_from_spritesheet(&world_sheet, 13),
sprite_from_spritesheet(&world_sheet, 14),
sprite_from_spritesheet(&world_sheet, 15),
sprite_from_spritesheet(&world_sheet, 23),
sprite_from_spritesheet(&world_sheet, 24),
sprite_from_spritesheet(&world_sheet, 25),
};
on_cycle_tile(0); on_cycle_tile(0);