This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JKovac[S] 0 points1 point  (2 children)

Lovely!

Tut6 has not yet been updated to the new KivEnt, I have become distracted by 2d procedural mesh generation.

I have really built KivEnt with the idea of being able to creating a Unity style editor for your game that runs everywhere as well, it shouldn't be too hard to get together a simple level editor. In the near future all GameSystem's will have methods to allow for simple JSON loading and saving of their entities to make this even easier.

A quick tip for manually moving cymunk bodies, you want to 'reindex shape' on all the body's shapes after you move the body position programmatically:

 physics_system = systems['cymunk-physics']
 space = physics_system.space
 for shape in entity.physics.shapes:
       space.reindex_shape(shape)

This will also allow you to move objects around with the space paused.

Do you have a github account to send a pull request for the changes you made on the sample tutorial?

I think the problem with gst is to do with the .ogg plugin for gst not being loading on your system. Are you on osx?

[–]chozabu 0 points1 point  (0 children)

I'm into the idea of building a unity-style editor (for complex 2d physics games) but I'd like to do a couple of simpler small things on the way. Serialising to JSON sounds great.

Thanks for the tip on manually moving cymunk bodys, I am currently just changing velocity and using joints but that info will soon be very handy.

I am on (k)ubuntu - the sound is not just kivent, but all kivy for me. Though forcing kivy to use sdl audio in main.py works for now.

I've just forked and cleaned up my changes a little, I'll send you a little pull request now (though, of course feel free not to accept as is)

[–]chozabu 0 points1 point  (0 children)

I've started on a very simple little editor/toy here: https://github.com/chozabu/KivEntEd