GatoCreador887
GatoCreador887
I would like these events: |Event|Properties| |-|-| |Alien spawned|event.alien| |Asteroid spawned|event.asteroid| |Crystal spawned|event.crystal| |Laser spawned|event.laser| |Alien damaged|event.alien, event.damager| |Asteroid damaged|event.asteroid, event.damager| |Ship damaged|event.ship, event.damager| |Crystal collected|event.crystal, event.ship| `event.damager` would be...
I would like asteroids to have properties to drop crystals and weapons. ``` game.addAsteroid({size:25,x:3,y:19,vx:0.13,vy:-0.27,crystal_drop:6,weapon_drop:10}); ```
A function to spawn crystals would be nice. Properties: - Value - All the regular stuff (x, y, vx, vy...) ``` game.addCrystal({value:23,x:11,y:9,vx:0.1,vy:0.35}); ```
A property that ships would have that stores their color. ``` > game.ships[0].color #F00 ``` It could be useful for UI. Also, it would, in theory, when in a team...
A simple new UI component. ``` ship.setUIComponent({ components: [ {type:"glyph",position:[0,0,100,100],value:"\u0061",color:"#F00"} ] }); ``` This code would display a red ship glyph, a bit like the image below.  This should...
I would like a function to spawn lasers in the game. The laser object would have these properties: - Damage - Speed - Angle - Type - All the regular...