Closed jeremyfry closed 6 years ago
A little more debugging this morning. It seems that the yaml parser is getting the wrong values for the sprites list. sprite_data.items() in scenes.py is showing the following for a sprite:
[('y',0), ('x',0), ('scroll', None)]
And I don't know how YAML works. If someone else comes across this
- scroll:
x: 0
y: 0
Is equivalent to
{
scroll: null,
x: 0,
y: 0,
}
You want
- scroll:
x: 0
y: 0
The extra two spaces before the x and y create this:
{
scroll: {
x: 0,
y: 0
}
}
Partial config:
Any values assigned to a sprite in a scene causes a KeyError to be generated.