-
Notifications
You must be signed in to change notification settings - Fork 123
Chapter 5, Bullets
I am really glad we have hired you. Everything is going 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
. SpriteCutie can make it less tedious to find specific sprite coordinates for the bullet graphics.
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/Player.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