I recoded the RagnarΦkkr to Java language from assembler source code written more than 60,000 lines. :D
This program runs on Java. Required to download and install of Java.
(See ORACLE Java Download)
Ragna.java | Main Entry | |
Main.java | Game Main | |
Vram.java | Vram Emuration |
Sample //Main Loop contains precess and wait sync. main_loop() { do { calc(); draw(); vsync_wait(); if ( menu button ? ) { menu_loop(); } } while (1); } //Sub Loop contains precess and wait sync too. menu_loop() { do { calc(); draw(); vsync_wait(); if ( cancel button ? ) { return; } } while (1); } //Wait _notify() signal of Java Main Entry. synchronized void vsync_wait() { try { wait(); } catch( InterruptedException e ) {} } The "main_loop" of retro program replaced to Java thread program.
16 colors only used.