pixel...@gmail.com
unread,Oct 31, 2025, 12:07:50 PM (11 days ago) Oct 31Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Medley Interlisp core
Good Morning,
So for my Game Jam entry I need to store the game's objects so they can be updated as the game runs in the associated Window. We'll call this grab bag of game elements a "game state" for now.
One thing I did last time was to add the game state into the game Window itself using a new user property.
Then, for the window's left mouse event, I bind a (GAME.UPDATE W) function that receives the window as a parameter (since the Window events seem to get the window as a parameter), digs into the game state from that window's property list and updates it there then redraws.
This way when a player clicks in the window, the game updates itself and does all the logic and redraws the screen elements needing updating.
Is this an acceptable design?