Compare commits
4 Commits
1255038efb
...
a4c62bc3a4
| Author | SHA1 | Date | |
|---|---|---|---|
| a4c62bc3a4 | |||
| a71641b989 | |||
| ea3530c01e | |||
| 7b5cf06bd0 |
@ -1,4 +1,4 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
- Auto ajustement, tout toujours visible
|
||||||
- Caper les fps au choix
|
- Caper les fps au choix
|
||||||
- Compiler web
|
|
||||||
|
|||||||
9
main.c
9
main.c
@ -466,9 +466,17 @@ void UpdateDrawFrame(void) {
|
|||||||
Rectangle currentViewBounds = isFullscreen ? fullScreenBounds : normalBounds;
|
Rectangle currentViewBounds = isFullscreen ? fullScreenBounds : normalBounds;
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
ClearBackground(COLOR_BG);
|
ClearBackground(COLOR_BG);
|
||||||
|
float gridThick = 1.1f;
|
||||||
|
float gridAlpha = 0.03f;
|
||||||
// Grille fond
|
// Grille fond
|
||||||
for(int i = UI_WIDTH; i < 1920; i += 100) DrawLine(i, 0, i, 1080, Fade(WHITE, 0.05f));
|
for(int i = UI_WIDTH; i < 1920; i += 100) DrawLine(i, 0, i, 1080, Fade(WHITE, 0.05f));
|
||||||
for(int i = 0; i < 1080; i += 100) DrawLine(UI_WIDTH, i, 1920, i, Fade(WHITE, 0.05f));
|
for(int i = 0; i < 1080; i += 100) DrawLine(UI_WIDTH, i, 1920, i, Fade(WHITE, 0.05f));
|
||||||
|
for(int i = UI_WIDTH; i < 1920; i += 100) {
|
||||||
|
DrawLineEx((Vector2){i, 0}, (Vector2){i, 1080}, gridThick, Fade(WHITE, gridAlpha));
|
||||||
|
}
|
||||||
|
for(int i = 0; i < 1080; i += 100) {
|
||||||
|
DrawLineEx((Vector2){UI_WIDTH, i}, (Vector2){1920, i}, gridThick, Fade(WHITE, gridAlpha));
|
||||||
|
}
|
||||||
|
|
||||||
DrawMichelsonSchema(&mic);
|
DrawMichelsonSchema(&mic);
|
||||||
DrawControlPanel(&mic);
|
DrawControlPanel(&mic);
|
||||||
@ -517,4 +525,3 @@ int main () {
|
|||||||
CloseWindow();
|
CloseWindow();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #111;
|
background-color: #19191e;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
canvas.emscripten {
|
canvas.emscripten {
|
||||||
border: 0px none;
|
border: 0px none;
|
||||||
background-color: black;
|
background-color: #19191e;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
|
|||||||
Reference in New Issue
Block a user