Add shareware support and spawn correctly for difficulty levels
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:wolf_dart/classes/matrix.dart';
|
||||
import 'package:wolf_dart/classes/sprite.dart';
|
||||
|
||||
class VswapParser {
|
||||
/// Extracts the 64x64 wall textures from VSWAP.WL1
|
||||
@@ -17,7 +18,7 @@ class VswapParser {
|
||||
}
|
||||
|
||||
// 3. Extract the Wall Textures
|
||||
List<List<List<int>>> textures = [];
|
||||
List<Sprite> textures = [];
|
||||
|
||||
// Walls are chunks 0 through (spriteStart - 1)
|
||||
for (int i = 0; i < spriteStart; i++) {
|
||||
@@ -26,7 +27,7 @@ class VswapParser {
|
||||
|
||||
// Walls are always exactly 64x64 pixels (4096 bytes)
|
||||
// Note: Wolf3D stores pixels in COLUMN-MAJOR order (Top to bottom, then left to right)
|
||||
List<List<int>> texture = List.generate(64, (_) => List.filled(64, 0));
|
||||
Sprite texture = List.generate(64, (_) => List.filled(64, 0));
|
||||
|
||||
for (int x = 0; x < 64; x++) {
|
||||
for (int y = 0; y < 64; y++) {
|
||||
|
||||
Reference in New Issue
Block a user