-
Notifications
You must be signed in to change notification settings - Fork 123
Chapter 5, Bullets
rezoner edited this page Oct 5, 2014
·
13 revisions
I am really glad we have hired you. Everything goes as expected.
To the point.
Press SPACE to fire. Well - Mike was in a hurry and we have this white rectangles instead of bullets. Could you please replace them with a proper graphics? Maybe this will help you:
Entities/Bullet.js
is the file. The spritesheet with bullet graphics can be found inimages/spritesheet.png
.
This game will have to support two players at a later stage - you can get a bullet team accessing
this.team
(0 blue, 1 red). I already have similar thing inEntities/Ship.js
- except bullets are just balls so you don't have to rotate them.
Anyway I am using slightly enchanted canvas (
app.layer
) so you can either go with drawImage or drawRegion.
Regards
--
Joshua Hal
Producer