We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3D maze in browser controlled by Small Basic
#21
Hi AB,

This is harder than I thought it would be, mainly due to the latency in communication, which I guess is a real issue for physical control systems.

The server just stores the current state for each user, and only resets everything when it hasn't been updated for over 60 seconds.  Since the browser is continually updating to the server, you would bave to close browser and stop SB sending commands for 1 munute to reset everything.

Or you could just send the command below when you close SB or just run it from another program at any point.

Code:
LDNetwork.SendWebRequest("https://litdev.uk/apps/maze3D/maze3D.php?action=set&move=0&left=0&right=0")

I will probably reduce the timeout to 1 sec anyway.

EDIT

Timeout updated to 1 sec.

I do have a SB code that does solve the maze, but its pretty slow.  I can post the code or leave it just now if you are having fun working on it.
[-] The following 1 user Likes litdev's post:
  • AbsoluteBeginner
Reply


Messages In This Thread
RE: 3D maze in browser controlled by Small Basic - by litdev - 02-01-2025, 09:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)