Skip to content

Commit

Permalink
Fix fields
Browse files Browse the repository at this point in the history
  • Loading branch information
duffn committed Jan 4, 2025
1 parent cc1aebc commit 96d9968
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ldtk.odin
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,14 @@ Level :: struct {
// The "guessed" color for this level in the editor, decided using either the background
// color or an existing custom field.
smart_color: string `json:"__smartColor"`,
// Background color of the level. If `nil`, the project `defaultLevelBgColor` should be
// used.
level_bg_color: Maybe(string) `json:"levelBgColor"`,
// Background image X pivot (0-1)
bg_pivot_x: f32 `json:"bgPivotX"`,
// Background image Y pivot (0-1)
bg_pivot_y: f32 `json:"bgPivotY"`,
// An enum defining the way the background image (if any) is positioned on the level. See
// `__bgPos` for resulting position info. Possible values: <`nil`>, `Unscaled`,
// `Contain`, `Cover`, `CoverDirty`, `Repeat`
level_bg_pos_type: Maybe(Bg_Pos) `json:"levelBgPos"`,
bg_pos_type: Maybe(Bg_Pos) `json:"levelBgPos"`,
// The *optional* relative path to the level background image.
bg_rel_path: Maybe(string) `json:"bgRelPath"`,
// This value is not nil if the project option "*Save levels separately*" is enabled. In
Expand Down

0 comments on commit 96d9968

Please sign in to comment.