Forum Archive

Platformer in previous beta

Sebastian

I think I remember there was a platformer game example in one of the previous examples, and since I started to make a platformer game myself with the new version of the scene module I was wondering; how was the levels created?

JonB

The old sk module had a level editor.
Interestingly, the current beta still has that editor!
Create an empty file, then rename it to have a pysk extension.

It doesn't quite work the way it used to, textures don't show up, (but can be selected, and the name ends up in the resulting file), etc. but you could still use it for a rudimentary level builder. Then, read as json. Likely you'd need to roll your own code to then apply the attributes to the appropriate scene objects.

JonB

Actually sk.load and sk.node_from_dict are also still included in the beta, you could copy iver that code, and would just have to change things to map to the correct scene node types, etc.

Sebastian

@JonB Cool, will try that when I get home! Thanks!

omz

Just for the record: I would definitely not recommend using that, it's unfinished (and probably buggy). I forgot to remove it, but I might do so without warning in the next update...

Sebastian

I thought that was the case. I just started making my own level editor. That's why I asked about the asset picker, on another thread.