- [WIP] Reestructuració: Fase 1 acabada

This commit is contained in:
2026-04-03 11:11:53 +02:00
parent 569221d047
commit bc006b8f72
7 changed files with 2312 additions and 2203 deletions

View File

@@ -3,23 +3,25 @@
uint16_t ants = 0xc936;
float t = 0;
using namespace mini;
void exception_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();
if (sys::time()-t > 0.25) {
t = sys::time();
view::clip::reset();
view::origin::set(0,0);
surf::target::set(0);
pal::trans::set(255);
pal::color::set(0,0xffffff00);
pal::color::set(1,0xff000000);
const int w=win::res::getw();
const int h=win::res::geth();
mini::draw::mode::set(0);
mini::draw::rect(0,0,w,h,1);
mini::draw::rect(1,1,w-2,h-2,1);
mini::draw::mode::set(1);
fillp(ants);
draw::pattern::set(ants);
mini::draw::rect(0,0,w,h,0);
mini::draw::rect(1,1,w-2,h-2,0);
ants = (ants<<12) | (ants>>4);