243 Commits

Author SHA1 Message Date
William Moorehouse
94285c2bf7 Added (more) chat support 2015-06-23 12:59:24 -04:00
William Moorehouse
50c7e021a7 Added rendering support for moist farmland 2015-06-22 18:34:34 -04:00
Drew DeVault
025dc3770e Generate empty chunks in client 2015-06-22 11:34:30 -04:00
William Moorehouse
a2f9003dad Fixed cobble and stone textures being mixed up 2015-06-22 11:34:30 -04:00
William Moorehouse
555a8471d0 Don't crash when block values are invalid 2015-06-22 11:34:30 -04:00
William Moorehouse
3e821b6b27 Implemented static texture maps 2015-06-22 11:34:30 -04:00
William Moorehouse
c6952d6cca Added slab renderer 2015-06-22 11:34:29 -04:00
William Moorehouse
2da59178f0 Simplified cobweb renderer 2015-06-22 11:34:29 -04:00
William Moorehouse
85bbe6314d Added cobweb renderer 2015-06-22 11:34:29 -04:00
William Moorehouse
15b6f7b2ab Fixed build failure (on Windows?) due to unimplemented virtual property 2015-06-22 11:34:29 -04:00
William Moorehouse
c2f5026f41 Fixed issue where the client continued to reset the mouse position after losing focus 2015-06-22 11:34:29 -04:00
Mitchell Kutchuk
2391d16968 Close socket after DisconnectPacket has been sent 2015-06-22 08:26:39 -07:00
Mitchell Kutchuk
e086066d9f Style convention fixes 2015-06-22 08:22:36 -07:00
Mitchell Kutchuk
2dd36b28ec Fix merge conflict 2015-06-20 19:44:58 -07:00
Mitchell Kutchuk
4225124546 Implement asynchronous sockets 2015-06-20 19:43:28 -07:00
Drew DeVault
8697994737 Add wheat and farmland renderers 2015-06-20 13:56:57 -04:00
Drew DeVault
939a6dc79c Render snow variation of grass blocks
This also increases the average rainfall everywhere so that fucking
deserts are less common
2015-06-20 11:01:07 -04:00
Drew DeVault
f3fc43fbf9 Implement biome coloring for grass/vegitation/etc
Fixes #147
2015-06-19 17:36:39 -04:00
Drew DeVault
4596fef1a8 Change hue of ice texture slightly 2015-06-19 11:58:03 -04:00
Drew DeVault
12a5483d3b Add vegitation renderer
This replaces TallGrassRenderer and adds support for flowers.

This should be used going forward for any plants that can be rendered as
an x-quad.
2015-06-19 11:53:08 -04:00
Drew DeVault
76d0af7e36 Move GraphicsDevice references to main thread 2015-06-19 01:11:14 -04:00
Drew DeVault
5c52b7634e Remove references to GraphicsDevice on workers 2015-06-19 00:58:30 -04:00
William Moorehouse
596311101a Proper disposal of ChunkRenderer 2015-06-18 21:55:35 -04:00
Drew DeVault
fa26b1a5d7 Or we could not do that 2015-06-18 21:29:36 -04:00
Drew DeVault
9c29f845ae Load textures through PngReader
Instead of Texture2D.FromStream.

Fixes the purple water bug (fixes #138)
2015-06-18 21:04:03 -04:00
William Moorehouse
7046a0f53c 💤 2015-06-18 17:51:47 -04:00
William Moorehouse
fc7f52b619 Slight optimization thanks to @UnknownShadow200 2015-06-18 17:35:44 -04:00
William Moorehouse
33bf6b2a0b Fixed building on Windows 2015-06-18 17:23:50 -04:00
Drew DeVault
386d8f7328 Add option to download Mojang assets
Also fixes a bug with texture pack loading in the client.

Note: we cannot distribute Mojang assets, but some players might want to
use them. To that end, the launcher now has a button that allows the
user to download them him or herself. Since we download them directly
from Mojang, we're be good to go.
2015-06-18 13:59:03 -04:00
Drew DeVault
8d16467ac0 Move near plane to 0.5f 2015-06-18 13:07:36 -04:00
Drew DeVault
64f3d2e774 Merge pull request #134 from mrpimpunicorn/master
Rebased rendering enhancements and a bug fix
2015-06-18 12:54:10 -04:00
Drew DeVault
ce4d662e67 Replace workaround with better solution
Thanks @mlehmk
2015-06-18 12:53:24 -04:00
William Moorehouse
aaddec8951 Rebased rendering enhancements and a bug fix 2015-06-18 12:45:00 -04:00
Drew DeVault
73869d7123 Fix client targets 2015-06-18 12:29:49 -04:00
Drew DeVault
bebaed2b5b Load MonoGame.Framework manually at runtime
This lets us have one build that will in theory work on Windows and
Linux.
2015-06-18 12:23:27 -04:00
Drew DeVault
c91dff52a9 Run client Main in an STA thread manually 2015-06-18 12:20:15 -04:00
William Moorehouse
df927e6c0f Fixed a crash in singleplayer when attempting to render a chunk with no transparent blocks in it 2015-06-18 11:43:20 -04:00
Drew DeVault
6d56fc7011 Move to Any CPU builds 2015-06-18 08:51:37 -06:00
William Moorehouse
ba63e7d234 Added support for translucent rendering 2015-06-18 08:29:51 -04:00
William Moorehouse
72e632a071 Fixed Z-fighting with transparent objects, for now 2015-06-17 21:47:34 -04:00
William Moorehouse
6a1dce540a Set near clipping plane distance to 1.0 2015-06-17 20:50:56 -04:00
William Moorehouse
341093384d Initial work on improving rendering; separated threading from mesh generation 2015-06-17 19:23:24 -04:00
Mitchell Kutchuk
6bf10feb41 Fixed merge conflicts 2015-06-17 12:37:55 -07:00
William Moorehouse
d5224f72c9 Added more resolution options and fullscreen support 2015-06-17 15:03:06 -04:00
William Moorehouse
9ad14273a4 Changed resolution setting to a dropdown 2015-06-17 14:23:46 -04:00
William Moorehouse
5c3c035019 Fixes for client crashing when not run through the launcher 2015-06-17 13:24:39 -04:00
Mitchell Kutchuk
63d538e98d Move Linux/Windows references to targets file
MonoDevelop keeps breaking the build on Windows
(8848697656fdbc77eb0a8bd806ad69c19a42b419). Moving the references to a
separate file should prevent this from happening again.
2015-06-17 07:44:31 -07:00
William Moorehouse
9538d1321a Added support for changing preferred resolution 2015-06-17 10:02:06 -04:00
William Moorehouse
a7d394ef19 Fixed exception in client when settings.json managed to refer to a non-existent or corrupt .zip 2015-06-17 09:17:26 -04:00
William Moorehouse
f15744b7a2 Finished cleaning up texture pack code 2015-06-17 09:10:42 -04:00