dentrypoint 0, _EntryHere; timer #GpuSpawn; _EntryHere: dcvxpipe 3; dclrscr Black; dsetwidth 0.001; dcolor Yellow; // -------- // MAIN // -------- Move: // UPDATE TIMER timer #Uptime; sub #Uptime, #GpuSpawn; mul #Uptime, 1000; fint #Uptime; div #Uptime, 1000; // INPUTS mov eax, port0; mul eax, 10; mov #Score, eax; mov #Mult, port1; mov #Streak, port2; mov #Speed, port3; BackgroundBoxes: // SHAPES dcolor Yellow; dvxdata_2f scorebackground, 6; // RECTANGLES dcolor Black; drect R1_1, R1_2; drect R2_1, R2_2 DrawText: // TEXT dcolor Yellow; dsetsize 80; dwritefmt TP1, S1; dsetsize 200; dwritefmt TP2, S2; dcolor Black; dsetsize 50; dwritefmt TP3, S3; dwritefmt TP4, S4; dexit; // END // -------------------- // LABELS (FUNCTIONS) // -------------------- // ----------- // VARIABLES // ----------- // TIME float GpuSpawn; float Uptime; // TEXT string S1, '%f'; float Score; string S2, 'x%f'; float Mult string S3, 'Streak: %f'; float Streak string S4, 'Speed: %f'; float Speed // VECTERS // Text positions vec2f TP1, -0.60, -0.80; vec2f TP2, -0.25, -0.37; vec2f TP3, -0.60, 0.50; vec2f TP4, -0.60, 0.25; // Rect positions vec2f R1_1, -0.70, -0.85; vec2f R1_2, 0.75, -0.50; vec2f R2_1, -0.5, -0.45; vec2f R2_2, 0.5, 0.15; //vec2f R3_1, -0.75, -0.95; //vec2f R3_2, 0.75, -0.50; // COLOURS color Black, 0, 0, 0; color Yellow, 255, 255, 0; // SHAPES scorebackground: db -0.85, -0.75 // top left db -0.65, -0.95 db 0.75, -0.95 db 0.95, -0.7 db 0.9, 0.9 db -0.8, 0.8