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
#74
Hi, I have been testing a time parameters (18, 1030 in this case) and it shows a good (although not 100% right) results (C#):

while(true)
{
     string jsonMaze = SendWebRequest(urlGet); // getData
     // Calculate action (AI) ...
     SendWebRequest(urlSet + "&animate=" + dirs[moveDir]);  // 0, 90, 180, 270
     Timer.Sleep(18);                                           // fetch (50-60fps) from web page should take action in this interval
     SendWebRequest(urlSet + "&animate = -1");  // prevent additional fetch the same previous animation
     Timer.Sleep(1030);                                       // waiting end of animation
}
Reply


Messages In This Thread
RE: 3D maze in browser controlled by Small Basic - by stevantosic - 02-15-2025, 07:50 AM

Forum Jump:


Users browsing this thread: 16 Guest(s)