Skip to content

u/NickAMD

In this archive from Aug 2018 to Nov 2023

1
posts
13
comments
0
media
43
score

Thank you for the response!

Let’s say my game state can be described with a dictionary containing the coordinates of all players: {x_1: 10, y_1: 15, x_2: 3, y_2:: 13}

The problem is how do I store that dictionary so that player 1 / 2 can move around and have their clients receive the dictionary to render the images on screen.

With mySQL I know how to do it by just creating a table and querying it / modifying it when a player moves.

But without SQL, how do I use just local memory?

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.