Skip to content

Gridphycics Game are given non-defined sprites. #7

@HuskyNator

Description

@HuskyNator

When a gridphysics game, not containing a 'wall' sprite, is created & it's sprites are looped over:

VGDLFactory.GetInstance().init();
VGDLRegistry.GetInstance().init();
Game game = VGDLParser().parseGame(gamePath);
GameDescription gameDescription = GameDescription(game);
ArrayList<SpriteData> sprites  = gameDescription.getAllSpriteData();
for(Spritedata sprite: sprites){
    System.out.println(sprite);
}

A 'wall' sprite is found, namely: wall > Immovable solid=True color=DARKGRAY.
Even though this wall was not defined by the game file.
Examples of games having this issue are: waves, zenpuzzle.

As far as I am aware this is non-documented behavior, and is not desired.
(I tried to use the interaction data to find sprites with certain properties, like walls and floors, however as this sprite is added, and it does not include any StepBack interactions with defined avatars, I often incorrectly identify it as the floor.

If I may also add this: It may be good to add a disclaimer to the wiki, to clarify the interactiondata ,received from the gamedescription objects, start with capital letters, as opposed to their VGDL and wiki definitions (such as "stepBack" vs "StepBack").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions