Code Monkey home page Code Monkey logo

dasbox's Introduction

dasbox

Build for Windows Build status

Install Visual Studio 2017 or 2019
Install CMake https://cmake.org/install/
git clone --recurse-submodules https://github.com/imp5imp5/dasbox.git
cd dasbox
build_windows_vs_*.bat

Build for Linux (tested only on Ubuntu) Build status

sudo apt update
sudo apt install g++ make

update CMake (3.21.3 or newer version required) https://cmake.org/install/

sudo apt install libudev-dev libasound2-dev libpulse-dev libx11-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxcursor-dev libfreetype-dev

git clone --recurse-submodules https://github.com/imp5imp5/dasbox.git
cd dasbox
./build_linux.sh

How to use

Run your application:

dasbox.exe <path_to_application_folder/file_name.das>

Optional comand line arguments:

--dasbox-console - duplicate output to console ('--' is also acceptable)
--trust - allow access to any file on this computer
--disable-auto-upscale - disabling automatic zooming, by default the window will be zoomed in 2 times, if the window is 2.5 times less than the desktop resolution
--use-debug-trap - cause the native code debugger to break on script breakpoint
--disable-gc - disable garbage collection

Once the application is running, all the sources ('file_name.das' and all the sources requested from it) will be checked for changes and automatically reloaded.
The current directory will change to 'path_to_application_folder'. For security reasons access to parent directories from within the script will be forbidden.

F5 or Ctrl+R - reload sources in the manual mode
Ctrl+F5 or Ctrl+Alt+R - hard reload, ECS will be reloaded too
Tab - switch to the logging screen and back

In the log screen your application will be paused.

Controls in the log screen:

Up, Down, Ctrl+Up, Ctrl+Down, PgUp, PgDown, Mouse Scroll - scroll log
Left Mouse Button - text selection
Ctrl+C - copy to clipboard

More to read and watch

dasbox's People

Contributors

alexlemming avatar aviktorov avatar imp5imp5 avatar profelis avatar todace avatar vasiliyryabtsev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dasbox's Issues

Could you please provide the information how to use dascript with 3D (opengl or BGFX).

Could you please provide the information how to use dascript with 3D (opengl or BGFX). I was trying to enable in cmake option BGFX, but with this I am getting error - [ 27%] Built target daScript
[ 27%] AOT precompiling /Users/timur/Grafics/daScript/modules/dasOpenGL/opengl/opengl_boost.das -> /Users/timur/Grafics/daScript/modules/dasOpenGL/opengl/_aot_generated/dasImguiOpenGL_AOT_opengl_boost.das.cpp
saving to /Users/timur/Grafics/daScript/modules/dasOpenGL/opengl/_aot_generated/dasImguiOpenGL_AOT_opengl_boost.das.cpp
[ 27%] Built target dasImguiOpenGL_AOT_opengl_boost.das_aot
[ 28%] AOT precompiling /Users/timur/Grafics/daScript/modules/dasImgui/example/imgui_demo.das -> /Users/timur/Grafics/daScript/modules/dasImgui/example/_aot_generated/dasImguiOpenGL_AOT_imgui_demo.das.cpp
saving to /Users/timur/Grafics/daScript/modules/dasImgui/example/_aot_generated/dasImguiOpenGL_AOT_imgui_demo.das.cpp
[ 28%] Built target dasImguiOpenGL_AOT_imgui_demo.das_aot
[ 28%] AOT precompiling /Users/timur/Grafics/daScript/modules/dasImgui/example/imgui_opengl2.das -> /Users/timur/Grafics/daScript/modules/dasImgui/example/_aot_generated/dasImguiOpenGL_AOT_imgui_opengl2.das.cpp
saving to /Users/timur/Grafics/daScript/modules/dasImgui/example/_aot_generated/dasImguiOpenGL_AOT_imgui_opengl2.das.cpp
[ 28%] Built target dasImguiOpenGL_AOT_imgui_opengl2.das_aot
make[2]: *** No rule to make target ../modules/dasImgui/imgui/imgui_boost.das', needed by ../modules/dasImgui/imgui/_aot_generated/dasImguiOpenGL_AOT_imgui_boost.das.cpp'. Stop.
make[1]: *** [CMakeFiles/dasImguiOpenGL_AOT_imgui_boost.das_aot.dir/all] Error 2
make: *** [all] Error 2 . I have installed BGFX library in system via build this https://github.com/bkaradzic/bgfx.cmake and sudo make install , but this did not help. I also was trying with DASBOX, but iot seems it does not provide 3d GAPI.. (only 2d may be I am wrong... I do not know) Thank you and for any who can help. [email protected] Timur

draw_functions float2

Очень хочется альясы для всяких set_pixel\line\reсt с float2 в качестве координаты.

Processing's tweak mode suggestion

Просто интересно, а получится ли на dascript'e сделать подобие TweakMode как в Processing'e
Как на видео: https://youtu.be/b56gTG87gCk?t=248

Если dascript хранит инструкции в виде нодового дерева, то по идее можно вывести в отдельном окне редактор скрипта (через imgui+stb_textedit) и покрутить в нём значения переменных как слайдеры в реальном времени ?!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.