diff --git a/assets/texture_wall_brick.png b/v2/assets/texture_wall.png similarity index 100% rename from assets/texture_wall_brick.png rename to v2/assets/texture_wall.png diff --git a/v2/raycaster.py b/v2/raycaster.py index c3bb2df..02d5b81 100755 --- a/v2/raycaster.py +++ b/v2/raycaster.py @@ -21,12 +21,9 @@ MAP_WIN_HEIGHT = MAP_SIZE * MAP_SCALE # Textures cfg TEXTURES = [ - "../assets/texture_wall3.png", - "../assets/texture_wall3.png", - "../assets/texture_wall3.png", -# "../assets/texture.png", -# "../assets/texture.png", -# "../assets/texture.png", + "assets/texture_wall.png", + "assets/texture_wall.png", + "assets/texture_wall.png" ] TEXTURE_SIZE = 64 diff --git a/v3/assets/texture_wall_brick.png b/v3/assets/texture_wall_brick.png new file mode 100644 index 0000000..2985608 Binary files /dev/null and b/v3/assets/texture_wall_brick.png differ diff --git a/assets/texture_wall_brick_door_center.png b/v3/assets/texture_wall_brick_door_center.png similarity index 100% rename from assets/texture_wall_brick_door_center.png rename to v3/assets/texture_wall_brick_door_center.png diff --git a/assets/texture_wall_brick_door_left.png b/v3/assets/texture_wall_brick_door_left.png similarity index 100% rename from assets/texture_wall_brick_door_left.png rename to v3/assets/texture_wall_brick_door_left.png diff --git a/assets/texture_wall_brick_door_right.png b/v3/assets/texture_wall_brick_door_right.png similarity index 100% rename from assets/texture_wall_brick_door_right.png rename to v3/assets/texture_wall_brick_door_right.png diff --git a/v3/raycaster.py b/v3/raycaster.py index 5b4892c..d5b4927 100755 --- a/v3/raycaster.py +++ b/v3/raycaster.py @@ -23,16 +23,16 @@ MAP_DOOR_CELL_TYPE = 3 # Textures cfg # Index is shifted by 1 relative to map, because 0 is no wall TEXTURES = [ - "../assets/texture_wall_brick.png", # = map index 1 - "../assets/texture_wall_brick_door_left.png", # = map index 2 - "../assets/texture_wall_brick_door_center.png", # = map index 3 - "../assets/texture_wall_brick_door_right.png", # = map index 4 + "assets/texture_wall_brick.png", # = map index 1 + "assets/texture_wall_brick_door_left.png", # = map index 2 + "assets/texture_wall_brick_door_center.png", # = map index 3 + "assets/texture_wall_brick_door_right.png", # = map index 4 ] TEXTURE_SIZE = 64 # Raycast cfg -RAYCAST_WIN_WIDTH = 600 -RAYCAST_WIN_HEIGHT = 600 +RAYCAST_WIN_WIDTH = 1024 +RAYCAST_WIN_HEIGHT = 1024 RAYCAST_RENDER_WIDTH = int(RAYCAST_WIN_WIDTH / 4) RAYCAST_RENDER_HEIGHT = int(RAYCAST_WIN_HEIGHT / 4) DOF = 2*MAP_SIZE # Depth Of Field