How to add game logics

I want to make 3d game in jmonkey, i have made a stage with 3d view and some houses, you can walk and jump in it. now i need to add game logics same like snake game. i.e. a dot appear at random places and I have to catch it for getting points.

Plz help

You do that in the simpleUpdate(float tpf) method. That method runs every frame.

BTW you seriously need to go read the tutorials.

1 Like