Skip to content

Commit

Permalink
level-editor: create config classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jul 26, 2024
1 parent c264a12 commit ec27c24
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions game/src/level-editor/level-config/level_config.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: 2023 Simon Dalvai <info@simondalvai.org>

# SPDX-License-Identifier: AGPL-3.0-or-later

class_name LevelConfig

var version: String
var objects: Array
var star1: ObjectConfig
var star2: ObjectConfig
var ball: ObjectConfig
var box: ObjectConfig
13 changes: 13 additions & 0 deletions game/src/level-editor/level-config/object_config.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2023 Simon Dalvai <info@simondalvai.org>

# SPDX-License-Identifier: AGPL-3.0-or-later

class_name ObjectConfig

var id: String
var x: float
var y: float
var z: float
var rotation: float
var scale: float
var animation_delay: float

0 comments on commit ec27c24

Please sign in to comment.