FreddyMSchubert / 42_cub3d

🎮 3D game with a nostalgic vein for 🔫 Wolfenstein 3d. Can you master the elements 💧🔥🪨💨 and find your way out of the maze? ⭐️ [42 PROJECT]
6 stars 0 forks source link

doors #40

Closed FreddyMSchubert closed 3 months ago

FreddyMSchubert commented 3 months ago

doors.

First of all, making horizontal and vertical doors that automatically slide open when close by. They should sit in the middle between two walls.

Later, the possibilities are huge. Keys?

FreddyMSchubert commented 3 months ago

To achieve this, there is now a functional entity system which allows for differentiation between billboard entities (turn towards players) and ones that don't. There is also a ticking setup, allowing to pass a function that gets called every frame.

Doors should now be easily doable using this setup.

FreddyMSchubert commented 3 months ago

Door branch is done. Entity system is functional, doors work well with collisions, key entities are there to unlock them.