Commit Graph

557 Commits (ac6b44eb0ab844d280748e81ec69b2577489d834)

Author SHA1 Message Date
Dominik Madarász 449ebc6de2
use different target zoom 2022-09-14 06:57:24 +00:00
Dominik Madarász 77b98f71be
major optimisations and changes in logic 2022-09-14 06:45:01 +00:00
Dominik Madarász aacfe2cad4
show overlay on min zoom 2022-09-13 16:30:57 +00:00
Dominik Madarász b4d09018ab
perf improvements in systems 2022-09-13 16:24:43 +00:00
Dominik Madarász b4c62e0827
remove DrawTextExEco override, raylib already does what we need 2022-09-13 15:30:18 +00:00
Dominik Madarász 66a058674d
update platform layer (raylib) 2022-09-13 14:54:16 +00:00
Dominik Madarász 839fad077d
render world overlay on top 2022-09-13 13:56:03 +00:00
Dominik Madarász 04621adcd3
eliminate integer based rendering 2022-09-13 13:52:42 +00:00
Dominik Madarász 378d42a0aa
renderer: draw floating-point text 2022-09-13 12:07:40 +00:00
Dominik Madarász c20793d896
code: fix profiler collate not being called 2022-09-13 11:27:54 +00:00
Dominik Madarász 5f908771df
code: optimize streamer and entity packer 2022-09-13 11:25:08 +00:00
Dominik Madarász 05144764bd
various improvements + release build fix 2022-09-13 10:02:36 +00:00
Dominik Madarász 9f72b44cd0
update readme 2022-09-12 07:44:36 +00:00
Dominik Madarász a95606d21b
fix enum warn 2022-09-12 07:08:22 +00:00
Dominik Madarász 6ce2664d57
web tweaks 2022-09-12 07:00:47 +00:00
Dominik Madarász 356f88f3ba
script improvements 2022-09-12 06:54:59 +00:00
Dominik Madarász 1411fad9eb
improve zooming on web 2022-09-11 20:42:37 +00:00
Dominik Madarász 80df7758cc
hide exit button in web build 2022-09-11 20:29:25 +00:00
Dominik Madarász f97de43881
autofit page 2022-09-11 20:20:35 +00:00
Dominik Madarász f1ac78a461
web build scripts + qol fixes 2022-09-11 19:58:30 +00:00
Dominik Madarász 644fd23a0d
emscripten support 2022-09-11 17:42:06 +00:00
Dominik Madarász 04e257ec61 introduce entity spawndefs 2022-08-13 08:43:15 +02:00
Dominik Madarász 3b0c2e7f19 bulldozer mode 2022-08-11 12:41:36 +02:00
Dominik Madarász 2c3110b63e improve item dragging 2022-08-09 18:11:02 +02:00
Dominik Madarász 079819e8d1 improve mouse picking 2022-08-09 17:54:00 +02:00
Dominik Madarász ca2ded9554 inv: render held items on top 2022-08-09 17:32:58 +02:00
Dominik Madarász a2810b2a18 rend: improve sel item rendering 2022-08-09 17:17:12 +02:00
Dominik Madarász d0d69e7039 code: storage system and mouse picking 2022-08-09 16:46:23 +02:00
Dominik Madarász 4164e62a7b ui: improve inventory code 2022-08-08 13:57:03 +02:00
Dominik Madarász 68b57468a4 ecs: fix demo npc wake 2022-08-08 13:19:12 +02:00
Dominik Madarász 16001c24b9 ent: entity_set_position helper 2022-08-01 11:28:54 +02:00
Dominik Madarász c7d251eb44 pkt: action-based entity stream throttling 2022-08-01 11:19:52 +02:00
Dominik Madarász 28987c36d9 code: enable monitoring 2022-07-31 16:44:54 +02:00
Dominik Madarász 28c07c53c8 code: update flecs to v3 2022-07-31 16:34:47 +02:00
Dominik Madarász ffb8aa80a2 world: send data only to active viewers 2022-07-31 14:21:40 +02:00
Dominik Madarász 5fe4ed2ee8 pkt: log player entity creation info 2022-07-31 12:58:17 +02:00
Dominik Madarász 7b9f2a8de2 code: drop obsolete librg call 2022-07-31 12:58:00 +02:00
Dominik Madarász e655331950 network: fix client despawn 2022-07-31 12:30:41 +02:00
Dominik Madarász a2f76237f8 network: rework view_id 2022-07-31 12:24:31 +02:00
Dominik Madarász 3b40354054 code: fix warnings 2022-07-31 11:35:07 +02:00
Dominik Madarász 5fec9574c8 code: fix macro warning 2022-07-31 11:31:19 +02:00
Dominik Madarász bc88ca1670 game: fix exit on server 2022-07-31 11:30:01 +02:00
Dominik Madarász 5e44976039 ui: remove inv header 2022-07-31 11:21:41 +02:00
Dominik Madarász 6acd8d202a packets: rework encode func 2022-07-31 11:21:27 +02:00
Dominik Madarász df9c45468a code: add an ability to provide host conn details 2022-07-31 10:46:06 +02:00
Vladyslav Hrytsenko d8ae0b0d91 deps: update enet with experimental 2022-07-30 21:32:24 +03:00
Dominik Madarász 7019079020 Merge branch 'master' of github.com:zpl-c/eco2d 2022-07-30 20:28:38 +02:00
Dominik Madarász d15f6ee8ab net: fix client disconnect 2022-07-30 20:28:33 +02:00
Vladyslav Hrytsenko c0915ae648 Revert "code: updated enet dependency"
This reverts commit 947a6992cc.
2022-07-30 20:55:05 +03:00
Dominik Madarász e9dbbf279a Merge branch 'master' of github.com:zpl-c/eco2d 2022-07-30 19:54:20 +02:00
Dominik Madarász 49cd5ac416 code: small fixes 2022-07-30 19:54:16 +02:00
Vladyslav Hrytsenko 947a6992cc code: updated enet dependency 2022-07-30 20:13:13 +03:00
Vladyslav Hrytsenko 1713adb0a3 code: updated librg version 2022-07-30 20:08:27 +03:00
Vladyslav Hrytsenko 937cf4fd18 code: removed tailing lines 2022-07-30 15:11:00 +03:00
Dominik Madarász 80fbb030bd adapt 2D view on window resolution changes 2021-11-29 09:23:08 +01:00
Dominik Madarász cf173f3d50 general improvements and cleanup 2021-11-08 16:54:41 +01:00
Dominik Madarász 242fd9250b decrease anim framerat e 2021-11-07 15:23:12 +01:00
Dominik Madarász 63db7893b4 network stats + tweaks 2021-11-07 14:41:13 +01:00
Dominik Madarász 970334aa7a Fix tracker timing 2021-11-04 16:00:39 +01:00
Dominik Madarász 682b8f5d8f code cleanup and fixes 2021-11-04 15:43:23 +01:00
Dominik Madarász d85919855e animated tiles support 2021-11-04 13:34:15 +01:00
Dominik Madarász 890bc09d1f introduce item_id + cleanup 2021-11-03 19:09:19 +01:00
Dominik Madarász 331ee39672 introduce block_id 2021-11-03 19:04:34 +01:00
Dominik Madarász 16d2b41f3c raise block indexing to 16-bits! 2021-11-03 18:38:32 +01:00
Dominik Madarász 7ecff06ae8 limit block count at compile time 2021-11-03 18:21:10 +01:00
Dominik Madarász 5cf92444e2 validate worldgen data 2021-11-03 18:02:10 +01:00
Dominik Madarász 3ce8df35dc don't build over collidable/essential inner blocks 2021-11-03 17:48:56 +01:00
Dominik Madarász 797c23e8c5 don't replace foreign blocks 2021-11-03 17:17:48 +01:00
Dominik Madarász dcd5f0046a refund block if we replace the same ID 2021-11-03 17:16:35 +01:00
Dominik Madarász 51d60169b3 increase build range 2021-11-03 16:43:15 +01:00
Dominik Madarász 37cbaa4a3c Restrict item overdraw placement 2021-11-03 16:41:42 +01:00
Dominik Madarász 2695bbf32d add remarks for world editing 2021-11-03 16:33:25 +01:00
Dominik Madarász 9d6993d7b1 improve build mode 2021-11-03 16:29:45 +01:00
Dominik Madarász 428e59c69e check for non-item asset 2021-11-03 16:07:07 +01:00
Dominik Madarász f6bc4d3d44 update zpl and fix conveyor belt speed 2021-11-03 15:31:10 +01:00
Dominik Madarász 6405e59117 update zpl 2021-11-03 15:02:30 +01:00
Dominik Madarász 30f34d51e5 various improvements 2021-11-03 14:34:32 +01:00
Dominik Madarász 4ee2524773 build mode straight lines support 2021-11-02 19:14:54 +01:00
Dominik Madarász 42a58ef5fb directional build mode 2021-11-02 18:58:55 +01:00
Dominik Madarász 1a5a550512 improve worldgen + conveyor belts 2021-11-02 18:09:54 +01:00
Dominik Madarász 2130d85edf info: asset_setup.h for quick nav 2021-11-02 13:02:08 +01:00
Dominik Madarász 365b3e8ee3 rewrite block system 2021-11-02 12:49:03 +01:00
Dominik Madarász f8da96b968 make item system depend on assets 2021-11-02 11:48:32 +01:00
Dominik Madarász 9482b41fb9 keystate activators 2021-11-02 10:22:04 +01:00
Dominik Madarász 28c41baa93 Render outer block layer separately 2021-11-01 20:59:30 +01:00
Vladyslav Hrytsenko a7c060660e Merge branch 'master' of github.com:zpl-c/eco2d 2021-11-01 21:34:42 +02:00
Vladyslav Hrytsenko 7c3950cd11 code: updated vehicle steering system 2021-11-01 21:34:38 +02:00
Dominik Madarász dfce2db483 input: check for delta changes 2021-11-01 20:23:54 +01:00
Dominik Madarász 67ca6d4dba CRLF to LF 2021-11-01 19:55:13 +01:00
Vladyslav Hrytsenko 01eff09e49 code: added new steering behavior 2021-11-01 20:37:09 +02:00
Vladyslav Hrytsenko a7b5e0db8a code: commented out fullscreen 2021-11-01 20:36:49 +02:00
Vladyslav Hrytsenko f14f3cdaef code: changed line endings 2021-11-01 20:36:26 +02:00
Dominik Madarász 9fe2c68ef4 fixes 2021-11-01 19:21:06 +01:00
Vladyslav Hrytsenko fbf9129b8a code: fixed minor stuff 2021-11-01 20:20:07 +02:00
Dominik Madarász 028cdb34b2 temp raylib fixes 2021-11-01 19:00:35 +01:00
Dominik Madarász e18ff55518 build mode 2021-11-01 18:35:33 +01:00
Dominik Madarász c45f95348a Simplify input keystate send 2021-11-01 15:32:46 +01:00
Dominik Madarász 8ab803bb5f Expose chunk texture scale 2021-10-28 17:47:36 +02:00
Dominik Madarász bbc5856013 Fix V0 chunk tex rendering 2021-10-28 17:23:16 +02:00
Dominik Madarász 725486c1d0 Fix upside-down chunk tex 2021-10-28 17:03:02 +02:00
Dominik Madarász e99b21b11b Reduce chunk tex resolution 2021-10-28 16:59:00 +02:00
Dominik Madarász f47acae59b Small tweaks 2021-10-28 16:21:34 +02:00
Dominik Madarász 296857df71 Improve hashtable entry removal performance 2021-10-28 16:05:17 +02:00
Dominik Madarász a589845065 Improve overall motion + single-player now pushes out fast layer as fast as possible 2021-10-27 15:14:46 +02:00
Dominik Madarász a607515424 Make vehicles fully framerate independent 2021-10-27 14:32:52 +02:00
Dominik Madarász 4ca2dc4e96 Ensure our delta time is capped to avoid huge calculation errors 2021-10-27 11:31:42 +02:00
Dominik Madarász 7059e881fb Improve prediction calculations 2021-10-27 11:18:40 +02:00
Dominik Madarász e7f55985db Remove GC for OOB entities + perf improvements 2021-10-27 10:55:07 +02:00
Dominik Madarász ff9f483da1 Update flecs stdcpp threading api 2021-10-27 10:32:46 +02:00
Dominik Madarász 7d5c519e2f Lock FPS to 60 in replay mode 2021-10-27 02:42:54 +02:00
Dominik Madarász 01315fb75d Make camera zoom fps independent 2021-10-27 01:36:21 +02:00
Dominik Madarász 276f85dee8 Implement world time single-stepping 2021-10-27 01:28:18 +02:00
Dominik Madarász 4be5ee9b61 Enable prediction on SP 2021-10-27 00:32:40 +02:00
Dominik Madarász 6f57fb178a Ensure physics aren't tied to framerate 2021-10-27 00:22:54 +02:00
Dominik Madarász 16da0ad158 Update world_view.c 2021-09-20 12:57:30 +02:00
Dominik Madarász 9542324811 Fix chunk unload memory leak 2021-09-20 11:27:47 +02:00
Dominik Madarász 21ca700626 add support for message channeling 2021-09-09 10:29:22 +02:00
Dominik Madarász 347f85063e small UI adjustments 2021-09-09 09:54:02 +02:00
Dominik Madarász 98adee996c no item merging for now 2021-09-09 09:46:22 +02:00
Dominik Madarász 9ed12e35f6 don't enter 2 cars at once on overlap 2021-09-09 00:10:11 +02:00
Dominik Madarász 4449738580 various networking improvements 2021-09-08 18:53:50 +02:00
Dominik Madarász 1b0951057d Small world fixes 2021-09-08 17:34:30 +02:00
Dominik Madarász d35b4381ec Implement networking layer 2021-09-08 16:12:38 +02:00
Dominik Madarász 096bf8c706 many improvements for the upcoming networking support 2021-09-08 14:13:31 +02:00
Dominik Madarász 664aa09654 Add icemaker item spawn replay event 2021-09-08 12:04:35 +02:00
Dominik Madarász 8b437d53cd Add compat layer for v2 demos 2021-09-08 11:52:11 +02:00
Dominik Madarász 56b7b30684 retain steering wheel on exit 2021-08-30 20:05:43 +02:00
Dominik Madarász 6cfed15e8b improve chunk baking 2021-08-30 19:39:25 +02:00
Dominik Madarász b45ed4fa75 small changes 2021-08-30 18:14:35 +02:00
Dominik Madarász 32deb322db selected_item bugfix 2021-08-30 17:56:23 +02:00
Dominik Madarász 36232e1e20 inventory system 2021-08-30 17:50:05 +02:00
Dominik Madarász a8f357184f small tweak 2021-08-30 12:00:09 +02:00
Dominik Madarász 25e9b9e57e code: add 2nd world layer 2021-08-30 11:59:36 +02:00
Dominik Madarász 083b89abd3 further physics improvements 2021-08-29 17:56:58 +02:00
Dominik Madarász f804db82b7 Update platform_raylib.c 2021-08-29 16:20:00 +02:00
Dominik Madarász 936658056a rework vehicle driving model 2021-08-29 14:59:00 +02:00
Dominik Madarász 3cda4cc334 introduce collision bounciness 2021-08-29 13:48:54 +02:00
Dominik Madarász d81de3b63a debug drawing api + physics tweaks 2021-08-29 12:48:29 +02:00
Dominik Madarász 73e7575525 various things 2021-08-25 23:36:20 +02:00
Dominik Madarász 148ddcd2c0 code: updated flecs to 2.4.1 2021-08-15 18:32:11 +02:00
Dominik Madarász 2b891f1cb1 code: disable prediction for now 2021-08-12 02:31:07 +02:00
Dominik Madarász 0a6f2485a2 fix: small changes 2021-08-11 21:51:15 +02:00
Dominik Madarász 7c587faba6 code: make hybrid render mode 2021-08-11 21:26:44 +02:00
Dominik Madarász 49cd83fd6a 3d: small tweaks 2021-08-11 21:02:03 +02:00
Dominik Madarász 3bdaa7a921 code: use 2D renderer by default 2021-08-11 19:43:29 +02:00
Dominik Madarász 3b54750127 gfx: experimental 3d rendering 2021-08-11 19:38:24 +02:00
Dominik Madarász 76e4e81281 phys: improve movement 2021-08-11 18:19:10 +02:00
Dominik Madarász c5849da051 code: rewrite assertions 2021-08-11 15:49:44 +02:00
Dominik Madarász 5d7b275c87 fix: move conn status to platform 2021-08-11 15:01:24 +02:00
Dominik Madarász ac7030bf2b platform: improve draw 2021-08-11 14:59:29 +02:00
Dominik Madarász c1ab9a2faf code: additional platform rework 2021-08-11 14:23:40 +02:00
Dominik Madarász d0a31f78a5 cli: refactor renderer 2021-08-11 14:16:23 +02:00
Dominik Madarász 44673b5030 demo: ice rink test 2021-08-11 12:22:46 +02:00
Dominik Madarász 27bdc1f3a1 code: reenable demo replace block 2021-08-11 11:24:44 +02:00
Dominik Madarász ba345065bb code: fix ents on Vehicle UnSet 2021-08-11 10:54:52 +02:00
Dominik Madarász 9b829074d4 code: update flecs & rework vehicle enter/leave states 2021-08-11 10:45:23 +02:00
Dominik Madarász 275cdc65ab code: fix small replay store bug 2021-08-11 01:39:31 +02:00
Dominik Madarász 5e2ddb40d4 ui: fix load op for replay 2021-08-11 01:19:00 +02:00
Dominik Madarász 57c3be0773 blocks: randomize rotation 2021-08-11 01:12:28 +02:00
Dominik Madarász a1c6255b7d debug: improve conds 2021-08-11 01:06:12 +02:00
Dominik Madarász f74b66e7b4 code: various improvements 2021-08-11 00:02:11 +02:00
Dominik Madarász 401edb98c9 replay: remove temp actors 2021-08-10 21:18:40 +02:00
Dominik Madarász d887a0987d code: Improvements to the replay system 2021-08-10 20:31:05 +02:00
Dominik Madarász 3c46cca96d replay: add more debug features 2021-08-10 18:09:17 +02:00
Dominik Madarász 6274bb34b0 code: small tweaks 2021-08-10 17:42:23 +02:00
Dominik Madarász f56c45e195 code: demo record/playback feature 2021-08-10 17:21:25 +02:00
Dominik Madarász f7ee8d0f11 code: improve vehicle physics 2021-08-10 13:19:45 +02:00
Dominik Madarász ef2b6cd68e code: improve vehicle code 2021-08-09 21:04:23 +02:00
Dominik Madarász e00b8d7e5f code: add vehicle handling 2021-08-09 20:58:52 +02:00
Dominik Madarász d1016f68a0 code: add basic vehicle logic 2021-08-09 19:30:39 +02:00
Dominik Madarász 626457e1b9 world: access all components globally! 2021-08-09 17:18:34 +02:00
Dominik Madarász 55ad205441 pkt: PKT_KEEP_IF implementation 2021-08-09 16:33:46 +02:00
Dominik Madarász 83fa4b6daf sync: skip hp data for chunks 2021-08-09 15:59:50 +02:00
Dominik Madarász c28925cc07 pkt: fix conditional streaming 2021-08-09 15:57:56 +02:00
Dominik Madarász 999763f197 code: various bits and pieces 2021-08-09 15:35:47 +02:00
Dominik Madarász 420411ae4f chore: reorganize source files 2021-07-28 11:49:09 +02:00
Dominik Madarász 2370bd4ea0 game: health, pain and regen 2021-07-27 18:34:31 +02:00
Dominik Madarász 5212aedf92 world: add Classify component 2021-07-27 17:57:50 +02:00
Dominik Madarász a43360161c ecs: simplify access to components 2021-07-27 15:36:24 +02:00
Dominik Madarász 6b2f049704 camera: instant follow on the first entity 2021-07-27 15:01:17 +02:00
Dominik Madarász 934aaf565f ecs: remove name prefix 2021-07-27 14:51:42 +02:00
Dominik Madarász 498fa25e36 ecs: code reduction 2021-07-27 14:47:05 +02:00
Dominik Madarász 022f3870b8 ecs: refactor modules 2021-07-27 14:43:26 +02:00
Dominik Madarász 3e59e59881 demo: reduce code 2021-07-27 13:41:02 +02:00
Dominik Madarász 0cb52303ae world: rebake chunk tex on change 2021-07-27 13:30:43 +02:00
Dominik Madarász d0ff81b570 code: many improvements and fixes
Changelog:
- fixed world repetition bug caused by wrong indexing 🎉
- wall collisions
- tile-based drag movement multiplier
- various optimizations
- raised default NPC count to 10k
2021-07-26 21:06:49 +02:00
Dominik Madarász 99a65431d8 physics: handle entity collisions 2021-07-26 17:53:18 +02:00
Dominik Madarász 37dc992c2e video: flip chunk tex 2021-07-19 18:16:34 +02:00
Dominik Madarász 7977c60922 video: perform chunk baking on GPU side 2021-07-19 18:03:31 +02:00
Dominik Madarász ee0db9c8c1 world: fix chunk partitioning 2021-07-19 10:28:23 +02:00
Dominik Madarász 20ad88adf4 worldgen: improve noisy shaper 2021-07-19 09:56:15 +02:00
Dominik Madarász 513f05f18e worldgen: disable few features 2021-07-18 21:06:21 +02:00
Dominik Madarász a08ecdd9a2 Textures: finalize chunk stitching 2021-07-18 20:30:27 +02:00
Dominik Madarász ee794495e9 PKT: chunk block streaming + pkt enhancements 2021-07-18 13:23:59 +02:00
Dominik Madarász e056395f8f update zpl 2021-06-01 15:20:04 +02:00
Dominik Madarász 4ea2ba6188 move texed to its own repo 2021-05-19 11:57:49 +02:00
Dominik Madarász a059b9826b ui redesign + color aids 2021-05-18 09:19:01 +02:00
Dominik Madarász c7f7b123bb add tiling preview 2021-05-17 21:27:56 +02:00
Dominik Madarász 5c063fb0b7 ui changes 2021-05-17 21:10:12 +02:00
Vladyslav Hrytsenko 4431597590 code: fix for clang 2021-05-17 22:01:05 +03:00