Skip to content

Commit

Permalink
Credits update and weapon switching hint at help menu.
Browse files Browse the repository at this point in the history
Updated docs to 0.2.0.
  • Loading branch information
FranciscoKnebel committed Feb 25, 2018
1 parent a0b4bc1 commit 0ecc4c3
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 13 deletions.
12 changes: 9 additions & 3 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
- RD2
- RD3

##### Freepik
- Weapon icons
- Bomb
- Trident

##### Creaticca Creative Agency
- Weapon icons
- Shotgun

## Music
> ##### Author _(Link)_
> - Track Number 1
> - Track Number 2

##### Sirius Beat _(http://youtu.be/zIRo7NJ4uLE)_
- Tronicles
Expand Down
Binary file added docs/data/img/ui/weapons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/js/app.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/js/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,10 @@ game.resources = [
"name": "5",
"type": "image",
"src": "data/img/ui/startMenu/5.png"
},
{
"name": "weapons",
"type": "image",
"src": "data/img/ui/weapons.png"
}
];
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spaceinvader",
"version": "0.1.9",
"version": "0.2.0",
"main": "main.js",
"scripts": {
"build": "grunt dist && npm run build-linux && npm run build-win32 && npm run build-darwin",
Expand Down
17 changes: 16 additions & 1 deletion src/screens/credits/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ game.Credits.elements = [
'Player Spaceship:',
'F5S3',
'',
'Enemy Spaceship',
'Enemy Spaceship:',
'att2',
'att5',
'blueship2',
Expand All @@ -26,6 +26,21 @@ game.Credits.elements = [
'RD3'
]
},
{
header: 'Freepik',
items: [
'Weapon icons:',
'Bomb',
'Trident'
]
},
{
header: 'Creaticca Creative Agency',
items: [
'Weapon icons:',
'Shotgun'
]
},
{
header: 'Music'
},
Expand Down
17 changes: 10 additions & 7 deletions src/screens/help/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,25 @@ game.Screens.Help = me.ScreenObject.extend({
draw(renderer) {
game.Title.draw(renderer, this.titleFont, this.version);

this.commandFont.draw(renderer, 'Key A & LEFT', 50, 175);
this.commandFont.draw(renderer, 'A & LEFT', 50, 175);
this.descriptionFont.draw(renderer, 'move left', me.game.viewport.width - 50, 175);

this.commandFont.draw(renderer, 'Key D & RIGHT', 50, 225);
this.commandFont.draw(renderer, 'D & RIGHT', 50, 225);
this.descriptionFont.draw(renderer, 'move right', me.game.viewport.width - 50, 225);

this.commandFont.draw(renderer, 'Key SPACE & LCLICK', 50, 275);
this.commandFont.draw(renderer, 'SPACE & LCLICK', 50, 275);
this.descriptionFont.draw(renderer, 'shoot', me.game.viewport.width - 50, 275);

this.commandFont.draw(renderer, 'J/K/L & 1/2/3', 50, 325);
this.descriptionFont.draw(renderer, '+/Mute/- Volume', me.game.viewport.width - 50, 325);
this.commandFont.draw(renderer, 'Q & E', 50, 325);
this.descriptionFont.draw(renderer, 'switch weapons', me.game.viewport.width - 50, 325);

this.commandFont.draw(renderer, 'J/K/L & 1/2/3', 50, 375);
this.descriptionFont.draw(renderer, '+/Mute/- Volume', me.game.viewport.width - 50, 375);

if (me.device.isMobile) {
this.btnFont.draw(renderer, 'TOUCH TO CONTINUE', me.game.viewport.width / 2, 400);
this.btnFont.draw(renderer, 'TOUCH TO CONTINUE', me.game.viewport.width / 2, 425);
} else {
this.btnFont.draw(renderer, 'PRESS ENTER TO CONTINUE', me.game.viewport.width / 2, 400);
this.btnFont.draw(renderer, 'PRESS ENTER TO CONTINUE', me.game.viewport.width / 2, 425);
}
},
update() {
Expand Down

0 comments on commit 0ecc4c3

Please sign in to comment.