new motto

main
Dominik Madarász 2023-09-14 03:19:16 +02:00
parent 07b002d536
commit c75cff8b0f
4 changed files with 18 additions and 13 deletions

View File

@ -1,6 +1,6 @@
<h1 align="center">V·4·K</h1>
<p align="center">
3D multimedia workbench in C, with Luajit and Python bindings.<br/>
Envision, Prototype, Perfect<br/>
</p>
## Features
@ -42,8 +42,7 @@
- [x] Disk cache.
- [x] Scene handling.
- [x] Profiler, stats and leaks finder.
- [x] [Editor (wip)](https://user-images.githubusercontent.com/35402248/174457347-f787a6a2-aac8-404c-a5da-f44310c3d432.mp4).
- [x] [Documentation (wip)](https://bit.ly/v4k2023).
- [x] [Documentation (wip)](https://v4k.dev).
## Hello V4K
```C

View File

@ -53,5 +53,5 @@ rem cook art
rem host webserver, compile and launch
rem start python -m http.server --bind 127.0.0.1 8000
emcc %* -g ..\..\engine\v4k.c -I..\..\engine -o index.html -pthread -s FULL_ES3 -s USE_PTHREADS -s USE_GLFW=3 -s SINGLE_FILE=1 -s PRECISE_F32=1 -s TOTAL_MEMORY=256mb -s ENVIRONMENT=worker,web --shell-file template.html -Wfatal-errors --preload-file .art[00].zip -s ALLOW_MEMORY_GROWTH=1 -lidbfs.js
emcc %* -g ..\..\engine\v4k.c -I..\..\engine -o index.html -pthread -s FULL_ES3 -s USE_PTHREADS -s USE_GLFW=3 -s SINGLE_FILE=1 -s PRECISE_F32=1 -s TOTAL_MEMORY=256mb -s ENVIRONMENT=worker,web --shell-file template.html -Wfatal-errors --preload-file .art[00].zip@index.zip -s ALLOW_MEMORY_GROWTH=1 -lidbfs.js
rem && start "" http://localhost:8000/index.html

View File

@ -9,6 +9,7 @@
int paused;
camera_t cam;
skybox_t sky;
void game_loop(void *userdata) {
// key handler
@ -73,6 +74,8 @@ void game_loop(void *userdata) {
// 3D
glEnable(GL_DEPTH_TEST);
skybox_render(&sky, cam.proj, cam.view);
// grid
ddraw_grid(0);
@ -588,14 +591,14 @@ void game_loop(void *userdata) {
// ui_panel_end();
// }
if( ui_panel("FX", 0) ) {
for( int i = 0; i < 64; ++i ) {
char *name = fx_name(i); if( !name ) break;
bool b = fx_enabled(i);
if( ui_bool(name, &b) ) fx_enable(i, fx_enabled(i) ^ 1);
}
ui_panel_end();
}
// if( ui_panel("FX", 0) ) {
// for( int i = 0; i < 64; ++i ) {
// char *name = fx_name(i); if( !name ) break;
// bool b = fx_enabled(i);
// if( ui_bool(name, &b) ) fx_enable(i, fx_enabled(i) ^ 1);
// }
// ui_panel_end();
// }
}
@ -609,6 +612,9 @@ int main(void) {
// camera that points to origin
cam = camera();
// load up skybox
sky = skybox(0, 0);
// main loop
window_loop(game_loop, NULL);
}

View File

@ -7,7 +7,7 @@
# [V·4·K {{VERSION}}](https://v4k.dev)
## a b o u t
- v4k is a multimedia workbench for prototyping and planning ideas.
- Envision, Prototype, Perfect.
- visit the code repo at [dev.v4.games](https://dev.v4.games/v4games/v4k) now!
- you can try out the [live demo](https://v4k.dev/demo), too!
- and for anything else, reach us at [v4.games](https://v4.games/).