Tairitsu.Settings¶
General settings
Settings
¶
Classes¶
Archive
dataclass
¶
Represents the details for the archive.
| ATTRIBUTE | DESCRIPTION |
|---|---|
archivePath |
The path of the archive.
TYPE:
|
state |
The state of the archive.
TYPE:
|
Attributes¶
BattleSettings
¶
Attributes¶
monsterHeight
class-attribute
instance-attribute
¶
monsterHeight = MonsterSettings.monsterHeight * 4
textMonsterEndX
class-attribute
instance-attribute
¶
textMonsterEndX = WindowSettings.width // 4 * 3
textMonsterStartX
class-attribute
instance-attribute
¶
textMonsterStartX = WindowSettings.width // 2 + 100
BossSettings
¶
GamePath
¶
Attributes¶
battle
class-attribute
instance-attribute
¶
battle = {'Target': './assets/battle/Target.png', 'Choice': ['./assets/battle/TargetChoice000.png', './assets/battle/TargetChoice001.png'], 'Strike': ['./assets/battle/Strike0.png', './assets/battle/Strike1.png', './assets/battle/Strike2.png', './assets/battle/Strike3.png', './assets/battle/Strike4.png', './assets/battle/Strike5.png']}
bgm
class-attribute
instance-attribute
¶
bgm = {'MENU': './assets/bgm/start.mp3', 'CITY': './assets/bgm/city.mp3', 'WILD': './assets/bgm/wild.mp3', 'BOSS': './assets/bgm/boss.mp3', 'DEATH': './assets/bgm/death.mp3', 'RYTHM': './assets/bgm/shed a light.mp3'}
bossTiles
class-attribute
instance-attribute
¶
bossTiles = ['./assets/tiles/boss1.png', './assets/tiles/boss2.png', './assets/tiles/boss3.png', './assets/tiles/boss4.png', './assets/tiles/boss5.png', './assets/tiles/boss6.png']
cityTiles
class-attribute
instance-attribute
¶
cityTiles = ['./assets/tiles/ground1.png', './assets/tiles/ground2.png', './assets/tiles/ground3.png', './assets/tiles/ground4.png', './assets/tiles/ground5.png', './assets/tiles/ground6.png']
groundTiles
class-attribute
instance-attribute
¶
groundTiles = ['./assets/tiles/city1.png', './assets/tiles/city2.png', './assets/tiles/city3.png', './assets/tiles/city4.png', './assets/tiles/city5.png', './assets/tiles/city6.png']
player
class-attribute
instance-attribute
¶
player = ['./assets/player/1.png', './assets/player/1.png', './assets/player/2.png', './assets/player/2.png', './assets/player/3.png', './assets/player/3.png', './assets/player/4.png', './assets/player/4.png']
sound
class-attribute
instance-attribute
¶
sound = {'MenuCursor': './assets/sound/MenuCursor.ogg', 'MenuSelect': './assets/sound/MenuSelect.ogg', 'Speak': './assets/sound/BattleText.ogg', 'Fight': './assets/sound/PlayerFight.ogg', 'Damaged': './assets/sound/PlayerDamaged.ogg'}
GlobalSettings
dataclass
¶
MenuSettings
¶
NPCSettings
dataclass
¶
NPCType
dataclass
¶
PlayerSettings
dataclass
¶
This class represents the initial settings for a player.
| ATTRIBUTE | DESCRIPTION |
|---|---|
playerSpeed |
The speed of the player.
TYPE:
|
playerWidth |
The width of the player.
TYPE:
|
playerHeight |
The height of the player.
TYPE:
|
playerHP |
The health points of the player.
TYPE:
|
playerAttack |
The attack power of the player.
TYPE:
|
playerDefence |
The defence power of the player.
TYPE:
|
playercoin |
The initial coin of the player.
TYPE:
|
Attributes¶
PortalSettings
¶
SceneSettings
dataclass
¶
Represents the settings for a scene in the game.
| ATTRIBUTE | DESCRIPTION |
|---|---|
tileXnum |
The number of tiles in the X direction.
TYPE:
|
tileYnum |
The number of tiles in the Y direction.
TYPE:
|
tileWidth |
The width of each tile.
TYPE:
|
SceneType
¶
TalkType
¶
WindowSettings
dataclass
¶
Represents the settings for the window.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
The name of the window.
TYPE:
|
width |
The width of the window.
TYPE:
|
height |
The height of the window.
TYPE:
|
outdoorScale |
The scale of the window (Necessary when camera moving).
TYPE:
|
fps |
The frame rate of the window.
TYPE:
|