So 11 years ago I made a raycast engine in Phaser 2. I decided to upgrade it to Phaser 3. I didn’t realize so much had change. It basically became a full rewrite. I also added in some features. I also made it open source under the MIT license.
I used AI to comment the code. I reviewed it and it seems good. You should be able to follow the comments to change things or make your own game. If you don’t add any engine dependent features, you shouldn’t have to touch the raycast engine. I have a list of planned features that I will be adding in. I don’t have much time for tech support but I will do my best to help with my code. I won’t be able to tell you how to do new things or build your game. If you follow the demo game code it should get you started. You will need to download the assets to use the demo. Just unzip at the root level. (all assets were free and open source, most textures are from FreeDoom).
I created an add-on system. You don’t have to use the add-ons. They are optional and save resources if not used. With that said, I highly recommend using the texture manager and level loader and use JSON levels. I built out the JSON and will be adding more to make everything in the level in one JSON file. Then the game can have all the information but only load what is needed for that level.
If you think of other add-ons that are not game specific let me know and I will see about adding them in.
https://github.com/kobaltic/PhaserCastUpdate
-
V1 Add-ons (complete)
Level loader
Texture managerDoor manager
Sound manager
Weapon manager
Fog manager
Minimap manager
Level UI manager
Fast counter
Head Bob
Sprite Animator
Screen fade
Inventory system
Notification UI manager -
V2 Add-ons (coming soon)
Save SystemDoor lock system
Expanded inventory system
Ambient sounds
Bump mapping
Parallax mapping
Emissive mapping
Dynamic lighting
Shadows
Decal system
HUD
V1 bugs
-
V3 Add-ons(After V2 is done)
Projectiles
Simple enemy
Path finding
Maze generator
Melee attack
V2 bugs
-
V4 Add-ons (After V3 is done)
Multiple steps
Pits
Windows
Outdoor environments
Trigger system ( floor plate)
V3 bugs
-
V5 Add-ons (After V4 is done)
Level editorV4 bugs
