Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Manic

Up till now, I've been putting a bunch of my game and level logic in entities. This is not necessarily good, and I want to change it.

I&039;ve been looking at how to write my own classes, but now I'm wondering where to stick them. What's good practice? #game/classes? Is there anything else I should look at for intros on writing classes?

1 decade ago by Joncom

I usually just put them in the /lib/game/ folder.

Edit 1:

The documentation does a pretty good job of explaining how to write a class: http://impactjs.com/documentation/class-reference/class

Edit 2:

Do you have any questions about how it is explained in the documentation?
Page 1 of 1
« first « previous next › last »