added a whole lot of crap

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-15 23:47:44 +02:00
parent 4edf8453d1
commit e3b9eff67d
25 changed files with 4490 additions and 59 deletions
+2 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020. Pascal Syma <pascal@syma.dev>
* Copyright (c) 2020. Antonio Martinez Casadesus and Pascal Syma.
* All rights reserved.
*/
@@ -29,7 +29,6 @@ export default class Hitbox extends Entity {
overlap(obj) {
this.setData('active', false);
obj.setData('hp', obj.getData('hp') - this.getData('dmg'));
obj.hit();
obj.hit(this.getData('dmg'));
}
}