Skip to content
Snippets Groups Projects
Commit c5bf2961 authored by Jacky Chen's avatar Jacky Chen
Browse files

updated dmg

parent 09b61a9d
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ function startUpGame() { ...@@ -84,7 +84,7 @@ function startUpGame() {
nextY = p1.y; nextY = p1.y;
p1.create_p1(app); p1.create_p1(app);
g1 = new gun(p1.x - 40, p1.y - 5, p1.weapon, 10, 50, 10); g1 = new gun(p1.x - 40, p1.y - 5, p1.weapon, 10, 50, 2);
g1.create_gun(app, animatedObjects); g1.create_gun(app, animatedObjects);
healthBar(); healthBar();
...@@ -181,7 +181,7 @@ function randomlySpawnMobs(numMobs) { ...@@ -181,7 +181,7 @@ function randomlySpawnMobs(numMobs) {
for (let i = 0; i < numMobs; i++) { for (let i = 0; i < numMobs; i++) {
let x = Math.random() * (maxX - minX) + minX; let x = Math.random() * (maxX - minX) + minX;
let y = Math.random() * (maxY - minY) + minY; let y = Math.random() * (maxY - minY) + minY;
mob = new Enemy(x, y, 5); mob = new Enemy(x, y, 10);
mobList.push(mob); mobList.push(mob);
map.currentRoom.enemies.push(mob); map.currentRoom.enemies.push(mob);
mob.addToObjectsList(animatedObjects); mob.addToObjectsList(animatedObjects);
...@@ -606,7 +606,7 @@ function pickup(){ ...@@ -606,7 +606,7 @@ function pickup(){
g1.weapon = "Awp"; g1.weapon = "Awp";
g1.t_ammo = 20; g1.t_ammo = 20;
g1.f_ammo = 5; g1.f_ammo = 5;
g1.dmg = 2.4; g1.dmg = 5;
wep.textures = gunAnim.awp; wep.textures = gunAnim.awp;
wep.play(); wep.play();
app.stage.removeChild(box); app.stage.removeChild(box);
...@@ -615,7 +615,7 @@ function pickup(){ ...@@ -615,7 +615,7 @@ function pickup(){
g1.weapon = "smg"; g1.weapon = "smg";
g1.t_ammo = 150; g1.t_ammo = 150;
g1.f_ammo = 25; g1.f_ammo = 25;
g1.dmg = 1.4; g1.dmg = 3;
wep.textures = gunAnim.smg; wep.textures = gunAnim.smg;
wep.play(); wep.play();
app.stage.removeChild(box); app.stage.removeChild(box);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment