362 Commits

Author SHA1 Message Date
iProgramInCpp
d3ef629471 Big leap for key rebinding and crossplatform-ness. 2023-08-22 17:25:24 +03:00
iProgramInCpp
f3fc78e151 * Slight revamp of the options keymappings menu. 2023-08-22 13:30:13 +03:00
iProgramInCpp
b129fd7434 Add mccpp.vcxproj.user, so the working dir is safe 2023-08-21 11:12:20 +03:00
Brent
74038329f1 Move Windows projects into platforms folders (#65)
Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
2023-08-21 10:31:20 +03:00
iProgramInCpp
01e13dcef7 * Remove inappropriate debug code. 2023-08-20 22:35:26 +03:00
Vruk
9c2a5c43c8 Added Hide GUI Keybind (#62)
F1 to hide gui
Also renamed the field for hiding the GUI to m_bDontRenderGui

I would have named it m_bRenderGui and flipped the default values and checks but I assumed that changing the least amount of stuff would be desired.
2023-08-20 21:19:24 +03:00
Alexander Argentakis
a6d05eb6f3 Added field names for Timer (#64)
* Update Timer.hpp

* Update Timer.cpp

* Fixed member names & replaced all references
2023-08-20 21:19:04 +03:00
iProgramInCpp
a35318fc7f one last horrible bug 2023-08-20 02:03:13 +03:00
iProgramInCpp
4a7be6918f nother horrible bug fix 2023-08-20 01:58:51 +03:00
iProgramInCpp
6719b151ab * Fix horrible bug with the mouse input code. 2023-08-20 01:56:51 +03:00
iProgramInCpp
f255209c84 * Fix VS2010 project. 2023-08-19 16:45:11 +03:00
iProgramInCpp
82770d3436 * Small clean ups to the project. 2023-08-19 16:12:32 +03:00
Brent Da Mage
d5ee7bfc08 Cleaned Up AppPlatform & Input Classes
* Cleaned up AppPlatform classes
* Documented & improved Keyboard & Mouse classes
* Improved input-handling code in the Windows & SDL main.cpp files
2023-08-19 15:57:50 +03:00
iProgramInCpp
e731fefbea Think it's ready to pull now... 2023-08-19 15:54:27 +03:00
Brent Da Mage
850e6dfd0b Fix malformed comments in build-wasm.bat 2023-08-19 15:53:17 +03:00
iProgramInCpp
9a238bf77a It's fixed. Sorry 2023-08-19 10:15:46 +03:00
iProgramInCpp
30f35ef724 More updates to fix stuff... 2023-08-19 10:09:49 +03:00
iProgramInCpp
c01a627aee * Update the CMakeLists to reflect the changes 2023-08-19 10:07:10 +03:00
iProgramInCpp
919e4d8625 * Move client/common/ and client/network/ into common/ and network/ respectively. 2023-08-19 10:05:48 +03:00
iProgramInCpp
a689ee7365 Disable lighting once, globally 2023-08-18 22:41:51 +03:00
iProgramInCpp
53c586bec8 * Fix-inaccuracy: remove re-enable of GL_LIGHTING in LevelRenderer::render 2023-08-18 22:40:26 +03:00
iProgramInCpp
c4b8e48c6c * Move AABB, HitResult and Vec3 into world/phys 2023-08-18 22:33:05 +03:00
iProgramInCpp
ac0555c3fb * Move synth stuff into world/level/levelgen/synth 2023-08-18 22:29:03 +03:00
iProgramInCpp
737470f4ab Another readme update. Yay! 2023-08-18 21:47:28 +03:00
iProgramInCpp
b3484a5dd9 * Update the readme again to reflect the project's current goals. 2023-08-18 21:35:00 +03:00
iProgramInCpp
d6a2dfe28f * Update the readme to reflect this project's goals. 2023-08-18 21:26:54 +03:00
iProgramInCpp
0ed807eaf3 * Oops 2023-08-17 17:52:46 +03:00
iProgramInCpp
8a38dee562 * A couple of fixes for SDL/Emscripten build. 2023-08-17 17:49:52 +03:00
iProgramInCpp
5707419665 * Windows VS2010: Unset unicode on release mode too 2023-08-17 16:26:15 +03:00
iProgramInCpp
5821a5d5ef * Final fixes for VS2010 build. 2023-08-17 16:21:42 +03:00
iProgramInCpp
acaf4aa614 * Fix WebGL build. 2023-08-17 14:26:35 +03:00
iProgramInCpp
a08478d527 * Slight refactor to the resize code. 2023-08-17 11:44:24 +03:00
iProgramInCpp
f14730d3f3 * Fix getDrawScale warning. 2023-08-17 11:21:47 +03:00
Brent
5ac3aa6d9e macOS Support & AppPlatform Cleanup (#57)
* macOS Support & Cleanup

* Fix malformed comments in build-wasm.bat

* Emscripten Fixes

* * Add shebang to the grabsounds.py script

Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly.

* * Re-add the patch_data and readme files.

* * Remove sound data.

* Fix some more things.

* Think it's ready to pull now...

---------

Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com>
Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
2023-08-17 11:20:59 +03:00
iProgramInCpp
906b96edd8 Add zlib to the web build, fix an error in CThread... 2023-08-17 10:28:01 +03:00
iProgramInCpp
37ffbde73c * Fix build issues with missing GL definitions. 2023-08-17 10:06:46 +03:00
iProgramInCpp
242f6f904a * Get rid of the survivalmode remnants in CreativeMode. 2023-08-16 22:52:34 +03:00
iProgramInCpp
83c94f355e * Fix bad ordering in the PlaceBlockPacket. 2023-08-16 22:47:15 +03:00
iProgramInCpp
9a24abc603 Improve Survival Mode + others (#56)
* * Undo some of the changes done in the "* Work on survival mode." commit.
* TEST_SURVIVAL_MODE is now on by default.

* * Dying no longer crashes the game.

* * Death seems to work ok.

* * Improve some of the damage code.

* x

* work

* Fixed the Makefile (#54)

* * Finally fix the crack texture appearing to flicker/restart

* * Add VS2010 as an optional target.

Fix build with VS2010 (both windows_vs and xenon_vs).

* * Disable survival mode. Getting ready to merge now!

---------

Co-authored-by: Alexander Argentakis <38327951+MFDGaming@users.noreply.github.com>
2023-08-16 22:32:09 +03:00
Alexander Argentakis
5e8119d279 fixed some mouse related mistakes in main.cpp of the SDL build (#55) 2023-08-16 11:38:36 +03:00
iProgramInCpp
f83807d65c * Update the makefile as was done on the devel branch. 2023-08-16 11:16:53 +03:00
iProgramInCpp
1e7bedaa72 * Work on survival mode. 2023-08-13 23:01:40 +03:00
iProgramInCpp
e9f4ae6533 * Separate out the item class headers from the main Item header. 2023-08-13 22:28:07 +03:00
iProgramInCpp
49587c6f81 * Disable caves for now. 2023-08-13 22:09:34 +03:00
iProgramInCpp
f9130ba238 * Add crying obsidian. 2023-08-13 22:01:28 +03:00
iProgramInCpp
2da5c2e2fe * Add clouds! (optional feature) 2023-08-13 20:38:52 +03:00
iProgramInCpp
206bc5cce0 * Add display list support.
While performance still sucks without VBOs, it's like 5x better now
2023-08-13 16:34:23 +03:00
iProgramInCpp
f4855d38b6 OpenGL vertex buffer object emulation code. (#53)
* * Make more GL vertex buffer related functions use the xgl prefix.

This allows me to later overload them in case I want to try to emulate vertex buffers in software.

* * Add (incomplete) GL VBO emulation. Works well enough but it's very slow.

* * Define USE_HARDWARE_GL_BUFFERS again.
2023-08-13 16:03:51 +03:00
iProgramInCpp
eb64faa89f * Fix an accidental memory leak in the client side loader 2023-08-12 23:28:06 +03:00
iProgramInCpp
498fe048cd * Improve the level sending mechanism in the game.
Instead of sending a request for each chunk one by one, and in sequence, send all the level data in one block.

I know this is not the best solution since we are working with UDP here, but it's way faster than loading the level chunk by chunk. In a blink of an eye, the level has already loaded.
2023-08-12 23:14:13 +03:00