File tree 2 files changed +15
-14
lines changed
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -347,19 +347,19 @@ function checkHit() {
347
347
348
348
349
349
350
- function checkHit ( ) {
351
- const badBoxHitbox = tilesWith ( BADBOX ) . length ;
352
- const evilBoxHitbox = tilesWith ( EVILBOX ) . length ;
350
+ // function checkHit() {
351
+ // const badBoxHitbox = tilesWith(BADBOX).length;
352
+ // const evilBoxHitbox = tilesWith(EVILBOX).length;
353
353
354
- const badBoxDamage = tilesWith ( BADBOX , player ) . length ;
355
- const evilBoxDamage = tilesWith ( EVILBOX , player ) . length ;
354
+ // const badBoxDamage = tilesWith(BADBOX, player).length;
355
+ // const evilBoxDamage = tilesWith(EVILBOX, player).length;
356
356
357
- // Get the current level's map
358
- const currentLevelMap = levels [ level ] ;
357
+ // // Get the current level's map
358
+ // const currentLevelMap = levels[level];
359
359
360
- if ( badBoxDamage > 0 || evilBoxDamage > 0 ) {
361
- // You're being hit by either BADBOX or EVILBOX
362
- setMap ( currentLevelMap ) ; // Reset the current level
363
- // console.log("HIT!");
364
- }
365
- }
360
+ // if (badBoxDamage > 0 || evilBoxDamage > 0) {
361
+ // // You're being hit by either BADBOX or EVILBOX
362
+ // setMap(currentLevelMap); // Reset the current level
363
+ // // console.log("HIT!");
364
+ // }
365
+ // }
Original file line number Diff line number Diff line change 1
1
/*
2
2
@title : offline_t-rex_game
3
- @author : zoya hussain */
3
+ @author : zoya hussain
4
4
@tags : ['endless']
5
5
@addedOn : 2022-12-31
6
+ */
6
7
7
8
let vy = 0 ;
8
9
You can’t perform that action at this time.
0 commit comments