Fixed some things, did some other stuff as well.
This commit is contained in:
parent
84f214bc74
commit
d8b2661da8
BIN
assets/font/kenpixel_mini_square.eot
Normal file
BIN
assets/font/kenpixel_mini_square.eot
Normal file
Binary file not shown.
0
assets/font/kenpixel_mini_square.svg
Normal file
0
assets/font/kenpixel_mini_square.svg
Normal file
1
assets/font/kenpixel_mini_square.ttf.hash
Normal file
1
assets/font/kenpixel_mini_square.ttf.hash
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/font/kenpixel_mini_square.woff
Normal file
BIN
assets/font/kenpixel_mini_square.woff
Normal file
Binary file not shown.
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<meta title="openfltest" package="com.example.app" version="1.0.0" company="" />
|
||||
<meta title="Spááácè" package="hexlime.space" version="0.5.0" company="Bram van der Veen" />
|
||||
|
||||
<app file="Main" main="Main" path="bin" />
|
||||
|
||||
<window fps="120þ" background="0x000000" />
|
||||
<window width="360" height="640" resizable="false" unless="mobile" />
|
||||
<window orientation="portrait" fullscreen="true" if="mobile" />
|
||||
<window orientation="portrait" vsync="true" antialiasing="0" if="cpp" />
|
||||
<window orientation="portrait" vsync="true" antialiasing="8" if="cpp" />
|
||||
|
||||
<source path="src" />
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class Lives extends Entity {
|
|||
];
|
||||
|
||||
liveBar = Image.createRect(Math.floor(baseSprite.width * .75), 10, 0x00FF00);
|
||||
liveBar.y += 70;
|
||||
liveBar.y += 65;
|
||||
|
||||
baseSprite.scale = .75;
|
||||
|
||||
|
@ -24,7 +24,7 @@ class Lives extends Entity {
|
|||
sprite[i].scale = .75;
|
||||
}
|
||||
|
||||
super(HXP.width - (baseSprite.width * .75 + 20), HXP.height - (baseSprite.height * .75 + 50));
|
||||
super(HXP.width - (baseSprite.width * .75 + 20), 10);
|
||||
|
||||
graphic = baseSprite;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class MenuScene extends Scene {
|
|||
backdrop = new Backdrop("graphics/darkPurple.png", true, true);
|
||||
var play = new MenuButton(HXP.width / 2, HXP.height / 2, "Play!");
|
||||
var title = new Title();
|
||||
var copy = new Text("By Bram \"96AA48\" van der Veen, 2014", HXP.width / 2, HXP.height - 50);
|
||||
var copy = new Text("By Bram \"96AA48\" van der Veen, 2014\nGraphics and Sfx by Kenney\nMusic by Jensan", HXP.width / 2, HXP.height - 50, {align: "center"});
|
||||
var spawner = new Spawner();
|
||||
|
||||
copy.size = 22;
|
||||
|
|
|
@ -17,7 +17,7 @@ class Pickup extends Entity {
|
|||
sound = new Sfx("audio/powerUp6.wav");
|
||||
#end
|
||||
|
||||
var tempRand = .9 /*Math.random()*/;
|
||||
var tempRand = Math.random();
|
||||
|
||||
if (tempRand < .15)
|
||||
randType = 1;
|
||||
|
|
|
@ -93,14 +93,15 @@ class Player extends Entity {
|
|||
}
|
||||
|
||||
public function shoot() {
|
||||
var score:Array<Score> = [];
|
||||
if (this.y > 0) {
|
||||
var score:Array<Score> = [];
|
||||
|
||||
this.scene.getClass(Score, score);
|
||||
|
||||
score[0].rem(500);
|
||||
this.scene.add(new Bullet(this.x + this.width / 2, this.y));
|
||||
laser.play();
|
||||
|
||||
this.scene.getClass(Score, score);
|
||||
|
||||
score[0].rem(500);
|
||||
this.scene.add(new Bullet(this.x + this.width / 2, this.y));
|
||||
laser.play();
|
||||
}
|
||||
}
|
||||
|
||||
public function die() {
|
||||
|
|
|
@ -11,7 +11,7 @@ class Score extends Entity {
|
|||
|
||||
name = "score";
|
||||
score = 1000;
|
||||
scoreText = new Text("$1000", 0, 0, 0, 0, {size : 50, align : "center", color : 0xFFF000});
|
||||
scoreText = new Text("$1000", 0, 0, 0, 0, {size : 50, /*align : "center",*/ color : 0xFFF000});
|
||||
scoreText.font = Assets.getFont("font/kenpixel_mini_square.ttf").fontName;
|
||||
|
||||
layer = -3;
|
||||
|
|
Reference in a new issue