void Start() { _rooms = new List <RoomData>(); using (SnapshotImporter importer = new SnapshotImporter(snapshotFile)) { int offset = 45056; for (int i = 0; i < 20; i++) { // Move to the offset importer.Seek(offset); // Import Room ImportRoom(importer, IsSpecialRoom(i)); // Move to the next room offset += 1024; } importer.Seek(33280); for (int i = 0; i < 8; i++) { byte[] sprite = importer.ReadBytes(32); _sprites.Add(sprite); } } IsReady = true; }
// Start is called before the first frame update void Start() { _rooms = new List <RoomData>(); using (SnapshotImporter importer = new SnapshotImporter(snapshotFile)) { int offset = 45056; for (int i = 0; i < 20; i++) { importer.Seek(offset); ImportRoom(importer, IsSpecialRoom(i)); offset += 1024; } importer.Seek(33280); // 33280-33535 - sprites for Miner Willy for (int i = 0; i < 8; i++) { byte[] sprite = importer.ReadBytes(32); _sprites.Add(sprite); } } IsReady = true; }