Esta escritura simple funciona correctamente en el Windows y Linux. Esto muestra una flecha que se mueve a través de la pantalla.
Esto no funciona correctamente en el PS2. La flecha permanece estática y no se mueve. ¿Por qué?
English:
Why does this script not work on the PS2?
This simple script functions correctly on Windows and Linux. It shows an arrow moving across the screen.
It does not function properly on the PS2. The arrow remains static and does not move. Why?
// On PC, it shows arrow moving across the screen
// On PS2, the arrow does not move. Why?
import "mod_text";
import "mod_grproc";
import "mod_video";
import "mod_map";
import "mod_screen";
import "mod_timers";
import "mod_sys";
import "mod_proc";
import "mod_key";
import "mod_draw";
IMPORT "mod_joy";
IMPORT "mod_time";
global
int myarrow;
end
process main()
begin
set_mode(320,240,32);
myarrow = load_png("arrow.png");
dpadarrow(100,100);
repeat
frame;
until ( key(_esc) )
let_me_alone();
end
PROCESS dpadarrow(int x, int y)
begin
graph = myarrow;
loop
if ( x < 320 ) x = x + 2; end
if ( x > 319 ) x = 0; end
frame;
end //loop
end