mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 05:28:31 +09:00
bias lighting (wut?) on playmov; gpu background is now 8bpp
This commit is contained in:
@@ -16,7 +16,7 @@ let o=[];for(let y=0;y<164;y++){
|
||||
let k=Math.round(r()*560/m)|0;
|
||||
o.push(k);graphics.setLineOffset(95+y,k*m);}
|
||||
// unhide screen
|
||||
graphics.setBackground(0,4,15);con.color_pair(239,255);
|
||||
graphics.setBackground(0,68,255);con.color_pair(239,255);
|
||||
for(let i=0;i<2560;i++)graphics.putSymbolAt(1+(i/80)|0,1+(i%80),0);
|
||||
// unscramble
|
||||
let tmr=0;let n=560*2;while(n>0){
|
||||
@@ -36,7 +36,7 @@ for(let i=0;i<2560;i++)graphics.putSymbolAt(1+(i/80)|0,1+(i%80),239);
|
||||
// draw logo
|
||||
for(let i=0;i<logo.length;i++){graphics.plotPixel(i%560,95+(i/560)|0,logo[i])}
|
||||
// cover up bottom part with text characters (!)
|
||||
graphics.setBackground(0,4,15);con.color_pair(14,255);
|
||||
graphics.setBackground(0,68,255);con.color_pair(14,255);
|
||||
for(let y=1;y<19;y++)for(let x=1;x<81;x++)graphics.putSymbolAt(y,x,32);
|
||||
for(let x=1;x<81;x++)graphics.putSymbolAt(19,x,220);
|
||||
for(let y=20;y<33;y++)for(let x=1;x<81;x++)graphics.putSymbolAt(y,x,219);
|
||||
|
||||
Reference in New Issue
Block a user