Skip to content
Snippets Groups Projects
Commit 377ae54e authored by ah3472's avatar ah3472
Browse files

Merge branch 'develop' of gitlab.cci.drexel.edu:ah3472/cs375_project into map_stuff

I still dk what this thing is
parents 66db942d 7da96cb4
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,14 @@ let mobList = []; ...@@ -50,6 +50,14 @@ let mobList = [];
let bounds; let bounds;
let playerCollided; let playerCollided;
let score = 0;
let something = "Score:" + score;
let txt = new PIXI.Text(something,{fontFamily: "Arial",fontSize: 15, fill: "#FFFFFF"});
txt.x = app.view.width / 10;
txt.y = app.view.height / 4;
txt.anchor.set = 0.5;
app.stage.addChild(txt);
let nextX; let nextX;
let nextY; let nextY;
...@@ -430,6 +438,8 @@ function bulletCollider(delta){ ...@@ -430,6 +438,8 @@ function bulletCollider(delta){
app.stage.removeChild(map.currentRoom.enemies[j].sprite); app.stage.removeChild(map.currentRoom.enemies[j].sprite);
map.currentRoom.numOfEnemies--; map.currentRoom.numOfEnemies--;
map.currentRoom.enemies.splice(j, 1); map.currentRoom.enemies.splice(j, 1);
score += 100;
txt.text ="Score:" + score;
} }
} }
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment