A cut-down version...
control() is merely a series of KeyDown checks, and UpdateMap just draws a tilemap.
Repeat WaitEvent() Select EventID() '---------------------------------------------------------------------------------------------------- MENUS Case EVENT_MENUACTION Select EventData() Case 6 load() End Select '---------------------------------------------------------------------------------------------------- TOOLBAR Case EVENT_GADGETACTION If EventSource()=toolbar Select EventData() Case 0 Print "test" End Select EndIf End Select '---------------------------------------------------------------------------------------------------- CODE LOOP SetGraphics CanvasGraphics(canvas) Cls control() update_map() Flip If KeyHit(KEY_ESCAPE) End EndIf Until EventID () = EVENT_WINDOWCLOSE
control() is merely a series of KeyDown checks, and UpdateMap just draws a tilemap.