Commit graph

18 commits

Author SHA1 Message Date
Joscha
aca387cf05 Save chunks in db
One of the changes introduced for this is that multiple chunks and
diffs are now represented by dicts, not lists.
2017-04-16 17:02:32 +00:00
Joscha
9e5b5f874a Start work on server-side saving worlds
This commit includes a a few more changes because I'm too lazy to
clean them up:
 - fix chunk modification times
 - improve command line arguments
 - load multiple chunks at once
2017-04-16 13:52:39 +00:00
Joscha
4822cab0fc Update chunk logic
Correctly store time of last modification
Use "load" to get a chunk (or load/create one if it isn't loaded)
2017-04-15 11:59:58 +00:00
Joscha
d68d32ff2f Rename "changes" to "diffs" in most places 2017-04-14 11:09:50 +00:00
Joscha
3cb21c02bc Reverse illegitimate changes on server 2017-04-14 09:41:02 +00:00
Joscha
7bec555e3b Clean up server code 2017-04-14 08:22:01 +00:00
Joscha
320dd16889 Add server
This is a first try at connecting multiple clients using a server.
The commit includes a lot of debugging messages.
I will hopefully clean up the server and some of the client code.
2017-04-13 18:10:37 +00:00
Joscha
8c5d5bc2cb Add alternating color mode (F3) 2017-04-10 16:08:12 +00:00
Joscha
e3b599eee1 Handle saving changes separate from cleaning up 2017-04-10 00:04:22 +00:00
Joscha
23da1ea5d9 Implement parts of clientchunkpool and fix softlock in the process 2017-04-09 10:37:57 +00:00
Joscha
c5af7c2480 Unload chunks that fall outside a certain radius 2017-04-08 17:05:09 +00:00
Joscha
c364faf8ff Clean up ChunkPool 2017-04-08 15:48:14 +00:00
Joscha
68c50f894b Add ChunkMap for better debugging 2017-04-07 19:35:05 +00:00
Joscha
42d72422c6 Move down one line when enter is pressed, use ESC to quit 2017-04-06 22:11:39 +00:00
Joscha
704ff9b3d1 Delete characters with backspace 2017-04-06 13:08:18 +00:00
Joscha
38ab48d6f8 Add ability to write on map
Todo:
 - make ChunkDiffs contain deletions
 - inserting a " " counts as deletion on chunk level
 - allow for more unicode characters! ^^ (only harmless ones though - no newline or control characters etc.)
2017-04-06 12:53:20 +00:00
Joscha
7521d7b4ab Make map display empty squares 2017-04-05 19:44:21 +00:00
Joscha
59c3f6e34e Plan out project structure 2017-04-04 20:20:48 +00:00