Skip to content

Commit

Permalink
Neo6502: sample refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zbyti committed Apr 9, 2024
1 parent e58caa2 commit 03443db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions samples/neo6502/bubbleuniverse/bubbleuniverse.pas
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
program bubbleuniverse;
program universe;

//----------------------------------------------------------

uses crt, neo6502;
uses crt, neo6502; // neo6502math;

//----------------------------------------------------------

Expand Down Expand Up @@ -40,7 +40,7 @@
// prepare palette
for i := 0 to n do
for j := 0 to n do begin
c:=((i div 14) shl 4) or (j div 14);
c := ((i div 14) shl 4) or (j div 14);
NeoSetPalette(c, i, j, 99);
col[i,j] := c;
end;
Expand All @@ -60,11 +60,10 @@
a := u * s;
b := v * s;
NeoWritePixel(Trunc(a) + 160, Trunc(b) + 120 , col[i,j]);
//NeoWritePixel(Round(a) + 160, Round(b) + 120 , col[i,j]);
end;
time2 := NeoGetTimer;

NeoSetTextColor(16, 15);
GotoXY(1,1); write((time2 - time1) / 100);
repeat until false;
end.
end.

0 comments on commit 03443db

Please sign in to comment.