Just a few things to clear up

  • bowserinator
    13th Nov 2014 Member 0 Permalink

    1. In C++ is there a way to draw just graphics like in lua? (BTW There should be more tutorials on this on the wiki) 

    2. When you add a new layer, is it as simple as creating 2 new files like air.cpp and air.h or something then editing the Stimulation.h and Stimulation.cpp?

  • jacob1
    13th Nov 2014 Developer 0 Permalink
    Where do you want to do graphics, and what type? Element graphics are easy (you can look at how other elements work). Stickmen work by setting a flag in the graphics function, and then drawing the stickman inside Renderer.cpp. You could also do a more manual way by getting g directly [Graphics * g = ui::Engine::Ref().g;], but that isn't very pretty :)

    You don't actually have to create the separate file, you could just put it all in Simulation.h and Simulation.cpp if it's simple enough. It makes the code cleaner to put it in a separate file (for air/gravity), but lots of other things don't (like the wall map).
    Edited 2 times by jacob1. Last: 13th Nov 2014
  • bowserinator
    13th Nov 2014 Member 0 Permalink

    @jacob1 (View Post)

    1. Basiclly draw cool glowing circles radiating outwards. 

    -Never mind I found it

    2. Wow it is that simple. thanks

    Edited 2 times by bowserinator. Last: 13th Nov 2014
  • bowserinator
    15th Nov 2014 Member 0 Permalink

    Also how do you embed a script. My attempts have failed.

    EDIT: Never mind

    Edited once by bowserinator. Last: 15th Nov 2014