Skip to content

Commit

Permalink
animate turrent
Browse files Browse the repository at this point in the history
  • Loading branch information
jmort1021 committed Mar 1, 2025
1 parent 72670ed commit 2c0eb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/adventureGame/GameLevelStarWars.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class GameLevelStarWars {
pixels: {width: 1056, height: 236},
INIT_POSITION: { x: width - (height/TURRET_SCALE_FACTOR), y: height - .82*(height/TURRET_SCALE_FACTOR) },
orientation: {rows: 1, columns: 3 },
down: {row: 0, start: 0, columns: 1 }, // This is the stationary npc, down is default
down: {row: 0, start: 0, columns: 3 }, // This is the stationary npc, down is default
hitbox: { widthPercentage: 0.1, heightPercentage: 0.1 },
};

Expand All @@ -75,7 +75,7 @@ class GameLevelStarWars {
TRANSLATE_SCALE_FACTOR: 10, // Grow to this size at end translation
TRANSLATE_POSITION_RATIO: { x: 1 / 2.78, y: 1 / 2.9 }, // Ratios for translate position
TRANSLATE_SIMULATION: {miliseconds: 500 }, // 1 second
down: {row: 0, start: 0, columns: 1, spin: 4}, // down is default
down: {row: 0, start: 0, columns: 3, spin: 4}, // down is default
};

// Laser data, temporary sprite for testing
Expand Down

0 comments on commit 2c0eb08

Please # to comment.