101 Commits

Author SHA1 Message Date
UnknownShadow200
f0047be63c Style: Remove CommandReader class, move stuff from ClassicalSharp.TexturePack to ClassicalSharp.Textures 2016-10-17 17:15:24 +11:00
UnknownShadow200
2452cc93a7 Style: Use gfx consistently everywhere, instead of mixing api and graphics. 2016-10-12 12:25:12 +11:00
UnknownShadow200
b576506b86 Gfx: add bool indicating whether texture should use managed or default pool. 2016-10-06 10:54:17 +11:00
UnknownShadow200
2c5aa39274 Client: Fix memory leak with animations.png. (Thanks 123DMWM) 2016-09-27 08:37:36 +10:00
UnknownShadow200
77c3ce331f Client: Microoptimisations for lava animation. 2016-09-22 13:07:39 +10:00
UnknownShadow200
cb7aba8e9e Make lava animation web scalable. (16x,32x,64x) 2016-09-22 12:42:33 +10:00
UnknownShadow200
da8ebc61b1 Fix last compile errors for android backend. 2016-09-11 12:45:23 +10:00
UnknownShadow200
59ee780aca Fix some of compile errors for android target. 2016-09-11 11:58:59 +10:00
UnknownShadow200
83aaf4091d Should be using the 'lastmodified' provided for our own 'if modified since' header, fixes texture packs from some web servers always being redownloaded. (Thanks CookieNetwork) 2016-08-28 13:45:25 +10:00
UnknownShadow200
6b2651b8fb Split up Utils.cs into Utils.cs and Utils.Math.cs, also use our own ToLower() method that does not make any extra memory allocations. 2016-08-15 20:00:57 +10:00
UnknownShadow200
4033dcff1a Avoid the temp mem allocation for reading compressed data in ZipReader. 2016-08-15 18:49:06 +10:00
UnknownShadow200
ff4b1eb723 Avoid foreach wherever possible. 2016-08-15 12:57:25 +10:00
UnknownShadow200
38be2f192e Make ticking tasks code more extensible. 2016-08-06 15:06:20 +10:00
UnknownShadow200
3fdda6ab92 Make TexturePackExtractor less hardcoded. 2016-07-25 12:22:10 +10:00
UnknownShadow200
7432413a77 Move gui code to a separate class. 2016-07-25 12:11:55 +10:00
UnknownShadow200
7be81bea37 Fix most of remaining compilation errors on android project type. 2016-07-14 11:29:54 +10:00
UnknownShadow200
0da70b91eb Use android-compatible 'is 32bpp bitmap' test. 2016-07-14 00:15:25 +10:00
UnknownShadow200
719d741a9b More fixups for android backend. 2016-07-13 22:48:28 +10:00
UnknownShadow200
02fc19e1e7 Fixup OpenGLES api for IGraphicsApi changes. 2016-07-13 22:26:43 +10:00
UnknownShadow200
a9b3c0876e Fix last commit. 2016-07-12 20:15:19 +10:00
UnknownShadow200
7711515aee Fix last commit. (Oops) 2016-07-12 20:14:19 +10:00
UnknownShadow200
ea12b5a428 Also add very simple dynamic lighting. 2016-07-12 19:54:34 +10:00
UnknownShadow200
35844e526d Optimise lava animation algorithm. 2016-07-09 18:17:27 +10:00
UnknownShadow200
1dd58bf874 Fix selection outline writing to depth buffer when it should not be. 2016-07-07 22:59:52 +10:00
UnknownShadow200
7236028106 Optimise lava animation slightly. 2016-07-07 22:01:36 +10:00
UnknownShadow200
b135d484b3 Allow custom texture packs to specify a file to use the built-in dynamic lava generation algorithm. (Thanks goodlyay) 2016-07-07 21:56:11 +10:00
UnknownShadow200
5ec0fc783a Add lava animation like classic. (Much much thanks to goodlyay) 2016-07-03 17:04:26 +10:00
UnknownShadow200
39828c82aa Fix unhelpful error message when running the launcher but ClassicalSharp.exe is missing, fixes #224. (Thanks Mel321) 2016-07-01 14:19:20 +10:00
UnknownShadow200
df12571d96 Don't load a texture if it is bigger than gpu's max supported size. 2016-06-23 10:50:51 +10:00
UnknownShadow200
1e2cd769fe Consistently use 'block' instead of 'tile'. 2016-06-11 18:38:20 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
619fd5ded4 Implement partial default.zip updates. 2016-05-15 20:44:32 +10:00
UnknownShadow200
088d939e1c Perform coordinate validation for animations (Thanks silly texture pack creators). 2016-05-14 22:05:52 +10:00
UnknownShadow200
8f8ae2f36f Initial work on texture packs. 2016-05-14 20:37:07 +10:00
UnknownShadow200
5498c5e4fa Use icons.png crosshairs if given, partially addresses #187. 2016-05-12 16:56:13 +10:00
UnknownShadow200
e59b2b4c2b Fix Z-fighting and incorrectly not drawing issues for translucent blocks. 2016-05-11 18:59:37 +10:00
UnknownShadow200
91cfde2fca Fix sound playing at top of now bottom of leg animation cycle. (Thanks goodlyay) 2016-05-11 17:10:16 +10:00
UnknownShadow200
d02d56d01b Textures array should be bytes not ints. 2016-05-10 15:08:12 +10:00
UnknownShadow200
ec050aaefc Move code away from TexturePackExtractor into their logical classes. 2016-05-08 23:27:58 +10:00
UnknownShadow200
723585661a Make Animations a game component, make TexturePackExtractor less hardcoded. 2016-05-08 23:05:56 +10:00
UnknownShadow200
d837b31f84 Also backspace in input should backspace colour code before the character. 2016-05-08 22:06:26 +10:00
UnknownShadow200
7042dccd2f Fix gui/gui.png not being treated as gui.png, fixes #188. 2016-05-06 15:32:43 +10:00
UnknownShadow200
4d8b0fc3d8 Use bitflags instead of booleans for hidden so it can better fit in cache. 2016-05-06 13:43:25 +10:00
UnknownShadow200
f63ca316d7 Reject invalid terrain.png (non square, non power of 2) instead of crashing. (Thanks 123DMWM) 2016-05-06 13:19:11 +10:00
UnknownShadow200
ca0b9cc038 Fix client crashing when animations.txt exists and animations.png is missing (Thanks Chameleonherman), fixes #183. 2016-05-06 12:38:21 +10:00
UnknownShadow200
5b8cf2b1c3 Also store ETags for 'If-None-Match' type cache methods (such as dropbox), fixes #180. 2016-05-02 16:51:40 +10:00
UnknownShadow200
e7f6fbc3c1 Fix clicking 'updates' in launcher when not connected to the internet crashing the launcher. 2016-04-21 07:42:42 +10:00
UnknownShadow200
7bac3ea708 Fix players with default skins being messed up when they switch to a texture pack that has a different default skin type. (e.g. 64x32 --> 64x64) 2016-04-19 18:58:01 +10:00
UnknownShadow200
0e6f529303 Fix client crashing when font texture isn't 32bpp, closes #168. (Thanks AndrewPH) 2016-04-14 22:52:13 +10:00
UnknownShadow200
7a2e5d6049 Organise most things into namespaces. 2016-03-27 09:33:51 +11:00