BFR 2 (Big Fucking Restructureixon) (dos)

Este es el primer commit de la reestructuració. En caso de pánico, tornar al commit anterior.
- [FIX] Llevada basura varia (pos no en queda...)
- [NEW] mogut el codi font a ./source/
- [NEW] lagueirtofile nou per a compilar en windows y linux, release i debug. mac res, que no se ni si funciona lagueirto.
- [NEW] WARNING!!! make ja no funciona. Mantinc encara el Makefile per a referència.
This commit is contained in:
2026-04-01 22:17:42 +02:00
parent 5c0b046ad8
commit f4eac55989
79 changed files with 61 additions and 148 deletions

27
source/main.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include "mini.h"
uint16_t ants = 0xc936;
float t = 0;
void loop() {
//if (t==0) t= time();
if (time()-t > 0.25) {
t = time();
clip();
origin(0,0);
setdest(0);
settrans(255);
setcolor(0,0xffffff00);
setcolor(1,0xff000000);
const int w=scrw();
const int h=scrh();
set_draw_mode(0);
rect(0,0,w,h,1);
rect(1,1,w-2,h-2,1);
set_draw_mode(1);
fillp(ants);
rect(0,0,w,h,0);
rect(1,1,w-2,h-2,0);
ants = (ants<<12) | (ants>>4);
}
}