tigersteez / dali

Javascript framework for making 2D games using HTML5
MIT License
1 stars 0 forks source link

Player, Camera, Room/Level, and Game classes for framework #9

Open onelapahead opened 8 years ago

onelapahead commented 8 years ago

Room and/or Game needs some sort of Game Object hash map and manager that can add and remove GO's and stuff.

onelapahead commented 8 years ago

Room implemented for now. Player started but needs Camera class.

onelapahead commented 8 years ago

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.

onelapahead commented 8 years ago

BUG: UI_element doesn't draw renderers side by side because of drawing queue.

onelapahead commented 8 years ago

Camera, ResourceManager, and Room implemented. Need to write Game class and audio manager.

onelapahead commented 8 years ago

Include other scripts using jQuery:

onelapahead commented 8 years ago

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

onelapahead commented 8 years ago

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