Debian Codegraph @

Game/mods/1.3.0.bricks_unpacked.data/README.md

raw symbols SCIP
1 # 1.3.0.bricks
2 This is a sample mod for Block Attack - Rise of the Blocks.
3 It changes the bricks to use the graphic from 1.3.0. Not that way are good but it shows how it works.
4
5 ## Enabling mods
6 At the moment it is possible to start mod in two ways. Command line argument or mod file.
7
8 ### Command line
9 ```bash
10 ./blockattack --mod MODNAME
11 # Example:
12 ./blockattack --mod 1.3.0.bricks
13 ```
14 Mods loaded from command line are loaded last. They take priority over the mod file.
15
16 ### Mod file
17 It is possible using a "mod_list.txt"-file in config directory.
18 * Windows: `%APPDATA%/blockattack/mod_list.txt`
19 * Linux: `$HOME/.local/share/blockattack/mod_list.txt`
20
21 The file is a csv-file without header and a line for each mod.
22 ```csv
23 1.3.0.bricks,1
24 ```
25 The fist column is the modname, the second column is "1" if enabled. A 0 means disabled. It is possible preserve the order while remembering the mod order.
26
27 ## Mod structure
28 Mods override files from blockattack.data, so any file in blockattack.data can be modified and made into a mod.
29 New sprite files can also be created. See "Modinfo file".
30
31 ## Modinfo file
32 The game contains a file modinfo/1.3.0.bricks.json which contains metadata about the mod.
33 Note that the filename MUST be "MODNAME.json". The game will only search for the modinfo file if a given mod has been loaded.
34
35 The file contains a "sprites" section. Sprite files mentioned in this value will be loaded in mod order, so the last loaded mod will take priority.
36
37 This allows you to override individual sprites from blockattack.data without replicating the entire file.
38
39 ## Sprites
40 As mentioned sprites can be overridden. The documentation for Saland Adventures https://salandgame.github.io/development_info/sprites/ also applies to Block Attack - Rise of the Blocks.
41
42 ## Example
43 The example example mod features the following:
44 textures/ball_*.png just overwrites files in blockattack.data
45
46 The example mod add one new texture "textures/bricks130.png" or just "bricks130".
47
48 The sprite file "sprites/bricks1.3.0.sprite" uses the "bricks130" texture.
49
50 The mod file "modinfo/1.3.0.bricks.json" refers the sprite file so that it takes priority.
51
52 ## Tips
53 Use lowercase letters for all filenames. This prevents surprises when developing on case insensitive file systems.
54
55 Create new sprite files rather than overwriting an existing one. Failure to do so might result in mod conflicts.