Commit graph

348 commits

Author SHA1 Message Date
UnknownShadow200
8687378509 Simplify AGL class, remove code that was used for GLControl. 2015-07-06 11:04:00 +10:00
UnknownShadow200
a78ddb6979 Make AGL api more consistent. 2015-07-06 10:46:31 +10:00
UnknownShadow200
69e1050ee1 Standardise usings in MacOS api. 2015-07-06 10:22:48 +10:00
UnknownShadow200
ed37fab04a Client now sends player click if server supports it. Still incorrectly misses some clicks. 2015-07-06 10:09:38 +10:00
UnknownShadow200
fa30faf812 Refactor 2D text drawing to be simpler. Refactor IModel class - use the player argument directly, rather than copying them to fields for every different model. Move LocationUpdate structure into its own file. 2015-07-05 19:59:26 +10:00
UnknownShadow200
43a7e35d64 Do more accurate model picking with rotated AABBs, make sure to only return closest player in model picking. 2015-07-04 14:26:19 +10:00
UnknownShadow200
e23b5aeda5 Move model size functionality to model classes. Add separate bounding boxes for collision and picking. Add function to rotate points around Y axis. 2015-07-03 09:20:46 +10:00
UnknownShadow200
ae1105d5d9 Change skeleton and zombie angles to degrees, use face culling on translucent blocks when the player isn't inside a translucent blocks. 2015-07-03 07:11:50 +10:00
UnknownShadow200
71a26da049 Replace degrees with radians in spider model. 2015-07-02 09:13:26 +10:00
UnknownShadow200
e97ff0da1f Add basic function for model picking. Needs to be addressed by #29. 2015-07-02 08:00:38 +10:00
UnknownShadow200
e95429dbef Move player handling into new EntityList class. 2015-07-02 07:50:14 +10:00
UnknownShadow200
152133d95c Only call PickingRender when PickedPos is valid, remove some leftover stuff from UpdateFrame, combine SendPlayerClick functions as one function. 2015-07-02 07:35:28 +10:00
UnknownShadow200
273f4f5611 Remove samples/stereo from GraphicsMode, remove some other unused constructors and exceptions. 2015-07-02 06:33:19 +10:00
UnknownShadow200
ec0cb6b997 Do not create temp window when choosing a pixel format on Windows. Simplify X11 glx api and choosing functions. 2015-07-01 16:58:24 +10:00
UnknownShadow200
7f61ab1019 Try 2 at fitting things on one or two lines. 2015-07-01 12:00:38 +10:00
UnknownShadow200
bc138a9080 Minor changes to make more things fit on one or two lines. 2015-07-01 11:57:03 +10:00
UnknownShadow200
d0351d5d78 Fix not building due to missing readme.txt, add field specifying whether server supports PlayerClick extension. 2015-07-01 11:53:10 +10:00
UnknownShadow200
b106fd7e95 Formatting and minor cleanup in readme. 2015-07-01 11:27:54 +10:00
UnknownShadow200
b1ba2c0207 Fix clouds not moving when using Direct3D 9 build, remove somestuff from todo.txt and replace them with actual TODO comments in source code. Redesigned readme to use markdown and look nicer. 2015-07-01 11:15:53 +10:00
UnknownShadow200
f88405330c Significantly refactor launcher. Public servers list and 'minecraft.net/classicube.net server' tabs are merged into one tab. As both the minecraft.net and classicube.net tabs essentially shared the exact same functionality, this functionality is encapsulated in a new 'GameState' class. 2015-07-01 09:12:12 +10:00
UnknownShadow200
536845393c Why is that still there? 2015-06-30 20:09:26 +10:00
UnknownShadow200
d59aba361a Inline some string date format constants, only check whether a directory exists when opening a file. 2015-06-30 20:08:58 +10:00
UnknownShadow200
658f2518fe Properly unsubscribe from TerrainAtlasChanged events. 2015-06-30 13:10:16 +10:00
UnknownShadow200
9a52cd317f Use optimised matrix multiplication code from later version of OpenTK. 2015-06-30 07:46:37 +10:00
UnknownShadow200
818a42f302 Only send final matrix result of multiplications to graphics api. 2015-06-30 07:26:09 +10:00
UnknownShadow200
b5691061b5 Presumably the contents of a string are more relevant to the user than its address. 2015-06-30 07:03:29 +10:00
UnknownShadow200
7439ee727a Directly call delegates in OpenGL api, remove some unused functions from OpenTK, only use glLoadMatrix and glMultMatrix. 2015-06-30 07:00:34 +10:00
UnknownShadow200
be7c17c6b8 Add public methods to send PlayerClick packets (code that calls them not yet implemented), simplify reading strings in FastNetReader and backspace key handler in TextInputWidget. 2015-06-29 09:25:39 +10:00
UnknownShadow200
07471e54d7 Keep track of picked block face in PickedPos class, rearrange MouseButton enum order to match CPE PlayerClick specification. 2015-06-28 19:55:29 +10:00
UnknownShadow200
b11a27d14e Remove file that shouldn't be there. 2015-06-28 18:58:54 +10:00
UnknownShadow200
c08e98d517 Some simplifications in utility functions, remove some old unused debug code, do not use magic constants for writing packet ids. 2015-06-28 18:58:17 +10:00
UnknownShadow200
a9756fcb64 Be more robust against invalid or left out colour codes after & character. (Partially addresses #27) 2015-06-28 11:36:10 +10:00
UnknownShadow200
103b9b5f33 Add PlayerClick packet construction (extension itself not supported yet), move reading wom configuration to WomConfigHandler file. 2015-06-28 09:48:27 +10:00
UnknownShadow200
8ba64029d0 Add mention of built-in client commands to readme, separate view distance setting in to a separate command, general simplification of commands. 2015-06-28 08:13:41 +10:00
UnknownShadow200
c3ee0613fd Version 0.7 2015-06-28 07:48:20 +10:00
UnknownShadow200
67aeba44b8 Simplify chat file opening method, simplify pause screen. 2015-06-28 06:49:03 +10:00
UnknownShadow200
83b2228896 Do not write depth values for translucent blocks (already calculated them in depth pass), remove unused adapative VSync code. 2015-06-27 19:53:24 +10:00
UnknownShadow200
d2fc5bd20e Don't check for X11 on windows, cache EventArgs in Game class, remove update variables from OpenTK.GameWindow 2015-06-27 13:57:16 +10:00
UnknownShadow200
0504a266e0 Remove unused OpenTK.UpdateFrame code. 2015-06-27 13:16:46 +10:00
UnknownShadow200
f19f1bf8b4 Only show the stack trace directly to the user if we were unabble to dump it to the crash log. 2015-06-27 12:21:57 +10:00
UnknownShadow200
ffc49d163e Better selection box sorting. 2015-06-27 12:11:47 +10:00
UnknownShadow200
a6f5ba2f3b Fix reach distance being too short in some circumstances. (Thanks Cheesse), partially addresses #27. 2015-06-27 10:22:29 +10:00
UnknownShadow200
f3794aa002 Fix painting not working with the client. 2015-06-27 09:23:40 +10:00
UnknownShadow200
bf4b86a46c Oops, remove leftover bug testing code. 2015-06-27 09:15:21 +10:00
UnknownShadow200
ed4d1f5195 (Hopefully) fixed issue with older McDzienny versions incrementing message type by 1 for each login and causing chat to move to top right or disappear, even though this shouldn't do anything as the MessageTypes extension was not sent to the client. 2015-06-27 09:13:56 +10:00
UnknownShadow200
f497f6b623 Fix being kicked by MCDzienny servers for 'out of date WoM version', fixed textures that aren't 64x32 or 64x64 crashing the client. (Thanks Cheesse) 2015-06-27 08:58:52 +10:00
UnknownShadow200
44617d1a26 Fix client crashing on invalid side/edge blocks. Partially addresses #27. (Thanks Cheesse!) 2015-06-27 08:22:12 +10:00
UnknownShadow200
f932b23ce5 Rearrange particle classes into separate folder, move selection box comparsions to own class, optimise memory allocation and size of SelectionBox class. 2015-06-24 19:48:12 +10:00
UnknownShadow200
78d334c310 Simplify ErrorScreen. 2015-06-24 18:47:53 +10:00
UnknownShadow200
acf2c849dd Do not recreate block info texture when selected index hasn't changed. 2015-06-24 17:54:02 +10:00