Online Multiplayer: NX will refresh disk data while running

1

SP4CEBAR 2025-10-07 11:56 (Edited)

A while ago I experimented with sharing disks between devices (forum post), this is a continuation of it.

The code below will return the first byte stored in file 4 on each tap. The program (on IOS) can see modifications made to the byte in file 4 while it was running, this is great news as means that NX itself supports a "shared disk".

TOUCHSCREEN
FILES
DO
  IF TAP THEN
    LOAD 4, $A000
    PRINT PEEK($A000)
  END IF
LOOP


SP4CEBAR 2025-10-07 15:10 (Edited)

I made an online multiplayer demo. It is a 2-player turn-based guess the number game with a shared disk.


Timo 2025-10-08 06:48

Strange, I remember that the app only loads the disk file once and then caches it. But maybe it's like that in the desktop app. Anyway, some years passed since I programmed it, maybe I remember poorly ;)


Log in to reply.