Commit Graph

43 Commits (38b75c212b140f23cff8b5f4ff2ad73e3315a922)

Author SHA1 Message Date
Nicole Collings 38b75c212b Synchronize block interaction callbacks, wieldlists, etc. Breaking broke 2020-07-28 14:11:11 -07:00
Nicole Collings e45baf8901 Remove exit(1)s, fix main menu error handler. 2020-07-26 18:21:33 -07:00
Nicole Collings ca3f99fdc7 Tweak Game class, rename to Subgame class, refactor more of the lua API. 2020-07-25 20:19:18 -07:00
Nicole Collings 3de0c561e2 Generalize Game class for use with Lua Api Modules
In the future, I would like to split item and block defs in two arrays,
and put all definitions inside a `defs` class.
2020-07-25 11:55:48 -07:00
Nicole Collings a5e57716ee Rewrite inventory networking, player networking, tools.
+ Made wield and hand lists.
+ Made tool props & block defenses.
+ Crazyblocks mod to test various API features.
2020-07-21 19:33:26 -07:00
Nicole Collings 2380c7ea31 Add a mutex to Chunk, safeguard all existing reads/writes.
* Clean up more imports.
* Create FileManipulator class.
2020-07-06 14:00:46 -07:00
Nicole Collings 72d0b8d697 Optimize several imports 2020-06-24 16:35:01 -07:00
Nicole Collings b50732ec5e Many improvements with lighting, gfx, and stability
- Add curvature shader effect to blocks (not entities yetTM)
- Make fromStr with an empty string return Air instead of Invalid
- Make the player start with an empty hand instead of with stone
- Update chunks on lighting changes!
- Fix dirty chunk rendering!
- Fix segfault when getting non-existent inventory list.
2020-05-13 20:43:31 -07:00
Nicole Collings b9b3db77fd Fix client-side segfault with uninitialized values. 2020-04-16 22:59:30 -07:00
Nicole Collings 4febca7ef8 Lua Defined structures - WIP, New UI Library, move Base from mods~
Refactor GUIBuilder and MenuSandbox
Added outlined textures
2020-03-25 18:27:05 -07:00
Nicole Collings af9c38abf3 * Add double-press space fly toggle
* Clean GuiComponent interactions
2020-03-04 19:20:44 -08:00
Nicole Collings 24991f4590 Add ability to parent entity rotations, WIP. 2020-03-03 21:45:22 -08:00
Nicole Collings 3093d53ea2 Server-side inventories can be sent to the client for viewing. 2020-02-27 17:23:42 -08:00
Nicole Collings 6b4c866ba7 Fix Codacy issues 2020-02-26 13:42:15 -08:00
Nicole Collings 228e0e4d30 Create server side inventories, callbacks, seperate class & userdatas
* Create LocalInventoryRefs - unfinished
* Create WATCH_INV and UNWATCH_INV packet types
* Add player_join, player_connect, and player_disconnect callbacks
* Begin networked inventory support
2020-02-25 15:14:07 -08:00
Nicole Collings a73f5d3030 Made LocalDimension delete distant chunks. Still a mem leak somewhere.
* Cleaned up some imports
* Reorganized some files
2020-02-20 11:23:12 -08:00
Nicole Collings 9c48fb694d Create ClientModHandler, rename Local/ServerDefs to Client/ServerGame 2020-02-19 15:55:48 -08:00
Nicole Collings 99d26ed71f TODOFix: Un-hardcode the flying keybind 2020-02-01 16:09:50 -08:00
Nicole Collings fcb46c18e6 Max Stack Size def property
* Index inventories in Lua by 1
2019-12-19 22:55:34 -08:00
Nicole Collings 6830c4adc4 Lua Inventory API
* Split inventory mod into zeus:inventory
* Redo inventory textures
* Add more textures and items to zeus:materials
* Convert zepha.is_server() to zepha.server & zepha.client bools
2019-12-17 17:26:48 -08:00
Nicole Collings 5cf3569629 Inventory stacking, splitting, and placing 2019-12-15 16:51:41 -08:00
Nicole Collings 8167bc4c85 Inventory manipulation 2019-12-15 15:32:35 -08:00
Nicole Collings 3273dcd31b Attempt to get click callbacks on GameGui, not working. 2019-12-13 02:27:52 -08:00
Nicole Collings 270f160164 Refactor Window, Renderer, shaders to clean up code. 2019-12-13 01:59:42 -08:00
Nicole Collings 851de85e70 Block collision boxes, Add Step-up functionality to Collidable
* Tweak player speed.
* Make Invalid display.
* Fix some mod bugs.
2019-12-09 21:19:02 -08:00
Nicole Collings 737a7da74f Make Dropped Items zoop into player when theyr're close enough.
* Set loadfile to nil
2019-11-12 01:15:06 -08:00
Nicole Collings 5831977790 Support text and inventory component types in GameGui. Clean up parsing.
* GameGUI Support resizing.
* Bind player.close_menu function.
* Remove cShowMenu and cHideMenu
2019-11-04 20:26:50 -08:00
Nicole Collings ae286f84eb New inventory format and inventory parsing algorithm in GameGui. 2019-11-04 00:43:12 -08:00
Nicole Collings ba3770aa21 Clean up Player Class some more, Fix Wireframe, new PointedThing class.
* Refactor PointedThing class to be cleaner and support pointing at nil.
* Convert Dir into an enum class
2019-10-29 20:06:55 -07:00
Nicole Collings 8272aac9c1 GUIInventoryItems and GUIInventoryLists 2019-10-29 19:21:50 -07:00
Nicole Collings 2fd5d7d140 Abstract Player collision logic into Collidable class.
* Optimize movement code and clean up Player logic.
* Fix zeus:default:dropped_item display_object
2019-10-29 00:31:00 -07:00
Nicole Collings c48f0a4427 Player set_selected_block property.
* Tweak grass sway perlin noise.
2019-10-27 19:37:11 -07:00
Nicole Collings 2a99b7c6c9 Give Player control over GameGui, unlock mouse when in menu. 2019-10-24 20:16:39 -07:00
Nicole Collings eaf379faa8 LuaPlayer Usertype & Bindings 2019-10-23 23:34:30 -07:00
Nicole Collings 7b9c2ab563 Replace ALL include guards with #pragma once 2019-08-24 17:39:35 -07:00
aurailus eb66f9d3e6 Create a new series of classes to store block definitions on the server.
* Added ServerBlockAtlas class
* Added ServerBlockDef class
* Added ServerBlockModel class
* Added ServerMeshPart class
* Added ServerDefs class
2019-06-10 23:53:24 -07:00
aurailus be62a302c9 Particles + Optimization
* Added Particles.
* Used Valgrind to identify and remove a few memory leaks.
2019-05-16 16:29:46 -07:00
aurailus 2e07d9b50d Placing Blocks!
* Lower terrain sampling density
* Player "model"s
* Fix updateRightMouse function on InputManager
2019-05-15 20:35:26 -07:00
aurailus 98a85c76df New Block Damaging Functionality, Chunk size = 16
* Re-enable Atlas Tex
* Rename BlockModelEntity to BlockCrackEntity
* Disable Player Crosshair
* Fix isMousePressed function in InputManager
* Clean LocalWorld update function
* Moved block break code from player to LocalWorld
* Reduced Chunk Size back to 16
2019-05-14 12:05:54 -07:00
aurailus bd777c2e08 Finished Texture Atlas deletion.
* Increase Texture Atlas size
* Improve Terrain Generation
* Block Break persistence
* Increase Chunk render distance
2019-05-01 19:57:50 -07:00
aurailus 20a9eaa298 Generate crack textures dynamically on the texture atlas,
Note: Atlas does not discard unused textures yet.
2019-05-01 14:49:39 -07:00
aurailus d83e0d5f7e LocalWorld optimization 2019-04-18 20:11:34 -07:00
aurailus ebac3106b5 Complete Reorganization of file tree
* Merged ArrayTrans3D with VecUtils
* Add crack textures
2019-04-18 17:03:52 -07:00