The raycaster can now pair a floor with a ceiling tile and to demonstrate this I have a blue light that shines on to a stone floor. I also played with just pixelating a regular image rather than painting it and honestly it looks better in a lot of ways.

This commit is contained in:
Zed A. Shaw 2025-05-26 13:59:26 -04:00
parent e015652f4c
commit 931d9493d2
11 changed files with 50 additions and 39 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -20,7 +20,7 @@
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 1, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "ai_script": "Enemy::actions", "ai_start_name": "Enemy::initial_state", "ai_goal_name": "Enemy::final_state"},
{"_type": "Personality", "hearing_distance": 5, "tough": true},
{"_type": "Personality", "hearing_distance": 5, "tough": false},
{"_type": "Animation", "easing": 1, "ease_rate": 0.2, "scale": 0.1, "simple": true, "frames": 10, "speed": 0.3, "stationary": false},
{"_type": "Sprite", "name": "gold_savior", "width": 256, "height": 256, "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "Sword_Hit_2", "death": "Humanoid_Death_1"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -3,6 +3,7 @@
"texture": "assets/floor_tile_test-256.png",
"collision": false,
"display": 10398,
"ceiling": "ceiling_plain",
"id": 0
},
"wall_plain": {
@ -23,7 +24,7 @@
"display": 35,
"id": 3
},
"plain_ceiling": {
"ceiling_plain": {
"texture": "assets/ceiling_test-256.png",
"collision": false,
"display": 35,
@ -33,6 +34,20 @@
"texture": "assets/lava_floor-256.png",
"collision": false,
"display": 35,
"ceiling": "ceiling_plain",
"id": 5
},
"large_stone_floor": {
"texture": "assets/large_stone_floor-256.png",
"collision": false,
"display": 35,
"ceiling": "ceiling_moss_brick_blue_light",
"id": 6
},
"ceiling_moss_brick_blue_light": {
"texture": "assets/ceiling_moss_brick_blue_light-256.png",
"collision": false,
"display": 35,
"id": 7
}
}