remove console logs
This commit is contained in:
+3
-3
@@ -27,7 +27,7 @@ function updateMonsters(dt) {
|
||||
}
|
||||
|
||||
function updateMonster(monster, dt) {
|
||||
monster.slimeMonster && console.log('log monster ', monster)
|
||||
// monster.slimeMonster && console.log('log monster ', monster)
|
||||
if (!monster.dead) {
|
||||
updateEntity(monster, dt)
|
||||
if (
|
||||
@@ -305,7 +305,7 @@ function reduceHitpoints(entity, damage, timeout) {
|
||||
}
|
||||
|
||||
function killEntity(entity) {
|
||||
console.log('killEntity: ', entity)
|
||||
// console.log('killEntity: ', entity)
|
||||
if (entity.player === true) {
|
||||
killPlayer(entity)
|
||||
}
|
||||
@@ -322,7 +322,7 @@ function killPlayer(player) {
|
||||
globalObject.hitpoints = player.maxHitpoints
|
||||
globalObject.oxygen = globalObject.maxOxygen
|
||||
globalObject.lifes--
|
||||
console.log('log globalObject: ', globalObject.lifes)
|
||||
// console.log('log globalObject: ', globalObject.lifes)
|
||||
}
|
||||
|
||||
function collectTreasure(t) {
|
||||
|
||||
Reference in New Issue
Block a user