Bithack / principia

Open source physics-based sandbox game.
https://principia-web.se
Other
258 stars 25 forks source link

Add more lua functions #106

Closed griffi-gh closed 1 year ago

griffi-gh commented 1 year ago

Added lua api functions (Mostly related to entities):

World:

Entity:

(for world:emit() - #109 should be merged first to prevent crashes)

I added checks for 1.5.1 because there's no level version code for 1.5.2 yet. fix this after 1.5.2 release.

griffi-gh commented 1 year ago

partially merged:

entity:set_angle https://github.com/Bithack/principia/commit/b030e27165592748f3eb337471886fd17149c865
entity:is_hidden https://github.com/Bithack/principia/commit/228841aaae7e66314e3bd8a1d1056561587b8af4
world:set_gravity https://github.com/Bithack/principia/commit/2c121ca597d97439a69e9b7874420f7b23236969