forked from Kolyah35/minecraft-pe-0.6.1
Compare commits
4 Commits
bbd81665a6
...
web-change
| Author | SHA1 | Date | |
|---|---|---|---|
| 676fd54982 | |||
| 084607cc86 | |||
| ce182b676f | |||
|
|
88ef7f3d17 |
@@ -48,6 +48,25 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function isAndroid() {
|
||||
return /Android/i.test(navigator.userAgent || '');
|
||||
}
|
||||
|
||||
function lockLandscapeOnAndroid() {
|
||||
if (!isAndroid()) return;
|
||||
|
||||
var orientation = screen.orientation;
|
||||
if (!orientation || typeof orientation.lock !== 'function') return;
|
||||
|
||||
orientation.lock('landscape').catch(function () {});
|
||||
}
|
||||
|
||||
lockLandscapeOnAndroid();
|
||||
window.addEventListener('pointerdown', lockLandscapeOnAndroid, { once: true });
|
||||
window.addEventListener('touchstart', lockLandscapeOnAndroid, { once: true, passive: true });
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var Module = {
|
||||
canvas: document.getElementById('canvas'),
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"scope": "./",
|
||||
"display_override": ["standalone"],
|
||||
"display": "standalone",
|
||||
"orientation": "landscape",
|
||||
"background_color": "#000000",
|
||||
"theme_color": "#000000",
|
||||
"icons": [
|
||||
|
||||
@@ -129,6 +129,7 @@ public class SoundPlayer
|
||||
new SoundId(R.raw.eat1, "random.eat"),
|
||||
new SoundId(R.raw.eat2, "random.eat"),
|
||||
new SoundId(R.raw.eat3, "random.eat"),
|
||||
new SoundId(R.raw.burp1, "random.burp"),
|
||||
new SoundId(R.raw.fuse, "random.fuse"),
|
||||
|
||||
new SoundId(R.raw.zpig1, "mob.zombiepig.zpig"),
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
#include "data/eat1.pcm"
|
||||
#include "data/eat2.pcm"
|
||||
#include "data/eat3.pcm"
|
||||
#include "data/burp1.pcm"
|
||||
#include "data/fuse.pcm"
|
||||
|
||||
SoundDesc SA_cloth1((char*)PCM_cloth1);
|
||||
@@ -221,6 +222,7 @@ SoundDesc SA_creeperdeath((char*)PCM_creeperdeath);
|
||||
SoundDesc SA_eat1((char*)PCM_eat1);
|
||||
SoundDesc SA_eat2((char*)PCM_eat2);
|
||||
SoundDesc SA_eat3((char*)PCM_eat3);
|
||||
SoundDesc SA_burp1((char*)PCM_burp1);
|
||||
SoundDesc SA_fuse((char*)PCM_fuse);
|
||||
|
||||
#endif /*!PRE_ANDROID23 && !__APPLE__*/
|
||||
|
||||
@@ -172,6 +172,7 @@ extern SoundDesc SA_creeperdeath;
|
||||
extern SoundDesc SA_eat1;
|
||||
extern SoundDesc SA_eat2;
|
||||
extern SoundDesc SA_eat3;
|
||||
extern SoundDesc SA_burp1;
|
||||
extern SoundDesc SA_fuse;
|
||||
|
||||
#endif /*!PRE_ANDROID23 && !__APPLE__*/
|
||||
|
||||
@@ -144,6 +144,7 @@ void SoundEngine::init( Minecraft* mc, Options* options )
|
||||
sounds.add("random.eat", SA_eat1);
|
||||
sounds.add("random.eat", SA_eat2);
|
||||
sounds.add("random.eat", SA_eat3);
|
||||
sounds.add("random.burp", SA_burp1);
|
||||
sounds.add("random.fuse", SA_fuse);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -227,6 +227,7 @@ void SoundEngine::init( Minecraft* mc, Options* options )
|
||||
sounds.add( "random.eat", _pp("eat1"));
|
||||
sounds.add( "random.eat", _pp("eat2"));
|
||||
sounds.add( "random.eat", _pp("eat3"));
|
||||
sounds.add( "random.burp", _pp("burp1"));
|
||||
sounds.add( "random.fuse", _pp("fuse"));
|
||||
|
||||
sounds.add( "step.cloth", _pp("cloth1"));
|
||||
|
||||
2413
src/client/sound/data/burp1.pcm
Normal file
2413
src/client/sound/data/burp1.pcm
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user