5349 Commits

Author SHA1 Message Date
UnknownShadow200
a24454fc64 Fix on mobile webclient, when you rotate device in fullscreen, the game doesn't readjust to fit the new screen dimensions 2020-10-30 00:40:44 +11:00
UnknownShadow200
0a7c6fe31d WIP on using own fullscreen handling stuff for web client 2020-10-30 00:15:58 +11:00
UnknownShadow200
e3b9f5b531 Retrieve canvas width/height directly instead of relying on emscripten_get_canvas_element_size 2020-10-29 22:30:30 +11:00
UnknownShadow200
04f4818e53 The 4-arrow movement circle on mobile should always position itself to be slightly above inventory hotbar, instead of at a hardcoded offset from bottom of game 2020-10-28 23:29:43 +11:00
UnknownShadow200
b3e82c214b Improve 'skipping long line message' to also include number of characters in that line (Thanks masoncb) 2020-10-28 08:46:59 +11:00
UnknownShadow200
e10cb1a566 Update sprite bounds after undefining a block, fixes say being in a map which redefined rope then going to a map with normal rope block (Thanks Fam0r, fixes #459) 2020-10-28 00:26:18 +11:00
UnknownShadow200
25e8a4dfcc Attempt to avoid crashing if CreateVb/Tex fails with E_OUTOFMEMORY and if CreateTex fails with D3DERR_OUTOFVIDEOMEMORY (Thanks Henry242) 2020-10-27 23:55:43 +11:00
UnknownShadow200
a99e3d8121 Android: Also download and extract touch.png
Implementation is still a bit hacky and needs to be redone though
2020-10-27 23:20:12 +11:00
UnknownShadow200
5a850f55d0
Merge pull request #739 from UnknownShadow200/MobileTouch
Improve mobile touch controls
2020-10-27 16:12:07 +11:00
UnknownShadow200
9d9003be8e Don't URL encode ? and = when downloading urls on windows, fixes failing to download texture pack from some webservers (Thanks Jacob_) 2020-10-27 12:24:53 +11:00
UnknownShadow200
7f917f59c3 Fix the other two directions 2020-10-26 23:36:31 +11:00
UnknownShadow200
c5eb3593cf Adjust for a much better texture (Thanks Goodly) 2020-10-26 22:45:19 +11:00
UnknownShadow200
6652f9f316 When you go back to main screen in launcher and try to sign in again, attempt to resume current login instead of always doing a fresh login (Unless a different signin username has been typed in) 2020-10-26 09:12:51 +11:00
UnknownShadow200
beba09b2ef If GET /api/login returns a username then keep track of that 2020-10-26 00:33:44 +11:00
UnknownShadow200
e777be1e90 Mobile: When flying/noclip is enabled, change the 'jump' button to two separate 'up' and 'down' buttons 2020-10-25 23:55:46 +11:00
UnknownShadow200
58a9b57e79 Add event for hacks state changing 2020-10-24 23:24:19 +11:00
UnknownShadow200
88c0f476f5 Draw active regions for two of the directions 2020-10-24 19:04:23 +11:00
UnknownShadow200
4b2d596585 Switch to simpler 4 direction version 2020-10-24 19:04:21 +11:00
UnknownShadow200
f24dfe63c4 thumbstick WIP 2020-10-24 19:04:19 +11:00
UnknownShadow200
20a392cdfb WIP on making movement input generic 2020-10-24 19:04:15 +11:00
UnknownShadow200
e31e42c665 Fix if entity name has ampersands not followed by a used colour code, the shadow back layer wrongly strips them (Thanks Goodly)
Also fix that for chat logging too
2020-10-24 10:50:06 +11:00
UnknownShadow200
ad01e2e28e Android: Fix if you touched on a text input widget to move the caret to somewhere in the text, then press backspace multiple times, the game crashed
The soft keyboard actually ignores the caret you see in the text input widget, but that's another story
2020-10-24 00:12:16 +11:00
UnknownShadow200
64da5c6909 Android: For MFA code/colour value input widgets, show a numeric keyboard instead of regular text keyboard 2020-10-24 00:01:51 +11:00
UnknownShadow200
292b9463a0 Android: Fix 1 block always being placed/deleted when you start the game 2020-10-23 23:51:17 +11:00
UnknownShadow200
1df5122100 Android: Fix if you cancel initial assets download partway through, then start singleplayer, then quit game, then try to continue downloading initial assets, it wouldn't download them anymore 2020-10-23 22:49:47 +11:00
UnknownShadow200
73b334f1ad Add 'quit game' button to disconnected menu 2020-10-23 21:39:46 +11:00
UnknownShadow200
8c5cd2f303 fix android version freezing when you try to quit game and music is enabled 2020-10-23 21:04:52 +11:00
UnknownShadow200
9688c2ebd2 At long last, music works on android 2020-10-23 20:57:03 +11:00
UnknownShadow200
fa687f1e93 Get sounds to work for android, music still broken
Also change Audio_IsCompleted to Audio_IsAvailable to be clearer
2020-10-23 19:03:51 +11:00
UnknownShadow200
6fdcc930a1 Android: Finally get some audio output for OpenSL ES backend. Music doesn't work and sounds break after a few times, but at least it's something 2020-10-23 15:15:35 +11:00
UnknownShadow200
e100fb7476 Remove AudioHandle and use AudioContext struct directly instead
AudioHandle was rather fail, since it represented an index into a static array of 20 AudioContexts. As such, it was not thread safe, and imposed an arbitrary limit of how many audio contextx could be used
2020-10-23 14:54:21 +11:00
UnknownShadow200
029293d1c2 Split out Audio_Open, more work on OpenSL ES backend 2020-10-23 14:38:18 +11:00
UnknownShadow200
777412e56a try to share some code between the audio backends 2020-10-23 13:26:18 +11:00
UnknownShadow200
8b3246b67b Android: Starting working on OpenSL ES backend for audio 2020-10-23 10:45:33 +11:00
UnknownShadow200
251d531fb2 Launcher: Split up ResourcesScreen into CheckResourcesScreen and FetchResourcesScreen 2020-10-23 00:58:21 +11:00
UnknownShadow200
7af1a2b7c4 Android: Fix no more http requests occurring after you have clicked quit game 2020-10-23 00:17:00 +11:00
UnknownShadow200
856c7a2f2a Bump android SDK version back up to 26 to avoid 'this app was built for an older version of android and doesn't include the latest privacy protections' message when installing
I also set StrictMode.disableDeathOnFileUriExposure using some disgusting reflection so screenshots can continue to use file:// urls instead of content:// urls
2020-10-22 23:54:50 +11:00
UnknownShadow200
d717c51059 Immediately terminate the game if Direct3DCreate9 returns NULL, instead of randomly crashing from invalid memory access later (Thanks aleksb385) 2020-10-22 23:02:48 +11:00
UnknownShadow200
68c24fd4f4 Change update urls from cs.classicube.net/c_client/ to cs.classicube.net/client
Fixes game not updating on old versions of wine which had a bug in redirection handling logic
2020-10-22 09:16:05 +11:00
UnknownShadow200
39feb29b15 Android version: Fix if you quit and return to game multiple times, you end up moving at hyperspeed 2020-10-22 00:27:49 +11:00
UnknownShadow200
174bbc6363 Change the android package name to avoid conflicting with a certain other android application 2020-10-21 23:48:10 +11:00
UnknownShadow200
7d017e7dd1 Avoid logging some memory map for android crash logs
From 121kb to 47kb per crash in the emulator
2020-10-21 12:01:56 +11:00
UnknownShadow200
1093db2191
Merge pull request #735 from UnknownShadow200/AndroidInputTypeTake2
Proper keyboard input for android version
2020-10-20 19:53:45 +11:00
UnknownShadow200
5f3655d948 Android: Attempt to fix rare launcher crash when rotating device 2020-10-20 17:39:21 +11:00
UnknownShadow200
53af396dd9 Android: Fix if you leave input field with text in it then select it again, you can't backspace the text anymore 2020-10-19 23:32:14 +11:00
UnknownShadow200
e93fa93042 Android: Fix backspace in numeric keyboard randomly crashing 2020-10-19 21:24:45 +11:00
UnknownShadow200
f6bfb86fa5 Take two at improving android keyboard
Still has problems of a) always adding . after space b) backspacing in numeric keyboard crashing
2020-10-18 19:06:26 +11:00
UnknownShadow200
3af3d829a1 For numeric input fields in mobile web client, try to display numeric soft keypad instead of regular one 2020-10-18 15:55:02 +11:00
UnknownShadow200
b429750127 Backport adding support for InputEvents.TextChanged from AndroidInputType branch 2020-10-18 14:51:13 +11:00
UnknownShadow200
13fda4c626 remove old String typedef completely 2020-10-18 12:31:19 +11:00