04-28-2024, 12:05 PM (This post was last modified: 04-28-2024, 12:06 PM by Marcus.)
(04-28-2024, 12:25 AM)1micha.elok Wrote: Just put a dragon and it's already a Dungeon and a Dragon game
I saw that using s3d, it's possible to have different floor and ceiling texture depending on the room's theme. For example : King's bedroom has red floor and red ceiling, Ballroom has golden floor and golden ceiling, Kitchen has green floor and green ceiling etc
..... Back to wolf3d, is it possible to have that kind of different floor and ceiling texture depending on each theme ? How to do it if it's possible ? (sorry it's an out-of-topic question) ...
In the engine and editor that i'm writing you can set a wall, floor and ceiling texture per sector (room). But you can also set individual textures per wall in the sector if you want.
I see that you currently use SetFloorTexture and SetCeilingTexture. They change the texture for all floor/ceiling tiles. You can use SetFloorTextureAt(tile_x, tile_z, img) and SetCeilingTextureAt(tile_x, tile_z, img) to change the floor/ceiling for individual tiles.
You can also use SetNorthWall(tile_x, tile_z, img), SetSouthWall(tile_x, tile_z, img), SetWestWall(tile_x, tile_z, img) and SetEastWall(tile_x, tile_z, img) to set textures for the individual wall sides of a tile.
04-29-2024, 12:34 AM (This post was last modified: 04-29-2024, 12:39 AM by 1micha.elok.)
(04-28-2024, 12:05 PM)Marcus Wrote: ...
I see that you currently use SetFloorTexture and SetCeilingTexture. They change the texture for all floor/ceiling tiles. You can use SetFloorTextureAt(tile_x, tile_z, img) and SetCeilingTextureAt(tile_x, tile_z, img) to change the floor/ceiling for individual tiles.
You can also use SetNorthWall(tile_x, tile_z, img), SetSouthWall(tile_x, tile_z, img), SetWestWall(tile_x, tile_z, img) and SetEastWall(tile_x, tile_z, img) to set textures for the individual wall sides of a tile.
...
Different Room Theme
click image to zoom in
Now, it is possible to have different room theme in wolf3d too ! Thanx, Marcus !
'maze from json file
map = JSON_FromFile("data/maze.txt")
'set tileset
w3d.SetFloorTexture(tile.floor1)
w3d.SetCeilingTexture(tile.ceiling1)
for z = 0 to 7-1
for x = 0 to 7-1
select map[z][x]
case 1
w3d.SetWall(x, z, tile.wall)
case 2
w3d.SetWall(x, z, tile.wall3)
case 3
w3d.SetFloorTextureAt(x,z,tile.floor3)
w3d.SetCeilingTextureAt(x,z,tile.ceiling3)
case 9
player.x = x + 0.5
player.z = z + 0.5
endsel
next
next
05-19-2024, 04:18 PM (This post was last modified: 05-19-2024, 04:20 PM by Marcus.)
I thought I'd be able to post a first version of the editor and library this weekend, but ... As I actually started to make an example game, I realized how many helper functions were missing in the library. So, maybe next week, sorry.
To understand what I need to add to the library, I'm writing a pretty simple Doom-clone. Most of the graphics (everything except the effects/animations) and the music are AI generated (I'm actually paying for the music generator, REALLY awesome stuff, and you get the copyright of it!).
Here's a video of what I've accomplished this weekend, some hours of coding.
The game is looking very cool, I think that for this type of games an ambient sound like Tomb Raider would be better suited, the music can make you nervous and it may become very repetitive after a while.
(05-19-2024, 09:03 PM)aliensoldier Wrote: The game is looking very cool, I think that for this type of games an ambient sound like Tomb Raider would be better suited, the music can make you nervous and it may become very repetitive after a while.
I totally agree The music I play in this video will probably just play when you're locked inside a "battle area" and have to fight tons of enemies or maybe even a boss.
05-23-2024, 06:42 PM (This post was last modified: 05-23-2024, 07:02 PM by Marcus.)
Time flies by and I never seem to reach a point where I feel "ready" with this thing. So I decided to post a first version of the editor and library with an example that is "fully" covered in a pdf-tutorial now. I will add another step to the tutorial tomorrow and so on. I can't guarantee that the editor and library won't change a bit over time.
If you manage to make the editor crash, copy the error message and post it here.
Edit Avoid looking at the source code for the editor and library. Everything is extremely dirty and in great need of a cleanup.