Get more details at codescene.io.
Bullet should collide with a GameObject instance and not with an htmlElement, the problem is than the collision detection is between htmlElements, so I need to associate any htmlElement with a gameObject.
Add an id to the gameObject class and:
- Instantiate html with random id
- Each GameObject must have its own htmlElement
- I need to convert the enemies class with and array of Enemy game object
- the core Game class must provide a getGameObjectById(id: string) method to get the gameObject reference
- Bullet as GameObject
- Game Object automatism
- htmlElement automatism
- Enemies as gameObject
- Sprite management
- Steps - when you destroy all the enemies you can go to the next step
- Player UI
- Enemy life
- Game intro
- Scoreboard
- Pause play and settings
- Responsive