Browse code

new bullets sprites

devnewton authored on 04/11/2016 16:59:41
Showing 13 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,2 @@
1
+Author: devnewton@bci.im
2
+License: CC-BY-SA
0 3
\ No newline at end of file
1 4
new file mode 100644
2 5
Binary files /dev/null and b/app/assets/sprites/devnewton/b.png differ
3 6
new file mode 100644
4 7
Binary files /dev/null and b/app/assets/sprites/devnewton/bullets.png differ
5 8
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<TextureAtlas imagePath="bullets.png">
3
+	<!-- bullet.blue -->
4
+	<SubTexture name="bullet.blue0" x="0" y="0" width="16" height="16" />
5
+	<SubTexture name="bullet.blue1" x="16" y="0" width="16" height="16" />
6
+	<SubTexture name="bullet.blue2" x="32" y="0" width="16" height="16" />
7
+	<SubTexture name="bullet.blue3" x="48" y="0" width="16" height="16" />
8
+	<!-- bullet.yellow -->
9
+	<SubTexture name="bullet.yellow0" x="0" y="16" width="16" height="16" />
10
+	<SubTexture name="bullet.yellow1" x="16" y="16" width="16" height="16" />
11
+	<SubTexture name="bullet.yellow2" x="32" y="16" width="16" height="16" />
12
+	<SubTexture name="bullet.yellow3" x="48" y="16" width="16" height="16" />
13
+	<!-- bullet.red -->
14
+	<SubTexture name="bullet.red0" x="0" y="32" width="16" height="16" />
15
+	<SubTexture name="bullet.red1" x="16" y="32" width="16" height="16" />
16
+	<SubTexture name="bullet.red2" x="32" y="32" width="16" height="16" />
17
+	<SubTexture name="bullet.red3" x="48" y="32" width="16" height="16" />
18
+</TextureAtlas>
0 19
new file mode 100644
1 20
Binary files /dev/null and b/app/assets/sprites/devnewton/bullets1.png differ
2 21
new file mode 100644
3 22
Binary files /dev/null and b/app/assets/sprites/devnewton/bullets2.png differ
4 23
new file mode 100644
5 24
Binary files /dev/null and b/app/assets/sprites/devnewton/bullets3.png differ
6 25
new file mode 100644
7 26
Binary files /dev/null and b/app/assets/sprites/devnewton/bullets4.png differ
8 27
deleted file mode 100644
... ...
@@ -1,5 +0,0 @@
1
-License: CC-BY-SA 3.0
2
-
3
-Authors: Johann C
4
-
5
-http://opengameart.org/content/lpc-a-shootem-up-complete-graphic-kit
6 0
\ No newline at end of file
7 1
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<TextureAtlas imagePath="effects01.png">
3
-	<!-- bullet.red -->
4
-	<SubTexture name="bullet.red0" x="0" y="0" width="16" height="16" />
5
-	<SubTexture name="bullet.red1" x="16" y="0" width="16" height="16" />
6
-	<SubTexture name="bullet.red2" x="32" y="0" width="16" height="16" />
7
-	<SubTexture name="bullet.red3" x="48" y="0" width="16" height="16" />
8
-	<SubTexture name="bullet.red4" x="64" y="0" width="16" height="16" />
9
-	<!-- bullet.yellow -->
10
-	<SubTexture name="bullet.yellow0" x="0" y="16" width="16" height="16" />
11
-	<SubTexture name="bullet.yellow1" x="16" y="16" width="16" height="16" />
12
-	<SubTexture name="bullet.yellow2" x="32" y="16" width="16" height="16" />
13
-	<SubTexture name="bullet.yellow3" x="48" y="16" width="16" height="16" />
14
-	<SubTexture name="bullet.yellow4" x="64" y="16" width="16" height="16" />
15
-	<!-- bullet.blue -->
16
-	<SubTexture name="bullet.blue0" x="0" y="32" width="16" height="16" />
17
-	<SubTexture name="bullet.blue1" x="16" y="32" width="16" height="16" />
18
-	<SubTexture name="bullet.blue2" x="32" y="32" width="16" height="16" />
19
-	<SubTexture name="bullet.blue3" x="48" y="32" width="16" height="16" />
20
-	<SubTexture name="bullet.blue4" x="64" y="32" width="16" height="16" />
21
-</TextureAtlas>
22 0
deleted file mode 100644
23 1
Binary files a/app/assets/sprites/lpc/shootemup/effects01.png and /dev/null differ
... ...
@@ -29,7 +29,7 @@ export class Hero extends Phaser.Sprite {
29 29
 
30 30
     static preload(game: Phaser.Game) {
31 31
         game.load.atlasXML('tobira', 'sprites/lpc/characters/tobira.png', 'sprites/lpc/characters/lpc.xml');
32
-        game.load.atlasXML('bullets', 'sprites/lpc/shootemup/effects01.png', 'sprites/lpc/shootemup/bullets.xml');
32
+        game.load.atlasXML('bullets', 'sprites/devnewton/bullets.png', 'sprites/devnewton/bullets.xml');
33 33
     }
34 34
 
35 35
     update() {
... ...
@@ -119,15 +119,15 @@ export class Level extends AbstractState {
119 119
     }
120 120
 
121 121
     startAction() {
122
-        /*this.game.time.events.add(1000, () => this.grobelinHorde.reset(this.hero, 3));
122
+        this.game.time.events.add(1000, () => this.grobelinHorde.reset(this.hero, 3));
123 123
         this.game.time.events.add(20 * 1000, () => this.spiderHorde.reset(this.hero, 4));
124 124
         this.game.time.events.add(40 * 1000, () => this.birdFlock.reset(this.hero, 10));
125 125
         this.game.time.events.add(60 * 1000, () => {
126 126
             this.birdFlock.flyRate = Number.MAX_VALUE;
127 127
             this.spiderHorde.appearsRate = Number.MAX_VALUE;
128 128
             this.grobelinHorde.appearsRate = Number.MAX_VALUE;
129
-        });*/
130
-        this.game.time.events.add(8/*0*/ * 1000, () => {
129
+        });
130
+        this.game.time.events.add(80 * 1000, () => {
131 131
             for (let i = 0; i < 4; ++i) {
132 132
                 let pos = this.pathfinder.randomWalkablePos();
133 133
                 let bunny = new Bunny(this.game, this.pathfinder);