Extra native OS functions for games written using the Defold game engine
Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.2.3.zip
Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.2.2.zip
get_bundle_root()
on Linux (though you should use sys.get_application_path()
instead).Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.2.1.zip
Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.2.0.zip
load_cursor()
function to load a cursor once and reuse it many times without reloading it each timeAdd this to your game.project
:
https://github.com/subsoap/defos/archive/v2.1.0.zip
move_cursor_to()
has been renamed to set_cursor_pos_view()
. Old name still available.get_cursor_pos()
/get_cursor_pos_view()
.nil
for x
and y
in set_window_size()
and set_view_size()
centered the window in the middle of the primary display instead of the current display.Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.0.0.zip
enable_mouse_cursor()
and disable_mouse_cursor()
have been renamed to set_cursor_visible()
.toggle_maximize()
has been renamed to toggle_maximized()
.set_window_size(nil, nil, width, height)
instead of set_window_size(-1, -1, width, height)
.dx
and dy
(useful for FPS controls).onclick
on HTML5 to work around permission issues when using toggle_fullscreen()
and the likes.Breaking API changes may happen soon so if your project breaks and you don't want change function names you can use this release directly instead.