6002 Commits

Author SHA1 Message Date
UnknownShadow200
c714c5136a Can now press F1 to hide gui. 2015-09-11 19:39:48 +10:00
UnknownShadow200
1ec491d2a1 Entities should use map sunlight and shadowlight colours, camera should use old camer's delta and previous mouse position. Fixes #66, fixes #67. 2015-09-11 18:11:10 +10:00
UnknownShadow200
cef12ac553 Fix lighting bug with slabs. 2015-09-10 19:39:42 +10:00
UnknownShadow200
061d9f7745 Player should only be able to go outside map boundaries (except for flying above the map) when noclip is enabled, fixes #64. 2015-09-10 14:33:04 +10:00
UnknownShadow200
a17cda3d3c Print to console when DEBUG_OPENTK is defined instead of using System.Diagnostics.Debug, fixes crashing on Mono and fixes #63. 2015-09-10 13:48:21 +10:00
UnknownShadow200
52d249b84a Calls to CursorVisible must be balanced, fixes #62. 2015-09-10 06:34:24 +10:00
UnknownShadow200
dbeeb51ddf Hopefully fix remove last of InitialiseArray() with enum calls. 2015-09-09 19:23:27 +10:00
UnknownShadow200
5433643e48 Fix blendfuncs initialisation, oops. 2015-09-09 18:57:21 +10:00
UnknownShadow200
3459b28264 Update assembly version. (Hello webhook) 2015-09-09 18:33:16 +10:00
UnknownShadow200
2920b3afb5 Hopefully address problem raised in comments in #61, thanks Mono. 2015-09-09 18:25:29 +10:00
UnknownShadow200
46a09255cc Try to find cause of crash found in comments in #61. 2015-09-09 06:28:48 +10:00
UnknownShadow200
2e502ee8bb Implement support for resetting block definitions. 2015-09-08 20:10:54 +10:00
UnknownShadow200
d705593c36 Add highly experimental, partial support for BlockDefinitions to address #42. 2015-09-08 06:28:30 +10:00
UnknownShadow200
96aaec9dea We have to actually indicate that we handled MouseWheel window message, fixes #57. 2015-09-07 17:49:07 +10:00
UnknownShadow200
4fbaa4196f Client should not move to pause screen when chat input bar is active, fixes #60. 2015-09-07 17:00:19 +10:00
UnknownShadow200
8a531558ff Implement reading of BlockDefinitions packet, but no actual support yet. 2015-09-07 16:56:01 +10:00
UnknownShadow200
5fb2f45189 Fix chunks not being refreshed properly when sunlight/shadowlight changes. Fix client raising EnvVariableChanged events even if new is equal to old, fixes #54. 2015-09-07 06:29:11 +10:00
UnknownShadow200
896408a751 Particles should use shadow colour when in shadow, fixes #59. 2015-09-06 18:04:12 +10:00
UnknownShadow200
e43add1d32 Client should switch to block on the hotbar if it is the same as the new held block rather than duplicating it, fixes #58. 2015-09-06 17:57:25 +10:00
UnknownShadow200
6df70aa383 Don't use face culling for translucent liquids, fixes #55. 2015-09-06 17:33:00 +10:00
UnknownShadow200
03b21b62a7 Do not use our own special packed atlas, use the standard atlas in preparation for #42. 2015-09-06 08:13:21 +10:00
UnknownShadow200
d95272f4a7 Read saved environment metadata from maps in singleplayer mode. 2015-09-05 20:24:54 +10:00
UnknownShadow200
81906c75ed Mention in readme that you don't really need to turn off VSync anymore for faster chunk mesh building. 2015-09-05 09:39:46 +10:00
UnknownShadow200
b6289b6b79 Increase number of chunks built per frame if we can. 2015-09-05 09:35:27 +10:00
UnknownShadow200
0c7dec86e4 Sadly, it turns out that our memory string optimisation procedures corrupted the headp after the GC was run. Turns out because (I might be wrong though) that the GC appears to try to use leftover string space for heap allocations, which sometimes caused random corruptions but mostly crashes as were directly modifying the underlying string length. Fixes #51. 2015-09-05 07:36:51 +10:00
UnknownShadow200
f3306f48fd Fix setting cursor position on X11, fixes #36. 2015-09-04 19:57:55 +10:00
UnknownShadow200
6f63292268 Add cursor showing and hiding on X11, use our own method of setting X11 cursor position to avoid having to load System.Windows.Forms on Mono. 2015-09-04 19:50:01 +10:00
UnknownShadow200
4769e7dbbd Implement cursor hiding on Windows to partially address #36. (Will do Linux backend next) 2015-09-04 06:55:12 +10:00
UnknownShadow200
875ec23b5b Add proper brightness to entities, closes #45. (Thanks Goodlyay) 2015-09-03 20:14:10 +10:00
UnknownShadow200
9a69dba8c5 And get player animations working again. 2015-09-03 20:06:30 +10:00
UnknownShadow200
afb758eb3e Hats should be 0.5 pixels bigger, not 1, fixes #49. (Thanks Goodlyay) Also use nicer constants in PlayerModel. 2015-09-03 19:32:41 +10:00
UnknownShadow200
60c753a2fd Make entity models dynamic in preparation for #45, also means we make a lot less matrix multiplications. Still broken! 2015-09-03 19:20:08 +10:00
UnknownShadow200
ad18567f69 Fix bug with StringBuffer/UnsafeString being drawn way too wide on some Windows versions, fixes #46. (Thanks Cheesse) 2015-09-03 18:40:25 +10:00
UnknownShadow200
4371246f96 Add support for drawing indexed dynamic VBs - use less memory in WeatherRenderer and can draw more particles in ParticleManager. 2015-09-03 06:32:28 +10:00
UnknownShadow200
9394ce1794 Use more flexible dynamic vertex buffers in Direct3D9 api, in preparation for #45. 2015-09-02 20:27:41 +10:00
UnknownShadow200
c163ebcb59 Proper fix of UnsafeString on windows platforms - should fix input text and block info string. 2015-09-02 19:44:24 +10:00
UnknownShadow200
f33428a531 Implement ability to perform partial update of textures on both graphics api backends. Partially addresses #44. 2015-09-02 18:33:13 +10:00
UnknownShadow200
1aff357e80 Make sure we don't overwrite existing map files when saving, because we permanently lose some of the original map's metadata when the client loads a map. 2015-09-01 20:05:53 +10:00
UnknownShadow200
c8c8b8072d Partial support for saving and loading maps. 2015-09-01 19:58:21 +10:00
UnknownShadow200
7826f84b55 Consistency of Game/Window - now just use game. Start work on adding crosshairs. 2015-09-01 18:03:36 +10:00
UnknownShadow200
7baf64051f Add proper singleplayer support. Can generate new flatgrass worlds with /client gen, also the client starts singleplayer when no arguments are provided. 2015-09-01 17:24:01 +10:00
UnknownShadow200
db800f3b32 Slightly optimise ChunkMeshBuilder, fix lava not being fully lit on all tile sides. 2015-09-01 16:33:05 +10:00
UnknownShadow200
d9166bbf93 Not sure why .sln was modified, update readme. 2015-09-01 06:53:17 +10:00
UnknownShadow200
6ebed77929 Add basic singleplayer support. Generates a flatgrass map, but has no support for saving. Partially addresses #40. 2015-09-01 06:50:20 +10:00
UnknownShadow200
385c46e21d Make sure to set the MinIndex in Direct3D9 api, as according to various obscure posts, AMD cards require this to be properly filled out, should fix #34. (Thanks Cheesse for reporting this bug) 0.91 2015-08-30 12:09:23 +10:00
UnknownShadow200
74bb737593 Pressing the Enter key now works in place of clicking sign in buttons and connect buttons, addresses #35. 2015-08-30 08:53:17 +10:00
UnknownShadow200
d053a3bf90 Fix Direct3D9Api not building, print graphics info in more concise way and print adapter description for Direct3D 9. Fixes chunk visibility not being recalculated after terrain atlas size changes, closes #34. 2015-08-30 06:48:53 +10:00
UnknownShadow200
dab0e31bfc More code XML comments. 2015-08-29 11:54:55 +10:00
UnknownShadow200
ffa96b651b Some stylistic cleanup in BlockInfo.Culling, use TileSide.Sides instead of an apparent magical constant, minor simplifications in mesh building code. 2015-08-29 08:16:49 +10:00
UnknownShadow200
fece6e6da0 Minor optimisations in ChunkMeshBuilder, store (y - 1) in heightmap so we don't have to also check against block height. 2015-08-28 06:13:18 +10:00