Game scene format #13

Closed
opened 2023-07-15 19:36:56 +00:00 by Sara · 3 comments

Basic deserialization that allows for

  • Arbitrary scene-wide settings such as a game mode or world name.
  • Any number of objects any number of arguments.
  • Object arguments passed to game logic so objects can be constructed
Basic deserialization that allows for - [x] Arbitrary scene-wide settings such as a game mode or world name. - [x] Any number of objects any number of arguments. - [x] Object arguments passed to game logic so objects can be constructed
Poster
Owner

Format concept:

[Settings]
game_mode = Combat;
scene_name = Final Boss;

[Objects]
player;
encounter = (x: 5, y: 10, sprite: goblin.png, encounter: goblins_a.ini);
encounter = (x: 6, y: 3, sprite: goblin.png, encounter: goblins_a.ini);
encounter = (x: -5, y: 13, sprite: goblin.png, encounter: goblins_a.ini);
Format concept: ``` [Settings] game_mode = Combat; scene_name = Final Boss; [Objects] player; encounter = (x: 5, y: 10, sprite: goblin.png, encounter: goblins_a.ini); encounter = (x: 6, y: 3, sprite: goblin.png, encounter: goblins_a.ini); encounter = (x: -5, y: 13, sprite: goblin.png, encounter: goblins_a.ini); ```
Sara changed title from Game scene serialization to Game scene format 2023-07-15 19:49:24 +00:00
Sara changed title from Game scene format to FEATURE Game scene format 2023-07-15 21:18:43 +00:00
Sara changed title from FEATURE Game scene format to Game scene format 2023-07-15 21:18:58 +00:00
Poster
Owner

Format concept simplified down to:

player:
    0, 0
;

prop:
    resources/crate.png,
    3, 0,
    1, 1,
    aabb,
;

This enables all the same features, but without complicating parsing unnecessarilly

Format concept simplified down to: ``` player: 0, 0 ; prop: resources/crate.png, 3, 0, 1, 1, aabb, ; ``` This enables all the same features, but without complicating parsing unnecessarilly
Poster
Owner

Finished implementing last format concept. Closing

Finished implementing last format concept. Closing
Sara closed this issue 2023-07-16 11:54:26 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sara/basic-game-framework#13
There is no content yet.