changed visual movement speed to be slower and made diagonal movement with arrow keys work
This commit is contained in:
@@ -10,12 +10,12 @@ export interface AnimationConfig {
|
||||
|
||||
export const GAME_CONFIG = {
|
||||
player: {
|
||||
initialStats: {
|
||||
maxHp: 20,
|
||||
initialStats: {
|
||||
maxHp: 20,
|
||||
hp: 20,
|
||||
maxMana: 20,
|
||||
mana: 20,
|
||||
attack: 5,
|
||||
attack: 5,
|
||||
defense: 2,
|
||||
level: 1,
|
||||
exp: 0,
|
||||
@@ -52,7 +52,7 @@ export const GAME_CONFIG = {
|
||||
roomMinHeight: 4,
|
||||
roomMaxHeight: 10
|
||||
},
|
||||
|
||||
|
||||
enemies: {
|
||||
rat: {
|
||||
baseHp: 8,
|
||||
@@ -78,7 +78,7 @@ export const GAME_CONFIG = {
|
||||
hpPerFloor: 5,
|
||||
attackPerTwoFloors: 1,
|
||||
},
|
||||
|
||||
|
||||
leveling: {
|
||||
baseExpToNextLevel: 10,
|
||||
expMultiplier: 1.5,
|
||||
@@ -130,11 +130,12 @@ export const GAME_CONFIG = {
|
||||
horizontal: 54,
|
||||
vertical: 55,
|
||||
turning: 56
|
||||
}
|
||||
},
|
||||
moveDuration: 62 // Visual duration for movement in ms
|
||||
},
|
||||
|
||||
ui: {
|
||||
// ... rest of content ...
|
||||
// ... rest of content ...
|
||||
minimapPanelWidth: 340,
|
||||
minimapPanelHeight: 220,
|
||||
minimapPadding: 20,
|
||||
@@ -148,7 +149,7 @@ export const GAME_CONFIG = {
|
||||
targetingLineGap: 4,
|
||||
targetingLineShorten: 8
|
||||
},
|
||||
|
||||
|
||||
gameplay: {
|
||||
energyThreshold: 100,
|
||||
actionCost: 100
|
||||
@@ -175,7 +176,7 @@ export const GAME_CONFIG = {
|
||||
{ key: "warrior-idle", textureKey: "warrior", frames: [0, 0, 0, 1, 0, 0, 1, 1], frameRate: 2, repeat: -1 },
|
||||
{ key: "warrior-run", textureKey: "warrior", frames: [2, 3, 4, 5, 6, 7], frameRate: 15, repeat: -1 },
|
||||
{ key: "warrior-die", textureKey: "warrior", frames: [8, 9, 10, 11, 12], frameRate: 10, repeat: 0 },
|
||||
|
||||
|
||||
// Rat
|
||||
{ key: "rat-idle", textureKey: "rat", frames: [0, 0, 0, 1], frameRate: 4, repeat: -1 },
|
||||
{ key: "rat-run", textureKey: "rat", frames: [6, 7, 8, 9, 10], frameRate: 10, repeat: -1 },
|
||||
|
||||
Reference in New Issue
Block a user