-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTITLE.MIN.JS
More file actions
1 lines (1 loc) · 1.23 KB
/
Copy pathTITLE.MIN.JS
File metadata and controls
1 lines (1 loc) · 1.23 KB
1
(function(t){let o=0;function n(){h.setColor(0).fillRect(130,238,350,270).setColor(3).drawRect(132,240,348,268),h.setFont("Monofonto18").setFontAlign(-1,0).drawString("<",144,254).setFontAlign(1,0).drawString(">",336,254).setFont("Monofonto23").setFontAlign(0,0).drawString(0===o?"Random Map":"Map "+(o<10?"0"+o:o),240,255)}function e(e){if(0===e)return Pip.audioStart("HOLO/RADROACH_RACES/BUGLE.WAV"),t.go(t.scenes.RACE,{mapId:o}),void 0;o=(o+e+21)%21,Pip.audioStart("HOLO/RADROACH_RACES/FLAP.WAV"),n(),h.flip(),Pip.lastFlip=getTime()}Pip.audioStart("HOLO/RADROACH_RACES/FLAP.WAV");let i=E.openFile("HOLO/RADROACH_RACES/TITLEIMG.BIN","r"),r=new Uint8Array(h.buffer),A=r.length,l=i.read(256);for(;l;)A-=l.length,r.set(l,A),l=i.read(256);return i.close(),h.flip(),h.setFont("Monofonto14").setFontAlign(-1,0).setColor(1).drawString("Art by",10,283).drawString("The Nuka Lounge",12,298),h.setFont("Monofonto14").setFontAlign(0,-1).setColor(2).drawString("v2.2.1",444,20),n(),h.setFont("Monofonto14").setFontAlign(0,-1).setColor(3).drawString("SELECT A MAP, PRESS LEFT WHEEL TO RACE!",243,290),h.flip(),Pip.lastFlip=getTime(),Pip.onExclusive("knob1",e),Pip.onExclusive("knob2",e),{remove:function(){Pip.removeListener("knob1",e),Pip.removeListener("knob2",e)}}});