Open onelapahead opened 8 years ago
Room implemented for now. Player started but needs Camera class.
Room has remove queue. There is also a multilayered drawing queue. Game class is sketched out. Just need Camera class then can start LevelLoader and Selector.
BUG: UI_element doesn't draw renderers side by side because of drawing queue.
Camera, ResourceManager, and Room implemented. Need to write Game class and audio manager.
A game will consist of four parts:
init.json will tell dalí where the JSON file for the game resources is, where the script(s) for custom objects is/are, and a list of incomplete urls for levels.
Example level url: "./levels/level1"
Use $.getScript or $.getMultipleScripts to import custom script(s), then load global game resources, then run start menu which will somehow select a level, load that level's resources, use eval() or $.getScript to init room using level's js file, play level
Unless a client changes the initURL variable in their HTML file, dalí will look for the init file in "./init.json" or something like that
Room and/or Game needs some sort of Game Object hash map and manager that can add and remove GO's and stuff.