I HAVE FIGGURED IT OUT!!! I HAVE MADE THE RENDERING FAST!!! Turns out I was checking every step that the ray moves (which is about 250) for 20 rays (5000 checks) for each wall (if its 10 walls, that is 50000 checks) which is very hardware expensive. I solved it by just doing one check per ray by firing the ray and checking it once (for those same stats above with this new method, it is 200 checks WHICH IS HUGE!!!). And that means that the is near no limit on how long the rays are. And now the games the engine makes are a smooth 60fps (uncapped is roughly 175-200fps) and before with the same map and settings it was 7-30fps. The engine will default the ray count to 30 with a ray dist of 500. I have also started working on the .cy script (top right pic) to make life easier doing coding for the engine to make your game. Right now it only looks for player.cy but I will have it load all in the scripts folder. The IDE that I am working on for this now can load and save files, it loads what words to be in color by loading a .json file, and you can scroll. My next steps are to work on the scripts and figure out objects/sprites (2d objects in a 3d world, look up Wolfenstein 3D to see what I mean). I also need to update my website to include documentation on how to use this engine (https://cybrock9000.github.io/CyberWolfGames/index.html). I would like to also polish up the engine too by making it more satisfying in some areas and also add button mappings to the map grid. With all that said, I am really happy on where this is going and I am still happy to say that this is still under 1.44mb :). -Cy
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.