0 Members and 1 Guest are viewing this topic.
How would you go about allowing moving objects on the screen with the interrupt running? Would you have to somehow sync the refresh rate with the amount of frames? (Sorry if I worded that incorrectly)
:.AXEGRAY::ClrDrawrr:Rect(48,0,48,64):Rect(24,0,24,64)r:Rect(72,0,24,64)r::1→G:0→H:9→S:0→T:FnInt(DG,0):Fix 0:Fix 5::While 1:If getKey(4):If T>(T+256→T):S+1→S:End:End:If getKey(3):T+1→T:If T=0:S+1→S:End:End:If getKey(1):If T<(T-256→T):S-1→S:End:End:If getKey(2):T-1→T:If T=EFFFF:S-1→S:End:End:Text(0,0,S►Hex):Text(16,0,T►Hex):Pause 100:EndIf getKey(15):LnReg :Fix 4:Return::Lbl DG:G-1→G:If G=0:DispGraphrr:If H<(H+T→H):G+1→G:End:G+S→G:End:Return
How would you go about allowing moving objects on the screen with the interrupt running?
There is almost absolutely no chance that the interrupt occurs between erase and draw
You could call a piece of code each time the screen is drawn, but you have to keep your code short to avoid interrupting on itself.
Also I've compared 3 vs 4 levels and 3 looks clean when scrolling while 4 looks really blurry. Maybe it's because I can't calibrate it correctly.