Commit Graph

219 Commits

Author SHA1 Message Date
Pascal Abresch 6a6723ea68 drawing lua: use rest division 2022-06-15 21:43:39 +02:00
Pascal Abresch dd180d0a4e precise cursor tracing 2022-05-23 20:44:42 +02:00
Pascal Abresch da55cacd04 try to make camera more lenient 2022-05-23 20:43:55 +02:00
Pascal Abresch e82d3417da bug fix 2022-02-25 22:03:45 +01:00
Pascal Abresch 81b722ce11 physics: cleanup 2022-02-25 21:53:51 +01:00
Pascal Abresch 62fdb9c8e7 network: simplify a bit 2022-02-25 21:53:28 +01:00
Pascal Abresch 740797d0c8 fix color_push 2022-02-25 21:53:07 +01:00
Pascal Abresch a3a257582f try to improve memory use a bit 2022-02-25 21:39:14 +01:00
Pascal Abresch 620a7c1153 Performance Improvements of the network stack
more like, the network was perfectly fine
just my code was only handeling one packet per frame
ugh :(
2022-02-23 16:59:44 +01:00
Pascal Abresch 8e7e527d0f remove network thread 2022-02-21 20:09:41 +01:00
Pascal Abresch 0e0c95e55b allow bg to be turned off 2022-02-20 18:57:12 +01:00
Pascal Abresch 0e36ab78ca fix fullscreen 2022-02-20 18:56:59 +01:00
Pascal Abresch 7969932f88 fix previous commit 2022-02-18 23:36:37 +01:00
Pascal Abresch a07d9dd8c0 make layout assettions disabled for sim 2022-02-18 23:32:34 +01:00
Pascal Abresch edc03d4aa7 test 2022-02-18 23:24:21 +01:00
Pascal Abresch b8674702a1 network color 2022-02-17 12:19:51 +01:00
Pascal Abresch b3ca80712c add color picker 2022-02-16 19:24:47 +01:00
Pascal Abresch 2f094dc004 try to fix a crash 2022-01-10 21:51:46 +01:00
Pascal Abresch 388b845b86 add preview 2022-01-09 14:58:33 +01:00
Pascal Abresch 0a2a5544c7 move bg layer treatment to rendering 2022-01-09 10:47:55 +01:00
Pascal Abresch 66d695ea36 move some utils to server 2022-01-09 10:47:12 +01:00
Pascal Abresch 9cfd726ba2 initialize flying to false 2022-01-09 10:20:54 +01:00
Pascal Abresch 0e7569765d Add flying networking 2022-01-09 10:20:38 +01:00
Pascal Abresch e66591980c add flying networking 2022-01-09 10:20:22 +01:00
Pascal Abresch 15527aa39d disable debug drawing 2022-01-09 10:19:58 +01:00
Pascal Abresch bad6f145d8 restore a physics thing 2022-01-08 23:02:26 +01:00
Pascal Abresch 17099d8783 fix crash 2022-01-08 22:57:59 +01:00
Pascal Abresch e88acb0b9e minor physics fix 2022-01-08 22:55:40 +01:00
Pascal Abresch d480d49ca7 enable debug print 2022-01-08 22:29:08 +01:00
Pascal Abresch 147bdd4828 add join leave entries 2022-01-08 21:50:45 +01:00
Pascal Abresch 76d57b71eb add server chat messages 2022-01-08 21:45:49 +01:00
Pascal Abresch 81d1c5441a diconnect on quit 2022-01-08 21:40:00 +01:00
Pascal Abresch 2797c60482 make flying ~verticaly~ AND ~horizontally~ possible AT THE SAME TIME :D 2022-01-08 21:31:09 +01:00
Pascal Abresch 99a15dd4d8 "fix" Chat 2022-01-08 21:15:39 +01:00
Pascal Abresch f6dc32eb75 add chat 2022-01-08 20:59:13 +01:00
Pascal Abresch 131f14a256 add chat support to network 2022-01-08 20:58:41 +01:00
Pascal Abresch 924e7ea584 add layout.rotate 2022-01-08 20:58:19 +01:00
Pascal Abresch 1c9b39d117 add player name 2022-01-08 17:33:18 +01:00
Pascal Abresch 779835e758 disable layout debug print for now 2022-01-08 17:32:55 +01:00
Pascal Abresch 61f0ffb006 draw player label 2022-01-08 17:32:33 +01:00
Pascal Abresch a028bad639 add help drawer 2022-01-08 16:05:13 +01:00
Pascal Abresch 2954b26738 update default port 2022-01-08 12:08:18 +01:00
Pascal Abresch d678407878 cut down on network spam a bit :) 2022-01-08 12:00:31 +01:00
Pascal Abresch 90d6bdb8ea update UI to use hashes of textures 2022-01-07 23:22:38 +01:00
Pascal Abresch c387cb8623 add network support to drawing 2022-01-07 23:20:55 +01:00
Pascal Abresch 26b73a8d46 add texture array to init, make nw crashes fatal 2022-01-07 23:19:07 +01:00
Pascal Abresch 2fbacc61dd remove some debug print 2022-01-07 23:17:11 +01:00
Pascal Abresch b12a36dfb2 fix layout drawHash 2022-01-07 23:16:57 +01:00
Pascal Abresch 61460b3088 draw hashes from network 2022-01-07 23:16:24 +01:00
Pascal Abresch 4ed59fcc31 layout: add layout.drawhash 2022-01-04 20:25:16 +01:00
Pascal Abresch 7a30e35a40 add physics sync 2022-01-03 18:59:16 +01:00
Pascal Abresch d18bb45eeb add some sanity checks to physics 2022-01-02 21:30:04 +01:00
Pascal Abresch 9d1c8f5555 simplify NewPlayer 2022-01-02 21:29:37 +01:00
Pascal Abresch 36d9bf1406 nwthread: adjust for clientid parsing 2022-01-02 21:28:27 +01:00
Pascal Abresch 3b4b02d88d adjust to new api; sanity check for drawing players 2022-01-02 21:27:14 +01:00
Pascal Abresch 7c1c8ace8d fix movement packets, add join code 2022-01-02 21:26:40 +01:00
Pascal Abresch abad3d5874 update init, draw all players 2022-01-01 09:15:57 +01:00
Pascal Abresch 7c926f214d fixed network 2022-01-01 09:14:54 +01:00
Pascal Abresch 9fec201880 start syncing movement 2022-01-01 09:13:54 +01:00
Pascal Abresch 7f9a3db46a fix player.lua 2022-01-01 09:13:26 +01:00
Pascal Abresch ad6986123a network code 2022-01-01 00:07:42 +01:00
Pascal Abresch a42e0814b7 move player code out; update init for multiplayer 2021-12-31 23:14:22 +01:00
Pascal Abresch 99ab455922 add some more networking code 2021-12-31 23:12:53 +01:00
Pascal Abresch 6a0689f2d6 physics: update for multiplayer 2021-12-31 23:11:31 +01:00
Pascal Abresch af35fd67c9 UI: move buffer inline; camera: update for multiplayer 2021-12-31 23:11:13 +01:00
Pascal Abresch 9d1bbcea3d add mouse to drawing.lua 2021-12-31 21:59:41 +01:00
Pascal Abresch 384e7f82f6 change clientid request 2021-12-31 19:40:50 +01:00
Pascal Abresch f6ab2046f4 Make main thread send network datagrams instead 2021-12-31 19:05:07 +01:00
Pascal Abresch 10b4f13516 improve debug print 2021-12-12 18:34:14 +01:00
Pascal Abresch eee424567a update UI 2021-12-12 13:13:14 +01:00
Pascal Abresch 145a2966d6 Add color to rect, more logging for layout 2021-12-12 13:13:00 +01:00
Pascal Abresch 5190b015d8 fix default texture 2021-12-12 11:47:10 +01:00
Pascal Abresch 4c15ae04ce Fix ui selected item showing up wrongly 2021-11-28 14:08:56 +01:00
Pascal Abresch d9e1a6819e use texture dimensions for their native grid 2021-11-28 12:30:41 +01:00
Pascal Abresch 57cb0c2f4a fix fullscreen shortcut 2021-11-28 12:30:16 +01:00
Pascal Abresch 539a3b4278 move camera keypresses 2021-11-28 09:56:01 +01:00
Pascal Abresch 72fa7dc65c rewrite draw loop a bit 2021-11-28 09:55:25 +01:00
Pascal Abresch 955202205b rework network a bit 2021-11-25 20:07:26 +01:00
Pascal Abresch 9decd0e6a8 reneable network 2021-11-25 20:07:05 +01:00
Pascal Abresch 9db8d57229 Find more textures, prepare for tabview 2021-11-25 20:05:53 +01:00
Pascal Abresch b7a9f80454 add ascii functions to utils 2021-11-25 20:05:11 +01:00
Pascal Abresch cfbe7f057f add layout sim mode, add overlayRect 2021-11-25 20:02:42 +01:00
Pascal Abresch 01e9a572c7 Fix critical vulnerability 2021-11-20 16:33:16 +01:00
Pascal Abresch 78254d5ec0 Add help text 2021-11-15 19:32:46 +01:00
Pascal Abresch 2ac9c3cfd9 Move ui
remove dump function (accidentally checked in)
2021-11-15 19:03:25 +01:00
Pascal Abresch 8d9da31f19 make start flying set speed for falling to 0 2021-11-15 18:40:31 +01:00
Pascal Abresch 567c05d0a6 remove debug print 2021-11-15 18:31:46 +01:00
Pascal Abresch dad4c94cd8 remove debug print; code style fix 2021-11-15 18:31:31 +01:00
Pascal Abresch a1522f023c layout: rework assertions a bit 2021-11-15 18:30:18 +01:00
Pascal Abresch d85fcea6db rework flying mode; remove goto 2021-11-15 18:29:52 +01:00
Pascal Abresch 8bfec2ac09 properly fall back to love2d font 2021-11-15 16:40:52 +01:00
Pascal Abresch bbcf06dd1f add fullscreen shortcut 2021-11-14 21:48:24 +01:00
Pascal Abresch 931a90fdee fix UI keeping button hitareas around 2021-11-14 21:48:02 +01:00
Pascal Abresch a1d0ae3aea Add block selector UI 2021-11-13 20:56:43 +01:00
Pascal Abresch 288f021a83 add more layout functions 2021-11-13 20:56:18 +01:00
Pascal Abresch 162f3aebbd move camera to the left for UI 2021-11-13 20:55:34 +01:00
Pascal Abresch d5c1621e00 add number or nil assertion 2021-11-13 20:55:14 +01:00
Pascal Abresch cbf5909dba Fall back to love2d font when needed 2021-11-13 14:01:14 +01:00
Pascal Abresch 382f9d7fca add ui layout lib 2021-11-11 21:20:37 +01:00
Pascal Abresch 44fcf9ba71 exclude grass for now... 2021-11-11 21:20:15 +01:00