Commit graph

229 commits

Author SHA1 Message Date
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
iProgramInCpp
944eb3ace4 * Add util functions or zlib inflation/deflation. 2023-08-12 13:53:35 +03:00
iProgramInCpp
1918bf2a7e Update makefile to also compile zlib. 2023-08-12 13:38:19 +03:00
iProgramInCpp
9958b2aaed * Add zlib as third party dependency.
* Clear up license information for RakNet and zlib.
* Add RakNet logo to game/assets. Will be used later.
2023-08-12 13:33:51 +03:00
iProgramInCpp
42017e14f8 * Small nothing-burger changes in the RandomLevelSource::postProcess function. 2023-08-12 13:26:26 +03:00
iProgramInCpp
af442d14c5 * Update Linux makefile to output header dependencies 2023-08-12 12:05:33 +03:00
iProgramInCpp
7fd36a1da0 update the core CMakeLists to include the corrected packets path 2023-08-12 11:39:01 +03:00
iProgramInCpp
6c03c91fe5 rename packets1 -> packets 2023-08-12 11:38:15 +03:00
iProgramInCpp
9750c0c7f1 rename Packets -> packets1 2023-08-12 11:38:08 +03:00
iProgramInCpp
826315c228 Update some splashes.
Allow messages to be split properly across several lines.
2023-08-12 10:39:23 +03:00
iProgramInCpp
d09ef3fd04 * Flip stair rendering 90 degrees, to be shaded like regular blocks do. 2023-08-12 10:18:50 +03:00
iProgramInCpp
936a72b346 * Last fixes to the AABB/Tile code. 2023-08-11 22:45:14 +03:00
iProgramInCpp
203a47a527 * Add getChunkDontCreate. Will be useful for multiplayer. 2023-08-11 20:59:30 +03:00
iProgramInCpp
35a63582df * Add F3 debug text. 2023-08-11 20:04:07 +03:00
iProgramInCpp
b1786eba1f * Add LevelRenderer::renderHitOutline.
Looks similar to the Java Edition version, but the lines are not antialiased and harder to tell apart. Phone users would have trouble seeing the outline, so that's why it was changed.
2023-08-11 18:43:08 +03:00
iProgramInCpp
8430ce5de9 * Fix bad picking logic once again... 2023-08-11 12:39:15 +03:00
iProgramInCpp
8c82c7b53f * Render the name tag on players other than the local player. 2023-08-11 12:04:14 +03:00
Marioiscool246
3d192ad10c
Fix empty inventories for server players (#46)
* Fix empty inventories for server players

* Revert "Fix empty inventories for server players"

This reverts commit 12174c0cfb.

* Fix empty inventories for server players
(The good one this time I hope)

---------

Co-authored-by: Marioiscool246 <marioiscool101@gmail.com>
2023-08-11 11:54:33 +03:00
Brent
b45cfc1e16
Cleaned up Cube (#48)
* Cleaned up Cube
* Refactor/cleanup & documentation of Cube
* Renamed Tesselator to Tessellator

* Revert "Tesselator" Spelling Correction

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
2023-08-11 11:53:50 +03:00
iProgramInCpp
ce6c2eb553 * Disable picking for fire. 2023-08-11 11:51:26 +03:00
iProgramInCpp
715c4b6c37 * Clean up Tile::clip 2023-08-11 11:43:04 +03:00
iProgramInCpp
66e896ad2b * Add the "lowering and raising item" behavior from Minecraft Java 2023-08-11 11:37:40 +03:00
iProgramInCpp
34fc30f08a * Outline all the Mouse and Keyboard code. 2023-08-11 11:19:26 +03:00
iProgramInCpp
cf304095ed * Fix a small bug in the mouse feed code. 2023-08-11 10:13:54 +03:00
iProgramInCpp
d1de430d14 * Add optional 3d panorama background 2023-08-11 00:13:06 +03:00
iProgramInCpp
27a0057886 * Split every Tile class into its own header file. 2023-08-10 13:27:30 +03:00
iProgramInCpp
b768764734 * Allow the patch manager to stop loading data from a command 2023-08-10 13:06:42 +03:00
iProgramInCpp
b1c2bf946c * Allow overwriting of frame data from the patch data file. 2023-08-10 12:32:40 +03:00
iProgramInCpp
0412fd1bc5 * Fix lapis lazuli block textures being weird when metal_block_sides is true. 2023-08-10 11:52:22 +03:00
f
ac4369f5b2
Fix memory leak in SoundSystemWindows (#47)
* Fix memory leak in SoundSystemWindows

Add functionality to release LPDIRECTSOUND3DBUFFER8 when sound finished playing.

* Update minecraftcpp.vcxproj

same mistake again
2023-08-10 10:05:13 +03:00
iProgramInCpp
c445c255a3 * Fix bad soundbuffer release check in the SoundSystemWindows 2023-08-09 23:12:07 +03:00
iProgramInCpp
529100f168 * Add splash text rendering to the start menu screen. 2023-08-09 22:45:14 +03:00
iProgramInCpp
df47842c5e * Add PatchManager - Allows you to patch terrain.png and items.png on the fly.
This can be used for modding, since you don't need to share copyrighted Mojang assets alongside your texture patches.
2023-08-09 22:13:04 +03:00
iProgramInCpp
a7f56c5581 * Change options.txt separator from '|' to ':'.
* Move FireTexture.cpp into the correct filter.
2023-08-09 18:44:49 +03:00