Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a9633ae412d729341ab847113113bd23
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,723 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,maximum-scale=1.0,user-scalable=no" />
<title>Unity WebGL Player | %UNITY_WEB_NAME%</title>
<style>
* {
border: 0;
margin: 0;
padding: 0;
}
</style>
<script src="%UNITY_WEBGL_LOADER_URL%"></script>
<script>
var storage = {};
function getStorageValue(key, defaultValue) {
var v = storage[key];
if (v === null) {
return defaultValue;
}
if (typeof v !== 'undefined') {
return v;
}
return defaultValue;
}
var WXWASMSDK = {
WXInitializeSDK() {
gameInstance.SendMessage('WXSDKManagerHandler', 'Inited', 200);
},
WXStorageSetIntSync(key, value) {
storage[key] = value;
},
WXStorageGetIntSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetFloatSync(key, value) {
storage[key] = value;
},
WXStorageGetFloatSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetStringSync(key, value) {
storage[key] = value;
},
WXStorageGetStringSync(key, defaultValue) {
return getStorageValue(key, defaultValue || '');
},
WXStorageDeleteAllSync() {
storage = {};
},
WXStorageDeleteKeySync(key) {
delete storage[key];
},
WXStorageHasKeySync(key) {
return typeof storage[key] === 'undefined';
},
WXCheckSession(s, f, c) {},
WXAuthorize(scope, s, f, c) {},
WXCreateUserInfoButton(x, y, width, height, lang, withCredentials) {
return "";
},
WXUserInfoButtonShow(id) {},
WXUserInfoButtonDestroy(id) {},
WXUserInfoButtonHide(id) {},
WXUserInfoButtonOffTap(id) {},
WXUserInfoButtonOnTap(id) {},
WXOnShareAppMessage(conf, isPromise) {},
WXOnShareAppMessageResolve(conf) {},
WXOffShareAppMessage() {},
WXCreateBannerAd(conf) {
return Math.random().toString(32);
},
WXCreateRewardedVideoAd(conf) {
return Math.random().toString(32);
},
WXCreateInterstitialAd(conf) {
return Math.random().toString(32);
},
WXCreateCustomAd(conf) {},
WXADStyleChange(id, key, value) {},
WXShowAd(id) {},
WXHideAd(id) {},
WXADGetStyleValue(id, key) {},
WXADDestroy(id) {},
WXADLoad(id, succ, fail) {},
WXToTempFilePathSync(conf) {},
WXGetUserDataPath() {},
WXWriteFileSync(filePath, data, encoding) {},
WXCreateFixedBottomMiddleBannerAd(adUnitId, adIntervals, height) {
return Math.random().toString(32);
},
WXReportGameStart() {},
WXReportGameSceneError(sceneId, errorType, errStr, extJsonStr) {},
WXWriteLog(str) {},
WXWriteWarn(str) {},
WXHideLoadingPage() {},
WXPreloadConcurrent() {},
WXCreateInnerAudioContext() {
return Math.random().toString(32);
},
WXInnerAudioContextSetBool() {},
WXInnerAudioContextSetString() {},
WXInnerAudioContextSetFloat() {},
WXInnerAudioContextGetFloat() {},
WXInnerAudioContextGetBool() {},
WXInnerAudioContextPlay() {},
WXInnerAudioContextPause() {},
WXInnerAudioContextStop() {},
WXInnerAudioContextDestroy() {},
WXInnerAudioContextSeek() {},
WXInnerAudioContextAddListener(id, key) {
if (key === 'onCanplay') {
setTimeout(function () {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'OnAudioCallback',
JSON.stringify({
callbackId: id,
errMsg: key,
})
);
}, 100);
}
},
WXInnerAudioContextRemoveListener() {},
WXPreDownloadAudios(paths, id) {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'WXPreDownloadAudiosCallback',
JSON.stringify({
callbackId: id.toString(),
errMsg: '0',
})
);
},
WXCreateVideo() {
return Math.random().toString(32);
},
WXVideoPlay() {},
WXVideoAddListener() {},
WXVideoDestroy() {},
WXVideoExitFullScreen() {},
WXVideoPause() {},
WXVideoRequestFullScreen() {},
WXVideoSeek() {},
WXVideoStop() {},
WXVideoRemoveListener() {},
WXVideoSetProperty() {},
WXShowOpenData() {},
WXDownloadTexture(id, type, callback) {
var Infos = {
Texture: GameGlobal.TextureConfig,
SpriteAtlas: GameGlobal.SpriteAtlasConfig,
}[type];
if (!Infos[id]) {
return console.error(type + '映射id 不存在', id);
}
var path = Infos[id].p;
var cid = type + '_' + id;
if (downloadedTextures[cid]) {
if (downloadedTextures[cid].data) {
callback();
} else {
console.error(type + '映射id data 不存在!', id);
}
} else if (downloadingTextures[cid]) {
downloadingTextures[cid].push(callback);
} else {
downloadingTextures[cid] = [callback];
textureHandler.downloadFile(
id,
type,
GameGlobal.AUDIO_PREFIX.replace(/\/$/, '') + '/' + path.replace(/\\/g, '/')
);
}
},
WXCreateGameClubButton() {
return Math.random().toString(32);
},
WXGameClubButtonDestroy() {},
WXGameClubButtonHide() {},
WXGameClubButtonShow() {},
WXGameClubButtonAddListener() {},
WXGameClubButtonRemoveListener() {},
WXGameClubButtonSetProperty() {},
WXGameClubStyleChangeInt() {},
WXGameClubStyleChangeStr() {},
WXIsCloudTest() {
return false;
},
WXUncaughtException() {},
WXSetDataCDN() {},
WXSetPreloadList() {},
WXGetCachePath() {},
WXGetPluginCachePath() {},
WXGetFontRawData() {},
WXShareFontBuffer() {},
WXReportShareBehavior() {},
WXShowAd2() {},
WXToTempFilePath() {},
WXDataContextPostMessage() {},
WXHideOpenData() {},
WXAccessFileSync() {},
WXAccessFile() {},
WXCopyFileSync() {},
WXCopyFile() {},
WXUnlinkSync() {},
WXUnlink() {},
WXReportUserBehaviorBranchAnalytics() {},
WXCallFunction() {},
WXCallFunctionInit() {},
WXCloudID() {},
WXWriteFile() {},
WXWriteStringFile() {},
WXAppendFile() {},
WXAppendStringFile() {},
WXWriteBinFileSync() {},
WXReadFile() {},
WXReadFileSync() {},
WXLogManagerDebug() {},
WXLogManagerInfo() {},
WXLogManagerLog() {},
WXLogManagerWarn() {},
WXCleanAllFileCache() {},
WXCleanFileCache() {},
WXRemoveFile() {},
WXOnLaunchProgress() {},
WXMkdir() {},
WXMkdirSync() {},
WXRmdir() {},
WXRmdirSync() {},
WXCameraCreateCamera() {},
WXCameraCloseFrameChange() {},
WXCameraDestroy() {},
WXCameraListenFrameChange() {},
WXCameraOnAuthCancel() {},
WXCameraOnCameraFrame() {},
WXCameraOnStop() {},
WX_GetRecorderManager() {},
WX_OnRecorderError() {},
WX_OnRecorderFrameRecorded() {},
WX_OnRecorderInterruptionBegin() {},
WX_OnRecorderInterruptionEnd() {},
WX_OnRecorderPause() {},
WX_OnRecorderResume() {},
WX_OnRecorderStart() {},
WX_OnRecorderStop() {},
WX_RecorderPause() {},
WX_RecorderResume() {},
WX_RecorderStart() {},
WX_RecorderStop() {},
WX_UploadFile() {},
WXUploadTaskAbort() {},
WXUploadTaskOffHeadersReceived() {},
WXUploadTaskOffProgressUpdate() {},
WXUploadTaskOnHeadersReceived() {},
WXUploadTaskOnProgressUpdate() {},
WXStat() {},
WX_GetGameRecorder() {},
WX_GameRecorderOff() {},
WX_GameRecorderOn() {},
WX_GameRecorderStart() {},
WX_GameRecorderAbort() {},
WX_GameRecorderPause() {},
WX_GameRecorderResume() {},
WX_GameRecorderStop() {},
WX_OperateGameRecorderVideo() {},
WXChatCreate() {},
WXChatHide() {},
WXChatShow() {},
WXChatClose() {},
WXChatOpen() {},
WXChatSetTabs() {},
WXChatOn() {},
WXChatOff() {},
WXChatSetSignature() {},
WXSetArrayBuffer() {},
WX_FileSystemManagerReaddirSync() {},
WX_FileSystemManagerReadCompressedFileSync() {},
WX_FileSystemManagerClose() {},
WX_FileSystemManagerFstat() {},
WX_FileSystemManagerFtruncate() {},
WX_FileSystemManagerGetFileInfo() {},
WX_FileSystemManagerGetSavedFileList() {},
WX_FileSystemManagerOpen() {},
WX_FileSystemManagerRead() {},
WX_FileSystemManagerReadCompressedFile() {},
WX_FileSystemManagerReadZipEntry() {},
WX_FileSystemManagerReaddir() {},
WX_FileSystemManagerRemoveSavedFile() {},
WX_FileSystemManagerRename() {},
WX_FileSystemManagerRenameSync() {},
WX_FileSystemManagerSaveFile() {},
WX_FileSystemManagerTruncate() {},
WX_FileSystemManagerUnzip() {},
WX_FileSystemManagerWrite() {},
WX_FileSystemManagerReadSync() {},
WX_FileSystemManagerFstatSync() {},
WX_FileSystemManagerStatSync() {},
WX_FileSystemManagerWriteSync() {},
WX_FileSystemManagerOpenSync() {},
WX_FileSystemManagerSaveFileSync() {},
WX_FileSystemManagerCloseSync() {},
WX_FileSystemManagerFtruncateSync() {},
WX_FileSystemManagerTruncateSync() {},
WX_FileSystemManagerAppendFileSync() {},
WX_FileSystemManagerAppendFileStringSync() {},
WX_FileSystemManagerWriteStringSync() {},
WX_FileSystemManagerReadZipEntryString() {},
WX_FileSystemManagerWriteString() {},
WX_OnNeedPrivacyAuthorization() {},
WX_PrivacyAuthorizeResolve() {},
WX_AddCard(conf, callbackId){},
WX_AuthPrivateMessage(conf, callbackId){},
WX_Authorize(conf, callbackId){},
WX_CheckIsAddedToMyMiniProgram(conf, callbackId){},
WX_CheckSession(conf, callbackId){},
WX_ChooseImage(conf, callbackId){},
WX_ChooseMedia(conf, callbackId){},
WX_ChooseMessageFile(conf, callbackId){},
WX_CloseBLEConnection(conf, callbackId){},
WX_CloseBluetoothAdapter(conf, callbackId){},
WX_CompressImage(conf, callbackId){},
WX_CreateBLEConnection(conf, callbackId){},
WX_CreateBLEPeripheralServer(conf, callbackId){},
WX_ExitMiniProgram(conf, callbackId){},
WX_ExitVoIPChat(conf, callbackId){},
WX_FaceDetect(conf, callbackId){},
WX_GetAvailableAudioSources(conf, callbackId){},
WX_GetBLEDeviceCharacteristics(conf, callbackId){},
WX_GetBLEDeviceRSSI(conf, callbackId){},
WX_GetBLEDeviceServices(conf, callbackId){},
WX_GetBLEMTU(conf, callbackId){},
WX_GetBackgroundFetchData(conf, callbackId){},
WX_GetBackgroundFetchToken(conf, callbackId){},
WX_GetBatteryInfo(conf, callbackId){},
WX_GetBeacons(conf, callbackId){},
WX_GetBluetoothAdapterState(conf, callbackId){},
WX_GetBluetoothDevices(conf, callbackId){},
WX_GetChannelsLiveInfo(conf, callbackId){},
WX_GetChannelsLiveNoticeInfo(conf, callbackId){},
WX_GetClipboardData(conf, callbackId){},
WX_GetConnectedBluetoothDevices(conf, callbackId){},
WX_GetExtConfig(conf, callbackId){},
WX_GetFuzzyLocation(conf, callbackId){},
WX_GetGameClubData(conf, callbackId){},
WX_GetGroupEnterInfo(conf, callbackId){},
WX_GetInferenceEnvInfo(conf, callbackId){},
WX_GetLocalIPAddress(conf, callbackId){},
WX_GetLocation(conf, callbackId){},
WX_GetNetworkType(conf, callbackId){},
WX_GetPrivacySetting(conf, callbackId){},
WX_GetScreenBrightness(conf, callbackId){},
WX_GetSetting(conf, callbackId){},
WX_GetShareInfo(conf, callbackId){},
WX_GetStorageInfo(conf, callbackId){},
WX_GetSystemInfo(conf, callbackId){},
WX_GetSystemInfoAsync(conf, callbackId){},
WX_GetUserInfo(conf, callbackId){},
WX_GetUserInteractiveStorage(conf, callbackId){},
WX_GetWeRunData(conf, callbackId){},
WX_HideKeyboard(conf, callbackId){},
WX_HideLoading(conf, callbackId){},
WX_HideShareMenu(conf, callbackId){},
WX_HideToast(conf, callbackId){},
WX_InitFaceDetect(conf, callbackId){},
WX_IsBluetoothDevicePaired(conf, callbackId){},
WX_JoinVoIPChat(conf, callbackId){},
WX_Login(conf, callbackId){},
WX_MakeBluetoothPair(conf, callbackId){},
WX_NavigateToMiniProgram(conf, callbackId){},
WX_NotifyBLECharacteristicValueChange(conf, callbackId){},
WX_OpenAppAuthorizeSetting(conf, callbackId){},
WX_OpenBluetoothAdapter(conf, callbackId){},
WX_OpenCard(conf, callbackId){},
WX_OpenChannelsActivity(conf, callbackId){},
WX_OpenChannelsEvent(conf, callbackId){},
WX_OpenChannelsLive(conf, callbackId){},
WX_OpenChannelsUserProfile(conf, callbackId){},
WX_OpenCustomerServiceChat(conf, callbackId){},
WX_OpenCustomerServiceConversation(conf, callbackId){},
WX_OpenPrivacyContract(conf, callbackId){},
WX_OpenSetting(conf, callbackId){},
WX_OpenSystemBluetoothSetting(conf, callbackId){},
WX_PreviewImage(conf, callbackId){},
WX_PreviewMedia(conf, callbackId){},
WX_ReadBLECharacteristicValue(conf, callbackId){},
WX_RemoveStorage(conf, callbackId){},
WX_RemoveUserCloudStorage(conf, callbackId){},
WX_ReportScene(conf, callbackId){},
WX_RequestMidasFriendPayment(conf, callbackId){},
WX_RequestMidasPayment(conf, callbackId){},
WX_RequestSubscribeMessage(conf, callbackId){},
WX_RequestSubscribeSystemMessage(conf, callbackId){},
WX_RequirePrivacyAuthorize(conf, callbackId){},
WX_RestartMiniProgram(conf, callbackId){},
WX_SaveFileToDisk(conf, callbackId){},
WX_SaveImageToPhotosAlbum(conf, callbackId){},
WX_ScanCode(conf, callbackId){},
WX_SetBLEMTU(conf, callbackId){},
WX_SetBackgroundFetchToken(conf, callbackId){},
WX_SetClipboardData(conf, callbackId){},
WX_SetDeviceOrientation(conf, callbackId){},
WX_SetEnableDebug(conf, callbackId){},
WX_SetInnerAudioOption(conf, callbackId){},
WX_SetKeepScreenOn(conf, callbackId){},
WX_SetMenuStyle(conf, callbackId){},
WX_SetScreenBrightness(conf, callbackId){},
WX_SetStatusBarStyle(conf, callbackId){},
WX_SetUserCloudStorage(conf, callbackId){},
WX_ShowActionSheet(conf, callbackId){},
WX_ShowKeyboard(conf, callbackId){},
WX_ShowLoading(conf, callbackId){},
WX_ShowModal(conf, callbackId){},
WX_ShowShareImageMenu(conf, callbackId){},
WX_ShowShareMenu(conf, callbackId){},
WX_ShowToast(conf, callbackId){},
WX_StartAccelerometer(conf, callbackId){},
WX_StartBeaconDiscovery(conf, callbackId){},
WX_StartBluetoothDevicesDiscovery(conf, callbackId){},
WX_StartCompass(conf, callbackId){},
WX_StartDeviceMotionListening(conf, callbackId){},
WX_StartGyroscope(conf, callbackId){},
WX_StopAccelerometer(conf, callbackId){},
WX_StopBeaconDiscovery(conf, callbackId){},
WX_StopBluetoothDevicesDiscovery(conf, callbackId){},
WX_StopCompass(conf, callbackId){},
WX_StopDeviceMotionListening(conf, callbackId){},
WX_StopFaceDetect(conf, callbackId){},
WX_StopGyroscope(conf, callbackId){},
WX_UpdateKeyboard(conf, callbackId){},
WX_UpdateShareMenu(conf, callbackId){},
WX_UpdateVoIPChatMuteConfig(conf, callbackId){},
WX_UpdateWeChatApp(conf, callbackId){},
WX_VibrateLong(conf, callbackId){},
WX_VibrateShort(conf, callbackId){},
WX_WriteBLECharacteristicValue(conf, callbackId){},
WX_StartGameLive(conf, callbackId){},
WX_CheckGameLiveEnabled(conf, callbackId){},
WX_GetUserCurrentGameliveInfo(conf, callbackId){},
WX_GetUserRecentGameLiveInfo(conf, callbackId){},
WX_GetUserGameLiveDetails(conf, callbackId){},
WX_OpenChannelsLiveCollection(conf, callbackId){},
WX_OpenPage(conf, callbackId){},
WX_RequestMidasPaymentGameItem(conf, callbackId){},
WX_RequestSubscribeLiveActivity(conf, callbackId){},
WX_OperateGameRecorderVideo() {},
WX_RemoveStorageSync() {},
WX_ReportEvent() {},
WX_ReportMonitor() {},
WX_ReportPerformance() {},
WX_ReportUserBehaviorBranchAnalytics() {},
WX_ReserveChannelsLive() {},
WX_RevokeBufferURL() {},
WX_SetPreferredFramesPerSecond() {},
WX_SetStorageSync() {},
WX_ShareAppMessage() {},
WX_TriggerGC() {},
WX_OnAccelerometerChange() {},
WX_OffAccelerometerChange() {},
WX_OnAudioInterruptionBegin() {},
WX_OffAudioInterruptionBegin() {},
WX_OnAudioInterruptionEnd() {},
WX_OffAudioInterruptionEnd() {},
WX_OnBLECharacteristicValueChange() {},
WX_OffBLECharacteristicValueChange() {},
WX_OnBLEConnectionStateChange() {},
WX_OffBLEConnectionStateChange() {},
WX_OnBLEMTUChange() {},
WX_OffBLEMTUChange() {},
WX_OnBLEPeripheralConnectionStateChanged() {},
WX_OffBLEPeripheralConnectionStateChanged() {},
WX_OnBackgroundFetchData() {},
WX_OnBeaconServiceChange() {},
WX_OffBeaconServiceChange() {},
WX_OnBeaconUpdate() {},
WX_OffBeaconUpdate() {},
WX_OnBluetoothAdapterStateChange() {},
WX_OffBluetoothAdapterStateChange() {},
WX_OnBluetoothDeviceFound() {},
WX_OffBluetoothDeviceFound() {},
WX_OnCompassChange() {},
WX_OffCompassChange() {},
WX_OnDeviceMotionChange() {},
WX_OffDeviceMotionChange() {},
WX_OnDeviceOrientationChange() {},
WX_OffDeviceOrientationChange() {},
WX_OnError() {},
WX_OffError() {},
WX_OnGyroscopeChange() {},
WX_OffGyroscopeChange() {},
WX_OnHide() {},
WX_OffHide() {},
WX_OnInteractiveStorageModified() {},
WX_OffInteractiveStorageModified() {},
WX_OnKeyDown() {},
WX_OffKeyDown() {},
WX_OnKeyUp() {},
WX_OffKeyUp() {},
WX_OnKeyboardComplete() {},
WX_OffKeyboardComplete() {},
WX_OnKeyboardConfirm() {},
WX_OffKeyboardConfirm() {},
WX_OnKeyboardHeightChange() {},
WX_OffKeyboardHeightChange() {},
WX_OnKeyboardInput() {},
WX_OffKeyboardInput() {},
WX_OnMemoryWarning() {},
WX_OffMemoryWarning() {},
WX_OnMessage() {},
WX_OnMouseDown() {},
WX_OffMouseDown() {},
WX_OnMouseMove() {},
WX_OffMouseMove() {},
WX_OnMouseUp() {},
WX_OffMouseUp() {},
WX_OnNetworkStatusChange() {},
WX_OffNetworkStatusChange() {},
WX_OnNetworkWeakChange() {},
WX_OffNetworkWeakChange() {},
WX_OnShareMessageToFriend() {},
WX_OnShow() {},
WX_OffShow() {},
WX_OnTouchCancel() {},
WX_OffTouchCancel() {},
WX_OnTouchEnd() {},
WX_OffTouchEnd() {},
WX_OnTouchMove() {},
WX_OffTouchMove() {},
WX_OnTouchStart() {},
WX_OffTouchStart() {},
WX_OnUnhandledRejection() {},
WX_OffUnhandledRejection() {},
WX_OnUserCaptureScreen() {},
WX_OffUserCaptureScreen() {},
WX_OnVoIPChatInterrupted() {},
WX_OffVoIPChatInterrupted() {},
WX_OnVoIPChatMembersChanged() {},
WX_OffVoIPChatMembersChanged() {},
WX_OnVoIPChatSpeakersChanged() {},
WX_OffVoIPChatSpeakersChanged() {},
WX_OnVoIPChatStateChanged() {},
WX_OffVoIPChatStateChanged() {},
WX_OnWheel() {},
WX_OffWheel() {},
WX_OnWindowResize() {},
WX_OffWindowResize() {},
WX_OnAddToFavorites() {},
WX_OnAddToFavorites_Resolve(conf){},
WX_OffAddToFavorites() {},
WX_OnCopyUrl() {},
WX_OnCopyUrl_Resolve(conf){},
WX_OffCopyUrl() {},
WX_OnHandoff() {},
WX_OnHandoff_Resolve(conf){},
WX_OffHandoff() {},
WX_OnShareTimeline() {},
WX_OnShareTimeline_Resolve(conf){},
WX_OffShareTimeline() {},
WX_OnGameLiveStateChange() {},
WX_OnGameLiveStateChange_Resolve(conf){},
WX_OffGameLiveStateChange() {},
WX_SetHandoffQuery(query){
return "";
},
WX_GetAccountInfoSync(){
return JSON.stringify({});
},
WX_GetAppAuthorizeSetting(){
return JSON.stringify({});
},
WX_GetAppBaseInfo(){
return JSON.stringify({});
},
WX_GetBatteryInfoSync(){
return JSON.stringify({});
},
WX_GetDeviceInfo(){
return JSON.stringify({});
},
WX_GetEnterOptionsSync(){
return JSON.stringify({});
},
WX_GetExptInfoSync(keys){
return JSON.stringify({});
},
WX_GetExtConfigSync(){
return JSON.stringify({});
},
WX_GetLaunchOptionsSync(){
return JSON.stringify({});
},
WX_GetMenuButtonBoundingClientRect(){
return JSON.stringify({});
},
WX_GetStorageInfoSync(){
return JSON.stringify({});
},
WX_GetSystemInfoSync(){
return JSON.stringify({});
},
WX_GetSystemSetting(){
return JSON.stringify({});
},
WX_GetWindowInfo(){
return JSON.stringify({});
},
WX_CreateImageData(){
return JSON.stringify({});
},
WX_CreatePath2D(){
return JSON.stringify({});
},
WX_SetCursor(path, x, y){
return "";
},
WX_SetMessageToFriendQuery(option){
return "";
},
WX_GetTextLineHeight(option){
return "";
},
WX_LoadFont(path){
return "";
},
WX_GetGameLiveState(){
return JSON.stringify({});
},
WX_DownloadFile() {return ""},
WX_CreateFeedbackButton() {return ""},
WX_GetLogManager() {return ""},
WX_GetRealtimeLogManager() {return ""},
WX_GetUpdateManager() {return ""},
WX_CreateVideoDecoder() {return ""},
WX_DownloadTaskAbort() {},
WX_DownloadTaskOffHeadersReceived() {},
WX_DownloadTaskOffProgressUpdate() {},
WX_DownloadTaskOnHeadersReceived() {},
WX_DownloadTaskOnProgressUpdate() {},
WXFeedbackButtonSetProperty() {},
WX_FeedbackButtonDestroy() {},
WX_FeedbackButtonHide() {},
WX_FeedbackButtonOffTap() {},
WX_FeedbackButtonOnTap() {},
WX_FeedbackButtonShow() {},
WX_LogManagerDebug() {},
WX_LogManagerInfo() {},
WX_LogManagerLog() {},
WX_LogManagerWarn() {},
WX_RealtimeLogManagerAddFilterMsg() {},
WX_RealtimeLogManagerError() {},
WX_RealtimeLogManagerInfo() {},
WX_RealtimeLogManagerSetFilterMsg() {},
WX_RealtimeLogManagerWarn() {},
WX_UpdateManagerApplyUpdate() {},
WX_UpdateManagerOnCheckForUpdate() {},
WX_UpdateManagerOnUpdateFailed() {},
WX_UpdateManagerOnUpdateReady() {},
WX_VideoDecoderGetFrameData() {},
WX_VideoDecoderRemove() {},
WX_VideoDecoderSeek() {},
WX_VideoDecoderStart() {},
WX_VideoDecoderStop() {},
WX_VideoDecoderOff() {},
WX_VideoDecoderOn() {},
};
var downloadedTextures = {};
var downloadingTextures = {};
var textureHandler = {
downloadFile(textureId, type, prefix) {
var url = prefix + '.png';
var cid = type + '_' + textureId;
var image = new Image();
image.src = url;
image.onload = function () {
downloadedTextures[cid] = {
data: image,
};
if (downloadingTextures[cid] instanceof Array) {
downloadingTextures[cid].forEach(v => v());
} else {
downloadingTextures[cid]();
}
delete downloadingTextures[cid];
};
image.onerror = function () {
console.error(url + ' 下载失败!');
};
},
};
var GameGlobal = {
TextureConfig: {},
SpriteAtlasConfig: {},
DownloadedTextures: downloadedTextures,
AUDIO_PREFIX: './Assets/Textures/',
};
window._ScaleRate = 1;
</script>
<script>
var gameInstance = UnityLoader.instantiate('gameContainer', '%UNITY_WEBGL_BUILD_URL%');
</script>
</head>
<body>
<div id="gameContainer" style="width: 100%; height: 100%; margin: auto"></div>
<script>
document.addEventListener('DOMContentLoaded', () => {
var div = document.getElementById('gameContainer');
div.style.width = window.innerWidth + 'px';
div.style.height = window.innerHeight + 'px';
window.canvas = document.getElementsByTagName('canvas')[0];
});
</script>
</body>
</html>
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e8f97b36f4f314df1b6c6e60c2b0906a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d8a1dcb512f394b7187ac255c4eb2222
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7b11f0b5a84093748bf85b753b996019
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,781 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,maximum-scale=1.0,user-scalable=no" />
<title>Unity WebGL Player | {{{ PRODUCT_NAME }}}</title>
<style>
* {
border: 0;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="unity-container" class="unity-desktop">
<canvas id="unity-canvas" width="960" height="600" style="width: 960px; height: 600px"></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
<div id="unity-progress-bar-empty">
<div id="unity-progress-bar-full"></div>
</div>
</div>
<div id="unity-mobile-warning" style="display: none">WebGL builds are not supported on mobile devices.</div>
<div id="unity-footer" style="display: none">
<div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div>
<div id="unity-build-title">{{{ PRODUCT_NAME }}}</div>
</div>
</div>
<script>
var buildUrl = "Build";
var loaderUrl = buildUrl + "/{{{ LOADER_FILENAME }}}";
var config = {
dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}",
frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}",
codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}",
symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}",
streamingAssetsUrl: "StreamingAssets",
companyName: "{{{ COMPANY_NAME }}}",
productName: "{{{ PRODUCT_NAME }}}",
productVersion: "{{{ PRODUCT_VERSION }}}",
};
</script>
<script>
var gameInstance;
document.addEventListener('DOMContentLoaded', () => {
var container = document.querySelector('#unity-container');
var canvas = document.querySelector('#unity-canvas');
var loadingBar = document.querySelector('#unity-loading-bar');
var progressBarFull = document.querySelector('#unity-progress-bar-full');
var fullscreenButton = document.querySelector('#unity-fullscreen-button');
var mobileWarning = document.querySelector('#unity-mobile-warning');
window.canvas = canvas;
// By default Unity keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
// Set this to false if you want to decouple this synchronization from
// happening inside the engine, and you would instead like to size up
// the canvas DOM size and WebGL render target sizes yourself.
// config.matchWebGLToCanvasSize = false;
loadingBar.style.display = 'block';
var script = document.createElement('script');
script.src = loaderUrl;
script.onload = () => {
createUnityInstance(canvas, config, (progress) => {
progressBarFull.style.width = 100 * progress + '%';
})
.then((unityInstance) => {
loadingBar.style.display = 'none';
fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1);
};
gameInstance = unityInstance;
})
.catch((message) => {
alert(message);
});
};
document.body.appendChild(script);
canvas.style.width = window.innerWidth + 'px';
canvas.style.height = window.innerHeight + 'px';
});
</script>
<script>
var storage = {};
function getStorageValue(key, defaultValue) {
var v = storage[key];
if (v === null) {
return defaultValue;
}
if (typeof v !== 'undefined') {
return v;
}
return defaultValue;
}
var WXWASMSDK = {
WXInitializeSDK() {
gameInstance.SendMessage('WXSDKManagerHandler', 'Inited', 200);
},
WXStorageSetIntSync(key, value) {
storage[key] = value;
},
WXStorageGetIntSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetFloatSync(key, value) {
storage[key] = value;
},
WXStorageGetFloatSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetStringSync(key, value) {
storage[key] = value;
},
WXStorageGetStringSync(key, defaultValue) {
return getStorageValue(key, defaultValue || '');
},
WXStorageDeleteAllSync() {
storage = {};
},
WXStorageDeleteKeySync(key) {
delete storage[key];
},
WXStorageHasKeySync(key) {
return typeof storage[key] === 'undefined';
},
WXCheckSession(s, f, c) {},
WXAuthorize(scope, s, f, c) {},
WXCreateUserInfoButton(x, y, width, height, lang, withCredentials) {
return "";
},
WXUserInfoButtonShow(id) {},
WXUserInfoButtonDestroy(id) {},
WXUserInfoButtonHide(id) {},
WXUserInfoButtonOffTap(id) {},
WXUserInfoButtonOnTap(id) {},
WXOnShareAppMessage(conf, isPromise) {},
WXOnShareAppMessageResolve(conf) {},
WXOffShareAppMessage() {},
WXCreateBannerAd(conf) {
return Math.random().toString(32);
},
WXCreateRewardedVideoAd(conf) {
return Math.random().toString(32);
},
WXCreateInterstitialAd(conf) {
return Math.random().toString(32);
},
WXCreateCustomAd(conf) {},
WXADStyleChange(id, key, value) {},
WXShowAd(id) {},
WXHideAd(id) {},
WXADGetStyleValue(id, key) {},
WXADDestroy(id) {},
WXADLoad(id, succ, fail) {},
WXToTempFilePathSync(conf) {},
WXGetUserDataPath() {},
WXWriteFileSync(filePath, data, encoding) {},
WXCreateFixedBottomMiddleBannerAd(adUnitId, adIntervals, height) {
return Math.random().toString(32);
},
WXReportGameStart() {},
WXReportGameSceneError(sceneId, errorType, errStr, extJsonStr) {},
WXWriteLog(str) {},
WXWriteWarn(str) {},
WXHideLoadingPage() {},
WXPreloadConcurrent() {},
WXCreateInnerAudioContext() {
return Math.random().toString(32);
},
WXInnerAudioContextSetBool() {},
WXInnerAudioContextSetString() {},
WXInnerAudioContextSetFloat() {},
WXInnerAudioContextGetFloat() {},
WXInnerAudioContextGetBool() {},
WXInnerAudioContextPlay() {},
WXInnerAudioContextPause() {},
WXInnerAudioContextStop() {},
WXInnerAudioContextDestroy() {},
WXInnerAudioContextSeek() {},
WXInnerAudioContextAddListener(id, key) {
if (key === 'onCanplay') {
setTimeout(function () {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'OnAudioCallback',
JSON.stringify({
callbackId: id,
errMsg: key,
})
);
}, 100);
}
},
WXInnerAudioContextRemoveListener() {},
WXPreDownloadAudios(paths, id) {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'WXPreDownloadAudiosCallback',
JSON.stringify({
callbackId: id.toString(),
errMsg: '0',
})
);
},
WXCreateVideo() {
return Math.random().toString(32);
},
WXVideoPlay() {},
WXVideoAddListener() {},
WXVideoDestroy() {},
WXVideoExitFullScreen() {},
WXVideoPause() {},
WXVideoRequestFullScreen() {},
WXVideoSeek() {},
WXVideoStop() {},
WXVideoRemoveListener() {},
WXVideoSetProperty() {},
WXShowOpenData() {},
WXDownloadTexture(id, type, callback) {
var Infos = {
Texture: GameGlobal.TextureConfig,
SpriteAtlas: GameGlobal.SpriteAtlasConfig,
}[type];
if (!Infos[id]) {
return console.error(type + '映射id 不存在', id);
}
var path = Infos[id].p;
var cid = type + '_' + id;
if (downloadedTextures[cid]) {
if (downloadedTextures[cid].data) {
callback();
} else {
console.error(type + '映射id data 不存在!', id);
}
} else if (downloadingTextures[cid]) {
downloadingTextures[cid].push(callback);
} else {
downloadingTextures[cid] = [callback];
textureHandler.downloadFile(
id,
type,
GameGlobal.AUDIO_PREFIX.replace(/\/$/, '') + '/' + path.replace(/\\/g, '/')
);
}
},
WXCreateGameClubButton() {
return Math.random().toString(32);
},
WXGameClubButtonDestroy() {},
WXGameClubButtonHide() {},
WXGameClubButtonShow() {},
WXGameClubButtonAddListener() {},
WXGameClubButtonRemoveListener() {},
WXGameClubButtonSetProperty() {},
WXGameClubStyleChangeInt() {},
WXGameClubStyleChangeStr() {},
WXIsCloudTest() {
return false;
},
WXUncaughtException() {},
WXSetDataCDN() {},
WXSetPreloadList() {},
WXGetCachePath() {},
WXGetPluginCachePath() {},
WXGetFontRawData() {},
WXShareFontBuffer() {},
WXReportShareBehavior() {},
WXShowAd2() {},
WXToTempFilePath() {},
WXDataContextPostMessage() {},
WXHideOpenData() {},
WXAccessFileSync() {},
WXAccessFile() {},
WXCopyFileSync() {},
WXCopyFile() {},
WXUnlinkSync() {},
WXUnlink() {},
WXReportUserBehaviorBranchAnalytics() {},
WXCallFunction() {},
WXCallFunctionInit() {},
WXCloudID() {},
WXWriteFile() {},
WXWriteStringFile() {},
WXAppendFile() {},
WXAppendStringFile() {},
WXWriteBinFileSync() {},
WXReadFile() {},
WXReadFileSync() {},
WXLogManagerDebug() {},
WXLogManagerInfo() {},
WXLogManagerLog() {},
WXLogManagerWarn() {},
WXCleanAllFileCache() {},
WXCleanFileCache() {},
WXRemoveFile() {},
WXOnLaunchProgress() {},
WXMkdir() {},
WXMkdirSync() {},
WXRmdir() {},
WXRmdirSync() {},
WXCameraCreateCamera() {},
WXCameraCloseFrameChange() {},
WXCameraDestroy() {},
WXCameraListenFrameChange() {},
WXCameraOnAuthCancel() {},
WXCameraOnCameraFrame() {},
WXCameraOnStop() {},
WX_GetRecorderManager() {},
WX_OnRecorderError() {},
WX_OnRecorderFrameRecorded() {},
WX_OnRecorderInterruptionBegin() {},
WX_OnRecorderInterruptionEnd() {},
WX_OnRecorderPause() {},
WX_OnRecorderResume() {},
WX_OnRecorderStart() {},
WX_OnRecorderStop() {},
WX_RecorderPause() {},
WX_RecorderResume() {},
WX_RecorderStart() {},
WX_RecorderStop() {},
WX_UploadFile() {},
WXUploadTaskAbort() {},
WXUploadTaskOffHeadersReceived() {},
WXUploadTaskOffProgressUpdate() {},
WXUploadTaskOnHeadersReceived() {},
WXUploadTaskOnProgressUpdate() {},
WXStat() {},
WX_GetGameRecorder() {},
WX_GameRecorderOff() {},
WX_GameRecorderOn() {},
WX_GameRecorderStart() {},
WX_GameRecorderAbort() {},
WX_GameRecorderPause() {},
WX_GameRecorderResume() {},
WX_GameRecorderStop() {},
WX_OperateGameRecorderVideo() {},
WXChatCreate() {},
WXChatHide() {},
WXChatShow() {},
WXChatClose() {},
WXChatOpen() {},
WXChatSetTabs() {},
WXChatOn() {},
WXChatOff() {},
WXChatSetSignature() {},
WXSetArrayBuffer() {},
WX_FileSystemManagerReaddirSync() {},
WX_FileSystemManagerReadCompressedFileSync() {},
WX_FileSystemManagerClose() {},
WX_FileSystemManagerFstat() {},
WX_FileSystemManagerFtruncate() {},
WX_FileSystemManagerGetFileInfo() {},
WX_FileSystemManagerGetSavedFileList() {},
WX_FileSystemManagerOpen() {},
WX_FileSystemManagerRead() {},
WX_FileSystemManagerReadCompressedFile() {},
WX_FileSystemManagerReadZipEntry() {},
WX_FileSystemManagerReaddir() {},
WX_FileSystemManagerRemoveSavedFile() {},
WX_FileSystemManagerRename() {},
WX_FileSystemManagerRenameSync() {},
WX_FileSystemManagerSaveFile() {},
WX_FileSystemManagerTruncate() {},
WX_FileSystemManagerUnzip() {},
WX_FileSystemManagerWrite() {},
WX_FileSystemManagerReadSync() {},
WX_FileSystemManagerFstatSync() {},
WX_FileSystemManagerStatSync() {},
WX_FileSystemManagerWriteSync() {},
WX_FileSystemManagerOpenSync() {},
WX_FileSystemManagerSaveFileSync() {},
WX_FileSystemManagerCloseSync() {},
WX_FileSystemManagerFtruncateSync() {},
WX_FileSystemManagerTruncateSync() {},
WX_FileSystemManagerAppendFileSync() {},
WX_FileSystemManagerAppendFileStringSync() {},
WX_FileSystemManagerWriteStringSync() {},
WX_FileSystemManagerReadZipEntryString() {},
WX_FileSystemManagerWriteString() {},
WX_OnNeedPrivacyAuthorization() {},
WX_PrivacyAuthorizeResolve() {},
WX_AddCard(conf, callbackId){},
WX_AuthPrivateMessage(conf, callbackId){},
WX_Authorize(conf, callbackId){},
WX_CheckIsAddedToMyMiniProgram(conf, callbackId){},
WX_CheckSession(conf, callbackId){},
WX_ChooseImage(conf, callbackId){},
WX_ChooseMedia(conf, callbackId){},
WX_ChooseMessageFile(conf, callbackId){},
WX_CloseBLEConnection(conf, callbackId){},
WX_CloseBluetoothAdapter(conf, callbackId){},
WX_CompressImage(conf, callbackId){},
WX_CreateBLEConnection(conf, callbackId){},
WX_CreateBLEPeripheralServer(conf, callbackId){},
WX_ExitMiniProgram(conf, callbackId){},
WX_ExitVoIPChat(conf, callbackId){},
WX_FaceDetect(conf, callbackId){},
WX_GetAvailableAudioSources(conf, callbackId){},
WX_GetBLEDeviceCharacteristics(conf, callbackId){},
WX_GetBLEDeviceRSSI(conf, callbackId){},
WX_GetBLEDeviceServices(conf, callbackId){},
WX_GetBLEMTU(conf, callbackId){},
WX_GetBackgroundFetchData(conf, callbackId){},
WX_GetBackgroundFetchToken(conf, callbackId){},
WX_GetBatteryInfo(conf, callbackId){},
WX_GetBeacons(conf, callbackId){},
WX_GetBluetoothAdapterState(conf, callbackId){},
WX_GetBluetoothDevices(conf, callbackId){},
WX_GetChannelsLiveInfo(conf, callbackId){},
WX_GetChannelsLiveNoticeInfo(conf, callbackId){},
WX_GetClipboardData(conf, callbackId){},
WX_GetConnectedBluetoothDevices(conf, callbackId){},
WX_GetExtConfig(conf, callbackId){},
WX_GetFuzzyLocation(conf, callbackId){},
WX_GetGameClubData(conf, callbackId){},
WX_GetGroupEnterInfo(conf, callbackId){},
WX_GetInferenceEnvInfo(conf, callbackId){},
WX_GetLocalIPAddress(conf, callbackId){},
WX_GetLocation(conf, callbackId){},
WX_GetNetworkType(conf, callbackId){},
WX_GetPrivacySetting(conf, callbackId){},
WX_GetScreenBrightness(conf, callbackId){},
WX_GetSetting(conf, callbackId){},
WX_GetShareInfo(conf, callbackId){},
WX_GetStorageInfo(conf, callbackId){},
WX_GetSystemInfo(conf, callbackId){},
WX_GetSystemInfoAsync(conf, callbackId){},
WX_GetUserInfo(conf, callbackId){},
WX_GetUserInteractiveStorage(conf, callbackId){},
WX_GetWeRunData(conf, callbackId){},
WX_HideKeyboard(conf, callbackId){},
WX_HideLoading(conf, callbackId){},
WX_HideShareMenu(conf, callbackId){},
WX_HideToast(conf, callbackId){},
WX_InitFaceDetect(conf, callbackId){},
WX_IsBluetoothDevicePaired(conf, callbackId){},
WX_JoinVoIPChat(conf, callbackId){},
WX_Login(conf, callbackId){},
WX_MakeBluetoothPair(conf, callbackId){},
WX_NavigateToMiniProgram(conf, callbackId){},
WX_NotifyBLECharacteristicValueChange(conf, callbackId){},
WX_OpenAppAuthorizeSetting(conf, callbackId){},
WX_OpenBluetoothAdapter(conf, callbackId){},
WX_OpenCard(conf, callbackId){},
WX_OpenChannelsActivity(conf, callbackId){},
WX_OpenChannelsEvent(conf, callbackId){},
WX_OpenChannelsLive(conf, callbackId){},
WX_OpenChannelsUserProfile(conf, callbackId){},
WX_OpenCustomerServiceChat(conf, callbackId){},
WX_OpenCustomerServiceConversation(conf, callbackId){},
WX_OpenPrivacyContract(conf, callbackId){},
WX_OpenSetting(conf, callbackId){},
WX_OpenSystemBluetoothSetting(conf, callbackId){},
WX_PreviewImage(conf, callbackId){},
WX_PreviewMedia(conf, callbackId){},
WX_ReadBLECharacteristicValue(conf, callbackId){},
WX_RemoveStorage(conf, callbackId){},
WX_RemoveUserCloudStorage(conf, callbackId){},
WX_ReportScene(conf, callbackId){},
WX_RequestMidasFriendPayment(conf, callbackId){},
WX_RequestMidasPayment(conf, callbackId){},
WX_RequestSubscribeMessage(conf, callbackId){},
WX_RequestSubscribeSystemMessage(conf, callbackId){},
WX_RequirePrivacyAuthorize(conf, callbackId){},
WX_RestartMiniProgram(conf, callbackId){},
WX_SaveFileToDisk(conf, callbackId){},
WX_SaveImageToPhotosAlbum(conf, callbackId){},
WX_ScanCode(conf, callbackId){},
WX_SetBLEMTU(conf, callbackId){},
WX_SetBackgroundFetchToken(conf, callbackId){},
WX_SetClipboardData(conf, callbackId){},
WX_SetDeviceOrientation(conf, callbackId){},
WX_SetEnableDebug(conf, callbackId){},
WX_SetInnerAudioOption(conf, callbackId){},
WX_SetKeepScreenOn(conf, callbackId){},
WX_SetMenuStyle(conf, callbackId){},
WX_SetScreenBrightness(conf, callbackId){},
WX_SetStatusBarStyle(conf, callbackId){},
WX_SetUserCloudStorage(conf, callbackId){},
WX_ShowActionSheet(conf, callbackId){},
WX_ShowKeyboard(conf, callbackId){},
WX_ShowLoading(conf, callbackId){},
WX_ShowModal(conf, callbackId){},
WX_ShowShareImageMenu(conf, callbackId){},
WX_ShowShareMenu(conf, callbackId){},
WX_ShowToast(conf, callbackId){},
WX_StartAccelerometer(conf, callbackId){},
WX_StartBeaconDiscovery(conf, callbackId){},
WX_StartBluetoothDevicesDiscovery(conf, callbackId){},
WX_StartCompass(conf, callbackId){},
WX_StartDeviceMotionListening(conf, callbackId){},
WX_StartGyroscope(conf, callbackId){},
WX_StopAccelerometer(conf, callbackId){},
WX_StopBeaconDiscovery(conf, callbackId){},
WX_StopBluetoothDevicesDiscovery(conf, callbackId){},
WX_StopCompass(conf, callbackId){},
WX_StopDeviceMotionListening(conf, callbackId){},
WX_StopFaceDetect(conf, callbackId){},
WX_StopGyroscope(conf, callbackId){},
WX_UpdateKeyboard(conf, callbackId){},
WX_UpdateShareMenu(conf, callbackId){},
WX_UpdateVoIPChatMuteConfig(conf, callbackId){},
WX_UpdateWeChatApp(conf, callbackId){},
WX_VibrateLong(conf, callbackId){},
WX_VibrateShort(conf, callbackId){},
WX_WriteBLECharacteristicValue(conf, callbackId){},
WX_StartGameLive(conf, callbackId){},
WX_CheckGameLiveEnabled(conf, callbackId){},
WX_GetUserCurrentGameliveInfo(conf, callbackId){},
WX_GetUserRecentGameLiveInfo(conf, callbackId){},
WX_GetUserGameLiveDetails(conf, callbackId){},
WX_OpenChannelsLiveCollection(conf, callbackId){},
WX_OpenPage(conf, callbackId){},
WX_RequestMidasPaymentGameItem(conf, callbackId){},
WX_RequestSubscribeLiveActivity(conf, callbackId){},
WX_OperateGameRecorderVideo() {},
WX_RemoveStorageSync() {},
WX_ReportEvent() {},
WX_ReportMonitor() {},
WX_ReportPerformance() {},
WX_ReportUserBehaviorBranchAnalytics() {},
WX_ReserveChannelsLive() {},
WX_RevokeBufferURL() {},
WX_SetPreferredFramesPerSecond() {},
WX_SetStorageSync() {},
WX_ShareAppMessage() {},
WX_TriggerGC() {},
WX_OnAccelerometerChange() {},
WX_OffAccelerometerChange() {},
WX_OnAudioInterruptionBegin() {},
WX_OffAudioInterruptionBegin() {},
WX_OnAudioInterruptionEnd() {},
WX_OffAudioInterruptionEnd() {},
WX_OnBLECharacteristicValueChange() {},
WX_OffBLECharacteristicValueChange() {},
WX_OnBLEConnectionStateChange() {},
WX_OffBLEConnectionStateChange() {},
WX_OnBLEMTUChange() {},
WX_OffBLEMTUChange() {},
WX_OnBLEPeripheralConnectionStateChanged() {},
WX_OffBLEPeripheralConnectionStateChanged() {},
WX_OnBackgroundFetchData() {},
WX_OnBeaconServiceChange() {},
WX_OffBeaconServiceChange() {},
WX_OnBeaconUpdate() {},
WX_OffBeaconUpdate() {},
WX_OnBluetoothAdapterStateChange() {},
WX_OffBluetoothAdapterStateChange() {},
WX_OnBluetoothDeviceFound() {},
WX_OffBluetoothDeviceFound() {},
WX_OnCompassChange() {},
WX_OffCompassChange() {},
WX_OnDeviceMotionChange() {},
WX_OffDeviceMotionChange() {},
WX_OnDeviceOrientationChange() {},
WX_OffDeviceOrientationChange() {},
WX_OnError() {},
WX_OffError() {},
WX_OnGyroscopeChange() {},
WX_OffGyroscopeChange() {},
WX_OnHide() {},
WX_OffHide() {},
WX_OnInteractiveStorageModified() {},
WX_OffInteractiveStorageModified() {},
WX_OnKeyDown() {},
WX_OffKeyDown() {},
WX_OnKeyUp() {},
WX_OffKeyUp() {},
WX_OnKeyboardComplete() {},
WX_OffKeyboardComplete() {},
WX_OnKeyboardConfirm() {},
WX_OffKeyboardConfirm() {},
WX_OnKeyboardHeightChange() {},
WX_OffKeyboardHeightChange() {},
WX_OnKeyboardInput() {},
WX_OffKeyboardInput() {},
WX_OnMemoryWarning() {},
WX_OffMemoryWarning() {},
WX_OnMessage() {},
WX_OnMouseDown() {},
WX_OffMouseDown() {},
WX_OnMouseMove() {},
WX_OffMouseMove() {},
WX_OnMouseUp() {},
WX_OffMouseUp() {},
WX_OnNetworkStatusChange() {},
WX_OffNetworkStatusChange() {},
WX_OnNetworkWeakChange() {},
WX_OffNetworkWeakChange() {},
WX_OnShareMessageToFriend() {},
WX_OnShow() {},
WX_OffShow() {},
WX_OnTouchCancel() {},
WX_OffTouchCancel() {},
WX_OnTouchEnd() {},
WX_OffTouchEnd() {},
WX_OnTouchMove() {},
WX_OffTouchMove() {},
WX_OnTouchStart() {},
WX_OffTouchStart() {},
WX_OnUnhandledRejection() {},
WX_OffUnhandledRejection() {},
WX_OnUserCaptureScreen() {},
WX_OffUserCaptureScreen() {},
WX_OnVoIPChatInterrupted() {},
WX_OffVoIPChatInterrupted() {},
WX_OnVoIPChatMembersChanged() {},
WX_OffVoIPChatMembersChanged() {},
WX_OnVoIPChatSpeakersChanged() {},
WX_OffVoIPChatSpeakersChanged() {},
WX_OnVoIPChatStateChanged() {},
WX_OffVoIPChatStateChanged() {},
WX_OnWheel() {},
WX_OffWheel() {},
WX_OnWindowResize() {},
WX_OffWindowResize() {},
WX_OnAddToFavorites() {},
WX_OnAddToFavorites_Resolve(conf){},
WX_OffAddToFavorites() {},
WX_OnCopyUrl() {},
WX_OnCopyUrl_Resolve(conf){},
WX_OffCopyUrl() {},
WX_OnHandoff() {},
WX_OnHandoff_Resolve(conf){},
WX_OffHandoff() {},
WX_OnShareTimeline() {},
WX_OnShareTimeline_Resolve(conf){},
WX_OffShareTimeline() {},
WX_OnGameLiveStateChange() {},
WX_OnGameLiveStateChange_Resolve(conf){},
WX_OffGameLiveStateChange() {},
WX_SetHandoffQuery(query){
return "";
},
WX_GetAccountInfoSync(){
return JSON.stringify({});
},
WX_GetAppAuthorizeSetting(){
return JSON.stringify({});
},
WX_GetAppBaseInfo(){
return JSON.stringify({});
},
WX_GetBatteryInfoSync(){
return JSON.stringify({});
},
WX_GetDeviceInfo(){
return JSON.stringify({});
},
WX_GetEnterOptionsSync(){
return JSON.stringify({});
},
WX_GetExptInfoSync(keys){
return JSON.stringify({});
},
WX_GetExtConfigSync(){
return JSON.stringify({});
},
WX_GetLaunchOptionsSync(){
return JSON.stringify({});
},
WX_GetMenuButtonBoundingClientRect(){
return JSON.stringify({});
},
WX_GetStorageInfoSync(){
return JSON.stringify({});
},
WX_GetSystemInfoSync(){
return JSON.stringify({});
},
WX_GetSystemSetting(){
return JSON.stringify({});
},
WX_GetWindowInfo(){
return JSON.stringify({});
},
WX_CreateImageData(){
return JSON.stringify({});
},
WX_CreatePath2D(){
return JSON.stringify({});
},
WX_SetCursor(path, x, y){
return "";
},
WX_SetMessageToFriendQuery(option){
return "";
},
WX_GetTextLineHeight(option){
return "";
},
WX_LoadFont(path){
return "";
},
WX_GetGameLiveState(){
return JSON.stringify({});
},
WX_DownloadFile() {return ""},
WX_CreateFeedbackButton() {return ""},
WX_GetLogManager() {return ""},
WX_GetRealtimeLogManager() {return ""},
WX_GetUpdateManager() {return ""},
WX_CreateVideoDecoder() {return ""},
WX_DownloadTaskAbort() {},
WX_DownloadTaskOffHeadersReceived() {},
WX_DownloadTaskOffProgressUpdate() {},
WX_DownloadTaskOnHeadersReceived() {},
WX_DownloadTaskOnProgressUpdate() {},
WXFeedbackButtonSetProperty() {},
WX_FeedbackButtonDestroy() {},
WX_FeedbackButtonHide() {},
WX_FeedbackButtonOffTap() {},
WX_FeedbackButtonOnTap() {},
WX_FeedbackButtonShow() {},
WX_LogManagerDebug() {},
WX_LogManagerInfo() {},
WX_LogManagerLog() {},
WX_LogManagerWarn() {},
WX_RealtimeLogManagerAddFilterMsg() {},
WX_RealtimeLogManagerError() {},
WX_RealtimeLogManagerInfo() {},
WX_RealtimeLogManagerSetFilterMsg() {},
WX_RealtimeLogManagerWarn() {},
WX_UpdateManagerApplyUpdate() {},
WX_UpdateManagerOnCheckForUpdate() {},
WX_UpdateManagerOnUpdateFailed() {},
WX_UpdateManagerOnUpdateReady() {},
WX_VideoDecoderGetFrameData() {},
WX_VideoDecoderRemove() {},
WX_VideoDecoderSeek() {},
WX_VideoDecoderStart() {},
WX_VideoDecoderStop() {},
WX_VideoDecoderOff() {},
WX_VideoDecoderOn() {},
};
var downloadedTextures = {};
var downloadingTextures = {};
var textureHandler = {
downloadFile(textureId, type, prefix) {
var url = prefix + '.png';
var cid = type + '_' + textureId;
var image = new Image();
image.src = url;
image.onload = function () {
downloadedTextures[cid] = {
data: image,
};
if (downloadingTextures[cid] instanceof Array) {
downloadingTextures[cid].forEach(v => v());
} else {
downloadingTextures[cid]();
}
delete downloadingTextures[cid];
};
image.onerror = function () {
console.error(url + ' 下载失败!');
};
},
};
var GameGlobal = {
TextureConfig: {},
SpriteAtlasConfig: {},
DownloadedTextures: downloadedTextures,
AUDIO_PREFIX: './Assets/Textures/',
};
window._ScaleRate = 1;
</script>
</body>
</html>
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0a1dcb5e36001403b96030ff715906fa
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2fc5c63ddf7924a90a8d391563d72888
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 729ab3157a525084c92bb1ea1eb91154
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e7eec529768e77440b1bc17335faf68d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 2e1365461e7184d5eaad8732e041c139
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0abd9827b18a541789c5a3ffa682f61e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 5336877d02ac34f4e983d7e12ef1f945
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 0738cbbd80b71485b8e37249eba7bd50
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 109 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 453895212181148f094c3c8d0c35aab5
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 2a6db010c81f04079be2d39f9f4f36a7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 5ada6f5b2b54c4c0598ff0a793185495
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: {{{ BACKGROUND_COLOR }}} }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 878099ec7f2e943059af39ca45bd435d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 05b0b0f8246a94ba48e74f7f87727ec3
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 9306bb99af1b4402292a016c98b2e054
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 55ad3228de1f94568bc5fa5722039863
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: c2eb97e4ee174490bb8c098eaa969317
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,858 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no" />
<title>Unity WebGL Player | {{{ PRODUCT_NAME }}}</title>
<style>
* {
border: 0;
margin: 0;
padding: 0;
}
</style>
<link rel="shortcut icon" href="TemplateData/favicon.ico" />
<link rel="stylesheet" href="TemplateData/style.css" />
#if SHOW_DIAGNOSTICS
<link rel="stylesheet" href="<<<TemplateData/diagnostics.css>>>" />
<script src="<<<TemplateData/diagnostics.js>>>"></script>
#endif
</head>
<body>
<div id="unity-container" class="unity-desktop">
<canvas id="unity-canvas" width={{{ WIDTH }}} height={{{ HEIGHT }}} tabindex="-1"></canvas>
<div id="unity-loading-bar">
<div id="unity-logo"></div>
<div id="unity-progress-bar-empty">
<div id="unity-progress-bar-full"></div>
</div>
</div>
<div id="unity-warning"></div>
<div id="unity-footer">
<div id="unity-webgl-logo"></div>
<div id="unity-fullscreen-button"></div>
#if SHOW_DIAGNOSTICS
<img id="diagnostics-icon" src="TemplateData/webmemd-icon.png" />
#endif
<div id="unity-build-title">{{{ PRODUCT_NAME }}}</div>
</div>
</div>
<script>
var gameInstance;
var container = document.querySelector("#unity-container");
var canvas = document.querySelector("#unity-canvas");
var loadingBar = document.querySelector("#unity-loading-bar");
var progressBarFull = document.querySelector("#unity-progress-bar-full");
var fullscreenButton = document.querySelector("#unity-fullscreen-button");
var warningBanner = document.querySelector("#unity-warning");
#if SHOW_DIAGNOSTICS
var diagnostics_icon = document.getElementById("diagnostics-icon");
#endif
// Shows a temporary message banner/ribbon for a few seconds, or
// a permanent error message on top of the canvas if type=='error'.
// If type=='warning', a yellow highlight color is used.
// Modify or remove this function to customize the visually presented
// way that non-critical warnings and error messages are presented to the
// user.
function unityShowBanner(msg, type) {
function updateBannerVisibility() {
warningBanner.style.display = warningBanner.children.length ? 'block' : 'none';
}
var div = document.createElement('div');
div.innerHTML = msg;
warningBanner.appendChild(div);
if (type == 'error') div.style = 'background: red; padding: 10px;';
else {
if (type == 'warning') div.style = 'background: yellow; padding: 10px;';
setTimeout(function() {
warningBanner.removeChild(div);
updateBannerVisibility();
}, 5000);
}
updateBannerVisibility();
}
var buildUrl = "Build";
var loaderUrl = buildUrl + "/{{{ LOADER_FILENAME }}}";
var config = {
dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}",
frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}",
#if USE_THREADS
workerUrl: buildUrl + "/{{{ WORKER_FILENAME }}}",
#endif
#if USE_WASM
codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}",
#endif
#if MEMORY_FILENAME
memoryUrl: buildUrl + "/{{{ MEMORY_FILENAME }}}",
#endif
#if SYMBOLS_FILENAME
symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}",
#endif
streamingAssetsUrl: "StreamingAssets",
companyName: {{{ JSON.stringify(COMPANY_NAME) }}},
productName: {{{ JSON.stringify(PRODUCT_NAME) }}},
productVersion: {{{ JSON.stringify(PRODUCT_VERSION) }}},
showBanner: unityShowBanner,
};
// By default Unity keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
// Set this to false if you want to decouple this synchronization from
// happening inside the engine, and you would instead like to size up
// the canvas DOM size and WebGL render target sizes yourself.
// config.matchWebGLToCanvasSize = false;
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
// Mobile device style: fill the whole browser client area with the game canvas:
var meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
document.getElementsByTagName('head')[0].appendChild(meta);
container.className = "unity-mobile";
canvas.className = "unity-mobile";
// To lower canvas resolution on mobile devices to gain some
// performance, uncomment the following line:
// config.devicePixelRatio = 1;
#if SHOW_DIAGNOSTICS
// position the diagnostics icon in the corner on the canvas
diagnostics_icon.style.position = "fixed";
diagnostics_icon.style.bottom = "10px";
diagnostics_icon.style.right = "0px";
canvas.after(diagnostics_icon);
#endif
} else {
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:
canvas.style.width = "{{{ WIDTH }}}px";
canvas.style.height = "{{{ HEIGHT }}}px";
}
#if BACKGROUND_FILENAME
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
#endif
loadingBar.style.display = "block";
var script = document.createElement("script");
script.src = loaderUrl;
script.onload = () => {
createUnityInstance(canvas, config, (progress) => {
progressBarFull.style.width = 100 * progress + "%";
}).then((unityInstance) => {
loadingBar.style.display = "none";
#if SHOW_DIAGNOSTICS
diagnostics_icon.onclick = () => {
unityDiagnostics.openDiagnosticsDiv(unityInstance.GetMemoryInfo);
};
#endif
fullscreenButton.onclick = () => {
unityInstance.SetFullscreen(1);
};
gameInstance = unityInstance;
}).catch((message) => {
alert(message);
});
};
document.body.appendChild(script);
</script>
<script>
var storage = {};
function getStorageValue(key, defaultValue) {
var v = storage[key];
if (v === null) {
return defaultValue;
}
if (typeof v !== 'undefined') {
return v;
}
return defaultValue;
}
var WXWASMSDK = {
WXInitializeSDK() {
gameInstance.SendMessage('WXSDKManagerHandler', 'Inited', 200);
},
WXStorageSetIntSync(key, value) {
storage[key] = value;
},
WXStorageGetIntSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetFloatSync(key, value) {
storage[key] = value;
},
WXStorageGetFloatSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetStringSync(key, value) {
storage[key] = value;
},
WXStorageGetStringSync(key, defaultValue) {
return getStorageValue(key, defaultValue || '');
},
WXStorageDeleteAllSync() {
storage = {};
},
WXStorageDeleteKeySync(key) {
delete storage[key];
},
WXStorageHasKeySync(key) {
return typeof storage[key] === 'undefined';
},
WXCheckSession(s, f, c) {},
WXAuthorize(scope, s, f, c) {},
WXCreateUserInfoButton(x, y, width, height, lang, withCredentials) {
return "";
},
WXUserInfoButtonShow(id) {},
WXUserInfoButtonDestroy(id) {},
WXUserInfoButtonHide(id) {},
WXUserInfoButtonOffTap(id) {},
WXUserInfoButtonOnTap(id) {},
WXOnShareAppMessage(conf, isPromise) {},
WXOnShareAppMessageResolve(conf) {},
WXOffShareAppMessage() {},
WXCreateBannerAd(conf) {
return Math.random().toString(32);
},
WXCreateRewardedVideoAd(conf) {
return Math.random().toString(32);
},
WXCreateInterstitialAd(conf) {
return Math.random().toString(32);
},
WXCreateCustomAd(conf) {},
WXADStyleChange(id, key, value) {},
WXShowAd(id) {},
WXHideAd(id) {},
WXADGetStyleValue(id, key) {},
WXADDestroy(id) {},
WXADLoad(id, succ, fail) {},
WXToTempFilePathSync(conf) {},
WXGetUserDataPath() {},
WXWriteFileSync(filePath, data, encoding) {},
WXCreateFixedBottomMiddleBannerAd(adUnitId, adIntervals, height) {
return Math.random().toString(32);
},
WXReportGameStart() {},
WXReportGameSceneError(sceneId, errorType, errStr, extJsonStr) {},
WXWriteLog(str) {},
WXWriteWarn(str) {},
WXHideLoadingPage() {},
WXPreloadConcurrent() {},
WXCreateInnerAudioContext() {
return Math.random().toString(32);
},
WXInnerAudioContextSetBool() {},
WXInnerAudioContextSetString() {},
WXInnerAudioContextSetFloat() {},
WXInnerAudioContextGetFloat() {},
WXInnerAudioContextGetBool() {},
WXInnerAudioContextPlay() {},
WXInnerAudioContextPause() {},
WXInnerAudioContextStop() {},
WXInnerAudioContextDestroy() {},
WXInnerAudioContextSeek() {},
WXInnerAudioContextAddListener(id, key) {
if (key === 'onCanplay') {
setTimeout(function () {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'OnAudioCallback',
JSON.stringify({
callbackId: id,
errMsg: key,
})
);
}, 100);
}
},
WXInnerAudioContextRemoveListener() {},
WXPreDownloadAudios(paths, id) {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'WXPreDownloadAudiosCallback',
JSON.stringify({
callbackId: id.toString(),
errMsg: '0',
})
);
},
WXCreateVideo() {
return Math.random().toString(32);
},
WXVideoPlay() {},
WXVideoAddListener() {},
WXVideoDestroy() {},
WXVideoExitFullScreen() {},
WXVideoPause() {},
WXVideoRequestFullScreen() {},
WXVideoSeek() {},
WXVideoStop() {},
WXVideoRemoveListener() {},
WXVideoSetProperty() {},
WXShowOpenData() {},
WXDownloadTexture(id, type, callback) {
var Infos = {
Texture: GameGlobal.TextureConfig,
SpriteAtlas: GameGlobal.SpriteAtlasConfig,
}[type];
if (!Infos[id]) {
return console.error(type + '映射id 不存在', id);
}
var path = Infos[id].p;
var cid = type + '_' + id;
if (downloadedTextures[cid]) {
if (downloadedTextures[cid].data) {
callback();
} else {
console.error(type + '映射id data 不存在!', id);
}
} else if (downloadingTextures[cid]) {
downloadingTextures[cid].push(callback);
} else {
downloadingTextures[cid] = [callback];
textureHandler.downloadFile(
id,
type,
GameGlobal.AUDIO_PREFIX.replace(/\/$/, '') + '/' + path.replace(/\\/g, '/')
);
}
},
WXCreateGameClubButton() {
return Math.random().toString(32);
},
WXGameClubButtonDestroy() {},
WXGameClubButtonHide() {},
WXGameClubButtonShow() {},
WXGameClubButtonAddListener() {},
WXGameClubButtonRemoveListener() {},
WXGameClubButtonSetProperty() {},
WXGameClubStyleChangeInt() {},
WXGameClubStyleChangeStr() {},
WXIsCloudTest() {
return false;
},
WXUncaughtException() {},
WXSetDataCDN() {},
WXSetPreloadList() {},
WXGetCachePath() {},
WXGetPluginCachePath() {},
WXGetFontRawData() {},
WXShareFontBuffer() {},
WXReportShareBehavior() {},
WXShowAd2() {},
WXToTempFilePath() {},
WXDataContextPostMessage() {},
WXHideOpenData() {},
WXAccessFileSync() {},
WXAccessFile() {},
WXCopyFileSync() {},
WXCopyFile() {},
WXUnlinkSync() {},
WXUnlink() {},
WXReportUserBehaviorBranchAnalytics() {},
WXCallFunction() {},
WXCallFunctionInit() {},
WXCloudID() {},
WXWriteFile() {},
WXWriteStringFile() {},
WXAppendFile() {},
WXAppendStringFile() {},
WXWriteBinFileSync() {},
WXReadFile() {},
WXReadFileSync() {},
WXLogManagerDebug() {},
WXLogManagerInfo() {},
WXLogManagerLog() {},
WXLogManagerWarn() {},
WXCleanAllFileCache() {},
WXCleanFileCache() {},
WXRemoveFile() {},
WXOnLaunchProgress() {},
WXMkdir() {},
WXMkdirSync() {},
WXRmdir() {},
WXRmdirSync() {},
WXCameraCreateCamera() {},
WXCameraCloseFrameChange() {},
WXCameraDestroy() {},
WXCameraListenFrameChange() {},
WXCameraOnAuthCancel() {},
WXCameraOnCameraFrame() {},
WXCameraOnStop() {},
WX_GetRecorderManager() {},
WX_OnRecorderError() {},
WX_OnRecorderFrameRecorded() {},
WX_OnRecorderInterruptionBegin() {},
WX_OnRecorderInterruptionEnd() {},
WX_OnRecorderPause() {},
WX_OnRecorderResume() {},
WX_OnRecorderStart() {},
WX_OnRecorderStop() {},
WX_RecorderPause() {},
WX_RecorderResume() {},
WX_RecorderStart() {},
WX_RecorderStop() {},
WX_UploadFile() {},
WXUploadTaskAbort() {},
WXUploadTaskOffHeadersReceived() {},
WXUploadTaskOffProgressUpdate() {},
WXUploadTaskOnHeadersReceived() {},
WXUploadTaskOnProgressUpdate() {},
WXStat() {},
WX_GetGameRecorder() {},
WX_GameRecorderOff() {},
WX_GameRecorderOn() {},
WX_GameRecorderStart() {},
WX_GameRecorderAbort() {},
WX_GameRecorderPause() {},
WX_GameRecorderResume() {},
WX_GameRecorderStop() {},
WX_OperateGameRecorderVideo() {},
WXChatCreate() {},
WXChatHide() {},
WXChatShow() {},
WXChatClose() {},
WXChatOpen() {},
WXChatSetTabs() {},
WXChatOn() {},
WXChatOff() {},
WXChatSetSignature() {},
WXSetArrayBuffer() {},
WX_FileSystemManagerReaddirSync() {},
WX_FileSystemManagerReadCompressedFileSync() {},
WX_FileSystemManagerClose() {},
WX_FileSystemManagerFstat() {},
WX_FileSystemManagerFtruncate() {},
WX_FileSystemManagerGetFileInfo() {},
WX_FileSystemManagerGetSavedFileList() {},
WX_FileSystemManagerOpen() {},
WX_FileSystemManagerRead() {},
WX_FileSystemManagerReadCompressedFile() {},
WX_FileSystemManagerReadZipEntry() {},
WX_FileSystemManagerReaddir() {},
WX_FileSystemManagerRemoveSavedFile() {},
WX_FileSystemManagerRename() {},
WX_FileSystemManagerRenameSync() {},
WX_FileSystemManagerSaveFile() {},
WX_FileSystemManagerTruncate() {},
WX_FileSystemManagerUnzip() {},
WX_FileSystemManagerWrite() {},
WX_FileSystemManagerReadSync() {},
WX_FileSystemManagerFstatSync() {},
WX_FileSystemManagerStatSync() {},
WX_FileSystemManagerWriteSync() {},
WX_FileSystemManagerOpenSync() {},
WX_FileSystemManagerSaveFileSync() {},
WX_FileSystemManagerCloseSync() {},
WX_FileSystemManagerFtruncateSync() {},
WX_FileSystemManagerTruncateSync() {},
WX_FileSystemManagerAppendFileSync() {},
WX_FileSystemManagerAppendFileStringSync() {},
WX_FileSystemManagerWriteStringSync() {},
WX_FileSystemManagerReadZipEntryString() {},
WX_FileSystemManagerWriteString() {},
WX_OnNeedPrivacyAuthorization() {},
WX_PrivacyAuthorizeResolve() {},
WX_AddCard(conf, callbackId){},
WX_AuthPrivateMessage(conf, callbackId){},
WX_Authorize(conf, callbackId){},
WX_CheckIsAddedToMyMiniProgram(conf, callbackId){},
WX_CheckSession(conf, callbackId){},
WX_ChooseImage(conf, callbackId){},
WX_ChooseMedia(conf, callbackId){},
WX_ChooseMessageFile(conf, callbackId){},
WX_CloseBLEConnection(conf, callbackId){},
WX_CloseBluetoothAdapter(conf, callbackId){},
WX_CompressImage(conf, callbackId){},
WX_CreateBLEConnection(conf, callbackId){},
WX_CreateBLEPeripheralServer(conf, callbackId){},
WX_ExitMiniProgram(conf, callbackId){},
WX_ExitVoIPChat(conf, callbackId){},
WX_FaceDetect(conf, callbackId){},
WX_GetAvailableAudioSources(conf, callbackId){},
WX_GetBLEDeviceCharacteristics(conf, callbackId){},
WX_GetBLEDeviceRSSI(conf, callbackId){},
WX_GetBLEDeviceServices(conf, callbackId){},
WX_GetBLEMTU(conf, callbackId){},
WX_GetBackgroundFetchData(conf, callbackId){},
WX_GetBackgroundFetchToken(conf, callbackId){},
WX_GetBatteryInfo(conf, callbackId){},
WX_GetBeacons(conf, callbackId){},
WX_GetBluetoothAdapterState(conf, callbackId){},
WX_GetBluetoothDevices(conf, callbackId){},
WX_GetChannelsLiveInfo(conf, callbackId){},
WX_GetChannelsLiveNoticeInfo(conf, callbackId){},
WX_GetClipboardData(conf, callbackId){},
WX_GetConnectedBluetoothDevices(conf, callbackId){},
WX_GetExtConfig(conf, callbackId){},
WX_GetFuzzyLocation(conf, callbackId){},
WX_GetGameClubData(conf, callbackId){},
WX_GetGroupEnterInfo(conf, callbackId){},
WX_GetInferenceEnvInfo(conf, callbackId){},
WX_GetLocalIPAddress(conf, callbackId){},
WX_GetLocation(conf, callbackId){},
WX_GetNetworkType(conf, callbackId){},
WX_GetPrivacySetting(conf, callbackId){},
WX_GetScreenBrightness(conf, callbackId){},
WX_GetSetting(conf, callbackId){},
WX_GetShareInfo(conf, callbackId){},
WX_GetStorageInfo(conf, callbackId){},
WX_GetSystemInfo(conf, callbackId){},
WX_GetSystemInfoAsync(conf, callbackId){},
WX_GetUserInfo(conf, callbackId){},
WX_GetUserInteractiveStorage(conf, callbackId){},
WX_GetWeRunData(conf, callbackId){},
WX_HideKeyboard(conf, callbackId){},
WX_HideLoading(conf, callbackId){},
WX_HideShareMenu(conf, callbackId){},
WX_HideToast(conf, callbackId){},
WX_InitFaceDetect(conf, callbackId){},
WX_IsBluetoothDevicePaired(conf, callbackId){},
WX_JoinVoIPChat(conf, callbackId){},
WX_Login(conf, callbackId){},
WX_MakeBluetoothPair(conf, callbackId){},
WX_NavigateToMiniProgram(conf, callbackId){},
WX_NotifyBLECharacteristicValueChange(conf, callbackId){},
WX_OpenAppAuthorizeSetting(conf, callbackId){},
WX_OpenBluetoothAdapter(conf, callbackId){},
WX_OpenCard(conf, callbackId){},
WX_OpenChannelsActivity(conf, callbackId){},
WX_OpenChannelsEvent(conf, callbackId){},
WX_OpenChannelsLive(conf, callbackId){},
WX_OpenChannelsUserProfile(conf, callbackId){},
WX_OpenCustomerServiceChat(conf, callbackId){},
WX_OpenCustomerServiceConversation(conf, callbackId){},
WX_OpenPrivacyContract(conf, callbackId){},
WX_OpenSetting(conf, callbackId){},
WX_OpenSystemBluetoothSetting(conf, callbackId){},
WX_PreviewImage(conf, callbackId){},
WX_PreviewMedia(conf, callbackId){},
WX_ReadBLECharacteristicValue(conf, callbackId){},
WX_RemoveStorage(conf, callbackId){},
WX_RemoveUserCloudStorage(conf, callbackId){},
WX_ReportScene(conf, callbackId){},
WX_RequestMidasFriendPayment(conf, callbackId){},
WX_RequestMidasPayment(conf, callbackId){},
WX_RequestSubscribeMessage(conf, callbackId){},
WX_RequestSubscribeSystemMessage(conf, callbackId){},
WX_RequirePrivacyAuthorize(conf, callbackId){},
WX_RestartMiniProgram(conf, callbackId){},
WX_SaveFileToDisk(conf, callbackId){},
WX_SaveImageToPhotosAlbum(conf, callbackId){},
WX_ScanCode(conf, callbackId){},
WX_SetBLEMTU(conf, callbackId){},
WX_SetBackgroundFetchToken(conf, callbackId){},
WX_SetClipboardData(conf, callbackId){},
WX_SetDeviceOrientation(conf, callbackId){},
WX_SetEnableDebug(conf, callbackId){},
WX_SetInnerAudioOption(conf, callbackId){},
WX_SetKeepScreenOn(conf, callbackId){},
WX_SetMenuStyle(conf, callbackId){},
WX_SetScreenBrightness(conf, callbackId){},
WX_SetStatusBarStyle(conf, callbackId){},
WX_SetUserCloudStorage(conf, callbackId){},
WX_ShowActionSheet(conf, callbackId){},
WX_ShowKeyboard(conf, callbackId){},
WX_ShowLoading(conf, callbackId){},
WX_ShowModal(conf, callbackId){},
WX_ShowShareImageMenu(conf, callbackId){},
WX_ShowShareMenu(conf, callbackId){},
WX_ShowToast(conf, callbackId){},
WX_StartAccelerometer(conf, callbackId){},
WX_StartBeaconDiscovery(conf, callbackId){},
WX_StartBluetoothDevicesDiscovery(conf, callbackId){},
WX_StartCompass(conf, callbackId){},
WX_StartDeviceMotionListening(conf, callbackId){},
WX_StartGyroscope(conf, callbackId){},
WX_StopAccelerometer(conf, callbackId){},
WX_StopBeaconDiscovery(conf, callbackId){},
WX_StopBluetoothDevicesDiscovery(conf, callbackId){},
WX_StopCompass(conf, callbackId){},
WX_StopDeviceMotionListening(conf, callbackId){},
WX_StopFaceDetect(conf, callbackId){},
WX_StopGyroscope(conf, callbackId){},
WX_UpdateKeyboard(conf, callbackId){},
WX_UpdateShareMenu(conf, callbackId){},
WX_UpdateVoIPChatMuteConfig(conf, callbackId){},
WX_UpdateWeChatApp(conf, callbackId){},
WX_VibrateLong(conf, callbackId){},
WX_VibrateShort(conf, callbackId){},
WX_WriteBLECharacteristicValue(conf, callbackId){},
WX_StartGameLive(conf, callbackId){},
WX_CheckGameLiveEnabled(conf, callbackId){},
WX_GetUserCurrentGameliveInfo(conf, callbackId){},
WX_GetUserRecentGameLiveInfo(conf, callbackId){},
WX_GetUserGameLiveDetails(conf, callbackId){},
WX_OpenChannelsLiveCollection(conf, callbackId){},
WX_OpenPage(conf, callbackId){},
WX_RequestMidasPaymentGameItem(conf, callbackId){},
WX_RequestSubscribeLiveActivity(conf, callbackId){},
WX_OperateGameRecorderVideo() {},
WX_RemoveStorageSync() {},
WX_ReportEvent() {},
WX_ReportMonitor() {},
WX_ReportPerformance() {},
WX_ReportUserBehaviorBranchAnalytics() {},
WX_ReserveChannelsLive() {},
WX_RevokeBufferURL() {},
WX_SetPreferredFramesPerSecond() {},
WX_SetStorageSync() {},
WX_ShareAppMessage() {},
WX_TriggerGC() {},
WX_OnAccelerometerChange() {},
WX_OffAccelerometerChange() {},
WX_OnAudioInterruptionBegin() {},
WX_OffAudioInterruptionBegin() {},
WX_OnAudioInterruptionEnd() {},
WX_OffAudioInterruptionEnd() {},
WX_OnBLECharacteristicValueChange() {},
WX_OffBLECharacteristicValueChange() {},
WX_OnBLEConnectionStateChange() {},
WX_OffBLEConnectionStateChange() {},
WX_OnBLEMTUChange() {},
WX_OffBLEMTUChange() {},
WX_OnBLEPeripheralConnectionStateChanged() {},
WX_OffBLEPeripheralConnectionStateChanged() {},
WX_OnBackgroundFetchData() {},
WX_OnBeaconServiceChange() {},
WX_OffBeaconServiceChange() {},
WX_OnBeaconUpdate() {},
WX_OffBeaconUpdate() {},
WX_OnBluetoothAdapterStateChange() {},
WX_OffBluetoothAdapterStateChange() {},
WX_OnBluetoothDeviceFound() {},
WX_OffBluetoothDeviceFound() {},
WX_OnCompassChange() {},
WX_OffCompassChange() {},
WX_OnDeviceMotionChange() {},
WX_OffDeviceMotionChange() {},
WX_OnDeviceOrientationChange() {},
WX_OffDeviceOrientationChange() {},
WX_OnError() {},
WX_OffError() {},
WX_OnGyroscopeChange() {},
WX_OffGyroscopeChange() {},
WX_OnHide() {},
WX_OffHide() {},
WX_OnInteractiveStorageModified() {},
WX_OffInteractiveStorageModified() {},
WX_OnKeyDown() {},
WX_OffKeyDown() {},
WX_OnKeyUp() {},
WX_OffKeyUp() {},
WX_OnKeyboardComplete() {},
WX_OffKeyboardComplete() {},
WX_OnKeyboardConfirm() {},
WX_OffKeyboardConfirm() {},
WX_OnKeyboardHeightChange() {},
WX_OffKeyboardHeightChange() {},
WX_OnKeyboardInput() {},
WX_OffKeyboardInput() {},
WX_OnMemoryWarning() {},
WX_OffMemoryWarning() {},
WX_OnMessage() {},
WX_OnMouseDown() {},
WX_OffMouseDown() {},
WX_OnMouseMove() {},
WX_OffMouseMove() {},
WX_OnMouseUp() {},
WX_OffMouseUp() {},
WX_OnNetworkStatusChange() {},
WX_OffNetworkStatusChange() {},
WX_OnNetworkWeakChange() {},
WX_OffNetworkWeakChange() {},
WX_OnShareMessageToFriend() {},
WX_OnShow() {},
WX_OffShow() {},
WX_OnTouchCancel() {},
WX_OffTouchCancel() {},
WX_OnTouchEnd() {},
WX_OffTouchEnd() {},
WX_OnTouchMove() {},
WX_OffTouchMove() {},
WX_OnTouchStart() {},
WX_OffTouchStart() {},
WX_OnUnhandledRejection() {},
WX_OffUnhandledRejection() {},
WX_OnUserCaptureScreen() {},
WX_OffUserCaptureScreen() {},
WX_OnVoIPChatInterrupted() {},
WX_OffVoIPChatInterrupted() {},
WX_OnVoIPChatMembersChanged() {},
WX_OffVoIPChatMembersChanged() {},
WX_OnVoIPChatSpeakersChanged() {},
WX_OffVoIPChatSpeakersChanged() {},
WX_OnVoIPChatStateChanged() {},
WX_OffVoIPChatStateChanged() {},
WX_OnWheel() {},
WX_OffWheel() {},
WX_OnWindowResize() {},
WX_OffWindowResize() {},
WX_OnAddToFavorites() {},
WX_OnAddToFavorites_Resolve(conf){},
WX_OffAddToFavorites() {},
WX_OnCopyUrl() {},
WX_OnCopyUrl_Resolve(conf){},
WX_OffCopyUrl() {},
WX_OnHandoff() {},
WX_OnHandoff_Resolve(conf){},
WX_OffHandoff() {},
WX_OnShareTimeline() {},
WX_OnShareTimeline_Resolve(conf){},
WX_OffShareTimeline() {},
WX_OnGameLiveStateChange() {},
WX_OnGameLiveStateChange_Resolve(conf){},
WX_OffGameLiveStateChange() {},
WX_SetHandoffQuery(query){
return "";
},
WX_GetAccountInfoSync(){
return JSON.stringify({});
},
WX_GetAppAuthorizeSetting(){
return JSON.stringify({});
},
WX_GetAppBaseInfo(){
return JSON.stringify({});
},
WX_GetBatteryInfoSync(){
return JSON.stringify({});
},
WX_GetDeviceInfo(){
return JSON.stringify({});
},
WX_GetEnterOptionsSync(){
return JSON.stringify({});
},
WX_GetExptInfoSync(keys){
return JSON.stringify({});
},
WX_GetExtConfigSync(){
return JSON.stringify({});
},
WX_GetLaunchOptionsSync(){
return JSON.stringify({});
},
WX_GetMenuButtonBoundingClientRect(){
return JSON.stringify({});
},
WX_GetStorageInfoSync(){
return JSON.stringify({});
},
WX_GetSystemInfoSync(){
return JSON.stringify({});
},
WX_GetSystemSetting(){
return JSON.stringify({});
},
WX_GetWindowInfo(){
return JSON.stringify({});
},
WX_CreateImageData(){
return JSON.stringify({});
},
WX_CreatePath2D(){
return JSON.stringify({});
},
WX_SetCursor(path, x, y){
return "";
},
WX_SetMessageToFriendQuery(option){
return "";
},
WX_GetTextLineHeight(option){
return "";
},
WX_LoadFont(path){
return "";
},
WX_GetGameLiveState(){
return JSON.stringify({});
},
WX_DownloadFile() {return ""},
WX_CreateFeedbackButton() {return ""},
WX_GetLogManager() {return ""},
WX_GetRealtimeLogManager() {return ""},
WX_GetUpdateManager() {return ""},
WX_CreateVideoDecoder() {return ""},
WX_DownloadTaskAbort() {},
WX_DownloadTaskOffHeadersReceived() {},
WX_DownloadTaskOffProgressUpdate() {},
WX_DownloadTaskOnHeadersReceived() {},
WX_DownloadTaskOnProgressUpdate() {},
WXFeedbackButtonSetProperty() {},
WX_FeedbackButtonDestroy() {},
WX_FeedbackButtonHide() {},
WX_FeedbackButtonOffTap() {},
WX_FeedbackButtonOnTap() {},
WX_FeedbackButtonShow() {},
WX_LogManagerDebug() {},
WX_LogManagerInfo() {},
WX_LogManagerLog() {},
WX_LogManagerWarn() {},
WX_RealtimeLogManagerAddFilterMsg() {},
WX_RealtimeLogManagerError() {},
WX_RealtimeLogManagerInfo() {},
WX_RealtimeLogManagerSetFilterMsg() {},
WX_RealtimeLogManagerWarn() {},
WX_UpdateManagerApplyUpdate() {},
WX_UpdateManagerOnCheckForUpdate() {},
WX_UpdateManagerOnUpdateFailed() {},
WX_UpdateManagerOnUpdateReady() {},
WX_VideoDecoderGetFrameData() {},
WX_VideoDecoderRemove() {},
WX_VideoDecoderSeek() {},
WX_VideoDecoderStart() {},
WX_VideoDecoderStop() {},
WX_VideoDecoderOff() {},
WX_VideoDecoderOn() {},
};
var downloadedTextures = {};
var downloadingTextures = {};
var textureHandler = {
downloadFile(textureId, type, prefix) {
var url = prefix + '.png';
var cid = type + '_' + textureId;
var image = new Image();
image.src = url;
image.onload = function () {
downloadedTextures[cid] = {
data: image,
};
if (downloadingTextures[cid] instanceof Array) {
downloadingTextures[cid].forEach(v => v());
} else {
downloadingTextures[cid]();
}
delete downloadingTextures[cid];
};
image.onerror = function () {
console.error(url + ' 下载失败!');
};
},
};
var GameGlobal = {
TextureConfig: {},
SpriteAtlasConfig: {},
DownloadedTextures: downloadedTextures,
AUDIO_PREFIX: './Assets/Textures/',
};
window._ScaleRate = 1;
</script>
</body>
</html>
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 45677730c25dd48fda3659b7cc95014d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 17952b36507784310a2a0252c91f1682
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b99a1bccf02f0324d91b0ee83084ed93
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c45ad6c49a990c44db03f723747ea6b0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3bd7242d42a9f1742903ecccb66d5745
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d1860b3edef0c5943a47043154a73226
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7a2f49f19a6f54f4ab9a7a0d5b0a2047
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 02b61b01616aa744db3becb0df4455ae
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 109 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 875a5d062711c724db2bb61be04a764d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3c5bec61e56c01543984f432032c7357
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b9eaa48257d376647a6172a7ef910b72
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
body { padding: 0; margin: 0 }
#tuanjie-container { position: absolute }
#tuanjie-container.tuanjie-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#tuanjie-container.tuanjie-mobile { position: fixed; width: 100%; height: 100% }
#tuanjie-canvas { background: #231F20 }
.tuanjie-mobile #tuanjie-canvas { width: 100%; height: 100% }
#tuanjie-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#tuanjie-logo { width: 154px; height: 130px; background: url('tuanjie-logo-dark.png') no-repeat center }
#tuanjie-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#tuanjie-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#tuanjie-footer { position: relative }
.tuanjie-mobile #tuanjie-footer { display: none }
#tuanjie-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#tuanjie-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#tuanjie-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#tuanjie-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 748c914819af7bd468df4c18f48aa7f7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 50deffb22ca8d4f45bfc27049e50f403
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4ffff93e234c4374aabfc4d691babcf8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5bccc83c213333647b3bd2114a57fc62
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f77ea708eb9ff4a408a24ff4a965f57c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,801 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tuanjie WebGL Player | {{{ PRODUCT_NAME }}}</title>
<link rel="shortcut icon" href="TemplateData/favicon.ico">
<link rel="stylesheet" href="TemplateData/style.css">
#if SHOW_DIAGNOSTICS
<link rel="stylesheet" href="<<<TemplateData/diagnostics.css>>>" />
<script src="<<<TemplateData/diagnostics.js>>>"></script>
#endif
</head>
<body>
<div id="tuanjie-container" class="tuanjie-desktop">
<canvas id="tuanjie-canvas" width=960 height=600 tabindex="-1"></canvas>
<div id="tuanjie-loading-bar">
<div id="tuanjie-logo"></div>
<div id="tuanjie-progress-bar-empty">
<div id="tuanjie-progress-bar-full"></div>
</div>
</div>
<div id="tuanjie-warning"> </div>
<div id="tuanjie-footer">
<div id="tuanjie-webgl-logo"></div>
<div id="tuanjie-fullscreen-button"></div>
#if SHOW_DIAGNOSTICS
<img id="diagnostics-icon" src="TemplateData/webmemd-icon.png" />
#endif
<div id="tuanjie-build-title">{{{ PRODUCT_NAME }}}</div>
</div>
</div>
<script>
var gameInstance;
var container = document.querySelector("#tuanjie-container");
var canvas = document.querySelector("#tuanjie-canvas");
var loadingBar = document.querySelector("#tuanjie-loading-bar");
var progressBarFull = document.querySelector("#tuanjie-progress-bar-full");
var fullscreenButton = document.querySelector("#tuanjie-fullscreen-button");
var warningBanner = document.querySelector("#tuanjie-warning");
#if SHOW_DIAGNOSTICS
var diagnostics_icon = document.getElementById("diagnostics-icon");
#endif
// Shows a temporary message banner/ribbon for a few seconds, or
// a permanent error message on top of the canvas if type=='error'.
// If type=='warning', a yellow highlight color is used.
// Modify or remove this function to customize the visually presented
// way that non-critical warnings and error messages are presented to the
// user.
function unityShowBanner(msg, type) {
function updateBannerVisibility() {
warningBanner.style.display = warningBanner.children.length ? 'block' : 'none';
}
var div = document.createElement('div');
div.innerHTML = msg;
warningBanner.appendChild(div);
if (type == 'error') div.style = 'background: red; padding: 10px;';
else {
if (type == 'warning') div.style = 'background: yellow; padding: 10px;';
setTimeout(function() {
warningBanner.removeChild(div);
updateBannerVisibility();
}, 5000);
}
updateBannerVisibility();
}
var buildUrl = "Build";
var loaderUrl = buildUrl + "/webgl.loader.js";
var config = {
dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}",
frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}",
#if USE_THREADS
workerUrl: buildUrl + "/{{{ WORKER_FILENAME }}}",
#endif
#if USE_WASM
codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}",
#endif
#if MEMORY_FILENAME
memoryUrl: buildUrl + "/{{{ MEMORY_FILENAME }}}",
#endif
#if SYMBOLS_FILENAME
symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}",
#endif
streamingAssetsUrl: "StreamingAssets",
companyName: {{{ JSON.stringify(COMPANY_NAME) }}},
productName: {{{ JSON.stringify(PRODUCT_NAME) }}},
productVersion: {{{ JSON.stringify(PRODUCT_VERSION) }}},
showBanner: unityShowBanner,
};
// By default Tuanjie keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)
// Set this to false if you want to decouple this synchronization from
// happening inside the engine, and you would instead like to size up
// the canvas DOM size and WebGL render target sizes yourself.
// config.matchWebGLToCanvasSize = false;
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
// Mobile device style: fill the whole browser client area with the game canvas:
var meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
document.getElementsByTagName('head')[0].appendChild(meta);
container.className = "tuanjie-mobile";
canvas.className = "tuanjie-mobile";
// To lower canvas resolution on mobile devices to gain some
// performance, uncomment the following line:
// config.devicePixelRatio = 1;
#if SHOW_DIAGNOSTICS
// position the diagnostics icon in the corner on the canvas
diagnostics_icon.style.position = "fixed";
diagnostics_icon.style.bottom = "10px";
diagnostics_icon.style.right = "0px";
canvas.after(diagnostics_icon);
#endif
} else {
// Desktop style: Render the game canvas in a window that can be maximized to fullscreen:
canvas.style.width = "{{{ WIDTH }}}px";
canvas.style.height = "{{{ HEIGHT }}}px";
}
#if BACKGROUND_FILENAME
canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover";
#endif
loadingBar.style.display = "block";
var script = document.createElement("script");
script.src = loaderUrl;
script.onload = () => {
createTuanjieInstance(canvas, config, (progress) => {
progressBarFull.style.width = 100 * progress + "%";
}).then((tuanjieInstance) => {
loadingBar.style.display = "none";
#if SHOW_DIAGNOSTICS
diagnostics_icon.onclick = () => {
tuanjieDiagnostics.openDiagnosticsDiv(tuanjieInstance.GetMemoryInfo);
};
#endif
fullscreenButton.onclick = () => {
tuanjieInstance.SetFullscreen(1);
};
gameInstance = tuanjieInstance;
}).catch((message) => {
alert(message);
});
};
document.body.appendChild(script);
</script>
<script>
var storage = {};
function getStorageValue(key, defaultValue) {
var v = storage[key];
if (v === null) {
return defaultValue;
}
if (typeof v !== 'undefined') {
return v;
}
return defaultValue;
}
var WXWASMSDK = {
WXInitializeSDK() {
gameInstance.SendMessage('WXSDKManagerHandler', 'Inited', 200);
},
WXStorageSetIntSync(key, value) {
storage[key] = value;
},
WXStorageGetIntSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetFloatSync(key, value) {
storage[key] = value;
},
WXStorageGetFloatSync(key, defaultValue) {
return getStorageValue(key, defaultValue);
},
WXStorageSetStringSync(key, value) {
storage[key] = value;
},
WXStorageGetStringSync(key, defaultValue) {
return getStorageValue(key, defaultValue || '');
},
WXStorageDeleteAllSync() {
storage = {};
},
WXStorageDeleteKeySync(key) {
delete storage[key];
},
WXStorageHasKeySync(key) {
return typeof storage[key] === 'undefined';
},
WXCheckSession(s, f, c) {},
WXAuthorize(scope, s, f, c) {},
WXCreateUserInfoButton(x, y, width, height, lang, withCredentials) {
return "";
},
WXUserInfoButtonShow(id) {},
WXUserInfoButtonDestroy(id) {},
WXUserInfoButtonHide(id) {},
WXUserInfoButtonOffTap(id) {},
WXUserInfoButtonOnTap(id) {},
WXOnShareAppMessage(conf, isPromise) {},
WXOnShareAppMessageResolve(conf) {},
WXOffShareAppMessage() {},
WXCreateBannerAd(conf) {
return Math.random().toString(32);
},
WXCreateRewardedVideoAd(conf) {
return Math.random().toString(32);
},
WXCreateInterstitialAd(conf) {
return Math.random().toString(32);
},
WXCreateCustomAd(conf) {},
WXADStyleChange(id, key, value) {},
WXShowAd(id) {},
WXHideAd(id) {},
WXADGetStyleValue(id, key) {},
WXADDestroy(id) {},
WXADLoad(id, succ, fail) {},
WXToTempFilePathSync(conf) {},
WXGetUserDataPath() {},
WXWriteFileSync(filePath, data, encoding) {},
WXCreateFixedBottomMiddleBannerAd(adUnitId, adIntervals, height) {
return Math.random().toString(32);
},
WXReportGameStart() {},
WXReportGameSceneError(sceneId, errorType, errStr, extJsonStr) {},
WXWriteLog(str) {},
WXWriteWarn(str) {},
WXHideLoadingPage() {},
WXPreloadConcurrent() {},
WXCreateInnerAudioContext() {
return Math.random().toString(32);
},
WXInnerAudioContextSetBool() {},
WXInnerAudioContextSetString() {},
WXInnerAudioContextSetFloat() {},
WXInnerAudioContextGetFloat() {},
WXInnerAudioContextGetBool() {},
WXInnerAudioContextPlay() {},
WXInnerAudioContextPause() {},
WXInnerAudioContextStop() {},
WXInnerAudioContextDestroy() {},
WXInnerAudioContextSeek() {},
WXInnerAudioContextAddListener(id, key) {
if (key === 'onCanplay') {
setTimeout(function () {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'OnAudioCallback',
JSON.stringify({
callbackId: id,
errMsg: key,
})
);
}, 100);
}
},
WXInnerAudioContextRemoveListener() {},
WXPreDownloadAudios(paths, id) {
gameInstance.SendMessage(
'WXSDKManagerHandler',
'WXPreDownloadAudiosCallback',
JSON.stringify({
callbackId: id.toString(),
errMsg: '0',
})
);
},
WXCreateVideo() {
return Math.random().toString(32);
},
WXVideoPlay() {},
WXVideoAddListener() {},
WXVideoDestroy() {},
WXVideoExitFullScreen() {},
WXVideoPause() {},
WXVideoRequestFullScreen() {},
WXVideoSeek() {},
WXVideoStop() {},
WXVideoRemoveListener() {},
WXShowOpenData() {},
WXDownloadTexture(id, type, callback) {
var Infos = {
Texture: GameGlobal.TextureConfig,
SpriteAtlas: GameGlobal.SpriteAtlasConfig,
}[type];
if (!Infos[id]) {
return console.error(type + '映射id 不存在', id);
}
var path = Infos[id].p;
var cid = type + '_' + id;
if (downloadedTextures[cid]) {
if (downloadedTextures[cid].data) {
callback();
} else {
console.error(type + '映射id data 不存在!', id);
}
} else if (downloadingTextures[cid]) {
downloadingTextures[cid].push(callback);
} else {
downloadingTextures[cid] = [callback];
textureHandler.downloadFile(
id,
type,
GameGlobal.AUDIO_PREFIX.replace(/\/$/, '') + '/' + path.replace(/\\/g, '/')
);
}
},
WXCreateGameClubButton() {
return Math.random().toString(32);
},
WXGameClubButtonDestroy() {},
WXGameClubButtonHide() {},
WXGameClubButtonShow() {},
WXGameClubButtonAddListener() {},
WXGameClubButtonRemoveListener() {},
WXGameClubButtonSetProperty() {},
WXGameClubStyleChangeInt() {},
WXGameClubStyleChangeStr() {},
WXIsCloudTest() {
return false;
},
WXUncaughtException() {},
WXSetDataCDN() {},
WXSetPreloadList() {},
WXGetCachePath() {},
WXGetPluginCachePath() {},
WXGetFontRawData() {},
WXShareFontBuffer() {},
WXReportShareBehavior() {},
WXShowAd2() {},
WXToTempFilePath() {},
WXDataContextPostMessage() {},
WXHideOpenData() {},
WXAccessFileSync() {},
WXAccessFile() {},
WXCopyFileSync() {},
WXCopyFile() {},
WXUnlinkSync() {},
WXUnlink() {},
WXReportUserBehaviorBranchAnalytics() {},
WXCallFunction() {},
WXCallFunctionInit() {},
WXCloudID() {},
WXWriteFile() {},
WXWriteStringFile() {},
WXAppendFile() {},
WXAppendStringFile() {},
WXWriteBinFileSync() {},
WXReadFile() {},
WXReadFileSync() {},
WXShareFileBuffer() {},
WXLogManagerDebug() {},
WXLogManagerInfo() {},
WXLogManagerLog() {},
WXLogManagerWarn() {},
WXCleanAllFileCache() {},
WXCleanFileCache() {},
WXRemoveFile() {},
WXOnLaunchProgress() {},
WXMkdir() {},
WXMkdirSync() {},
WXRmdir() {},
WXRmdirSync() {},
WXCameraCreateCamera() {},
WXCameraCloseFrameChange() {},
WXCameraDestroy() {},
WXCameraListenFrameChange() {},
WXCameraOnAuthCancel() {},
WXCameraOnCameraFrame() {},
WXCameraOnStop() {},
WX_GetRecorderManager() {},
WX_OnRecorderError() {},
WX_OnRecorderFrameRecorded() {},
WX_OnRecorderInterruptionBegin() {},
WX_OnRecorderInterruptionEnd() {},
WX_OnRecorderPause() {},
WX_OnRecorderResume() {},
WX_OnRecorderStart() {},
WX_OnRecorderStop() {},
WX_RecorderPause() {},
WX_RecorderResume() {},
WX_RecorderStart() {},
WX_RecorderStop() {},
WX_UploadFile() {},
WXUploadTaskAbort() {},
WXUploadTaskOffHeadersReceived() {},
WXUploadTaskOffProgressUpdate() {},
WXUploadTaskOnHeadersReceived() {},
WXUploadTaskOnProgressUpdate() {},
WXStat() {},
WX_GetGameRecorder() {},
WX_GameRecorderOff() {},
WX_GameRecorderOn() {},
WX_GameRecorderStart() {},
WX_GameRecorderAbort() {},
WX_GameRecorderPause() {},
WX_GameRecorderResume() {},
WX_GameRecorderStop() {},
WX_OperateGameRecorderVideo() {},
WXChatCreate() {},
WXChatHide() {},
WXChatShow() {},
WXChatClose() {},
WXChatOpen() {},
WXChatSetTabs() {},
WXChatOn() {},
WXChatOff() {},
WXChatSetSignature() {},
WXSetArrayBuffer() {},
WX_AddCard(conf, callbackId){},
WX_AuthPrivateMessage(conf, callbackId){},
WX_Authorize(conf, callbackId){},
WX_CheckIsAddedToMyMiniProgram(conf, callbackId){},
WX_CheckSession(conf, callbackId){},
WX_ChooseImage(conf, callbackId){},
WX_ChooseMedia(conf, callbackId){},
WX_ChooseMessageFile(conf, callbackId){},
WX_CloseBLEConnection(conf, callbackId){},
WX_CloseBluetoothAdapter(conf, callbackId){},
WX_CloseSocket(conf, callbackId){},
WX_CreateBLEConnection(conf, callbackId){},
WX_CreateBLEPeripheralServer(conf, callbackId){},
WX_ExitMiniProgram(conf, callbackId){},
WX_ExitVoIPChat(conf, callbackId){},
WX_FaceDetect(conf, callbackId){},
WX_GetAvailableAudioSources(conf, callbackId){},
WX_GetBLEDeviceCharacteristics(conf, callbackId){},
WX_GetBLEDeviceRSSI(conf, callbackId){},
WX_GetBLEDeviceServices(conf, callbackId){},
WX_GetBLEMTU(conf, callbackId){},
WX_GetBatteryInfo(conf, callbackId){},
WX_GetBeacons(conf, callbackId){},
WX_GetBluetoothAdapterState(conf, callbackId){},
WX_GetBluetoothDevices(conf, callbackId){},
WX_GetChannelsLiveInfo(conf, callbackId){},
WX_GetChannelsLiveNoticeInfo(conf, callbackId){},
WX_GetClipboardData(conf, callbackId){},
WX_GetConnectedBluetoothDevices(conf, callbackId){},
WX_GetExtConfig(conf, callbackId){},
WX_GetFuzzyLocation(conf, callbackId){},
WX_GetGameClubData(conf, callbackId){},
WX_GetGroupEnterInfo(conf, callbackId){},
WX_GetInferenceEnvInfo(conf, callbackId){},
WX_GetLocalIPAddress(conf, callbackId){},
WX_GetLocation(conf, callbackId){},
WX_GetNetworkType(conf, callbackId){},
WX_GetScreenBrightness(conf, callbackId){},
WX_GetSetting(conf, callbackId){},
WX_GetShareInfo(conf, callbackId){},
WX_GetStorageInfo(conf, callbackId){},
WX_GetSystemInfo(conf, callbackId){},
WX_GetSystemInfoAsync(conf, callbackId){},
WX_GetUserInfo(conf, callbackId){},
WX_GetUserInteractiveStorage(conf, callbackId){},
WX_GetWeRunData(conf, callbackId){},
WX_HideKeyboard(conf, callbackId){},
WX_HideLoading(conf, callbackId){},
WX_HideShareMenu(conf, callbackId){},
WX_HideToast(conf, callbackId){},
WX_InitFaceDetect(conf, callbackId){},
WX_IsBluetoothDevicePaired(conf, callbackId){},
WX_JoinVoIPChat(conf, callbackId){},
WX_Login(conf, callbackId){},
WX_MakeBluetoothPair(conf, callbackId){},
WX_NavigateToMiniProgram(conf, callbackId){},
WX_NotifyBLECharacteristicValueChange(conf, callbackId){},
WX_OpenAppAuthorizeSetting(conf, callbackId){},
WX_OpenBluetoothAdapter(conf, callbackId){},
WX_OpenCard(conf, callbackId){},
WX_OpenChannelsActivity(conf, callbackId){},
WX_OpenChannelsEvent(conf, callbackId){},
WX_OpenChannelsLive(conf, callbackId){},
WX_OpenChannelsUserProfile(conf, callbackId){},
WX_OpenCustomerServiceChat(conf, callbackId){},
WX_OpenCustomerServiceConversation(conf, callbackId){},
WX_OpenSetting(conf, callbackId){},
WX_OpenSystemBluetoothSetting(conf, callbackId){},
WX_PreviewImage(conf, callbackId){},
WX_PreviewMedia(conf, callbackId){},
WX_ReadBLECharacteristicValue(conf, callbackId){},
WX_RemoveStorage(conf, callbackId){},
WX_RemoveUserCloudStorage(conf, callbackId){},
WX_ReportScene(conf, callbackId){},
WX_RequestMidasFriendPayment(conf, callbackId){},
WX_RequestMidasPayment(conf, callbackId){},
WX_RequestSubscribeMessage(conf, callbackId){},
WX_RequestSubscribeSystemMessage(conf, callbackId){},
WX_RestartMiniProgram(conf, callbackId){},
WX_SaveFileToDisk(conf, callbackId){},
WX_SaveImageToPhotosAlbum(conf, callbackId){},
WX_ScanCode(conf, callbackId){},
WX_SendSocketMessage(conf, callbackId){},
WX_SetBLEMTU(conf, callbackId){},
WX_SetClipboardData(conf, callbackId){},
WX_SetDeviceOrientation(conf, callbackId){},
WX_SetEnableDebug(conf, callbackId){},
WX_SetInnerAudioOption(conf, callbackId){},
WX_SetKeepScreenOn(conf, callbackId){},
WX_SetMenuStyle(conf, callbackId){},
WX_SetScreenBrightness(conf, callbackId){},
WX_SetStatusBarStyle(conf, callbackId){},
WX_SetUserCloudStorage(conf, callbackId){},
WX_ShowActionSheet(conf, callbackId){},
WX_ShowKeyboard(conf, callbackId){},
WX_ShowLoading(conf, callbackId){},
WX_ShowModal(conf, callbackId){},
WX_ShowShareImageMenu(conf, callbackId){},
WX_ShowShareMenu(conf, callbackId){},
WX_ShowToast(conf, callbackId){},
WX_StartAccelerometer(conf, callbackId){},
WX_StartBeaconDiscovery(conf, callbackId){},
WX_StartBluetoothDevicesDiscovery(conf, callbackId){},
WX_StartCompass(conf, callbackId){},
WX_StartDeviceMotionListening(conf, callbackId){},
WX_StartGyroscope(conf, callbackId){},
WX_StopAccelerometer(conf, callbackId){},
WX_StopBeaconDiscovery(conf, callbackId){},
WX_StopBluetoothDevicesDiscovery(conf, callbackId){},
WX_StopCompass(conf, callbackId){},
WX_StopDeviceMotionListening(conf, callbackId){},
WX_StopFaceDetect(conf, callbackId){},
WX_StopGyroscope(conf, callbackId){},
WX_UpdateKeyboard(conf, callbackId){},
WX_UpdateShareMenu(conf, callbackId){},
WX_UpdateVoIPChatMuteConfig(conf, callbackId){},
WX_UpdateWeChatApp(conf, callbackId){},
WX_VibrateLong(conf, callbackId){},
WX_VibrateShort(conf, callbackId){},
WX_WriteBLECharacteristicValue(conf, callbackId){},
WX_StartGameLive(conf, callbackId){},
WX_CheckGameLiveEnabled(conf, callbackId){},
WX_GetUserCurrentGameliveInfo(conf, callbackId){},
WX_GetUserRecentGameLiveInfo(conf, callbackId){},
WX_GetUserGameLiveDetails(conf, callbackId){},
WX_OpenChannelsLiveCollection(conf, callbackId){},
WX_OpenPage(conf, callbackId){},
WX_RequestMidasPaymentGameItem(conf, callbackId){},
WX_OperateGameRecorderVideo() {},
WX_RemoveStorageSync() {},
WX_ReportEvent() {},
WX_ReportMonitor() {},
WX_ReportPerformance() {},
WX_ReportUserBehaviorBranchAnalytics() {},
WX_ReserveChannelsLive() {},
WX_RevokeBufferURL() {},
WX_SetPreferredFramesPerSecond() {},
WX_SetStorageSync() {},
WX_ShareAppMessage() {},
WX_TriggerGC() {},
WX_OnAccelerometerChange() {},
WX_OffAccelerometerChange() {},
WX_OnAudioInterruptionBegin() {},
WX_OffAudioInterruptionBegin() {},
WX_OnAudioInterruptionEnd() {},
WX_OffAudioInterruptionEnd() {},
WX_OnBLECharacteristicValueChange() {},
WX_OffBLECharacteristicValueChange() {},
WX_OnBLEConnectionStateChange() {},
WX_OffBLEConnectionStateChange() {},
WX_OnBLEMTUChange() {},
WX_OffBLEMTUChange() {},
WX_OnBLEPeripheralConnectionStateChanged() {},
WX_OffBLEPeripheralConnectionStateChanged() {},
WX_OnBeaconServiceChange() {},
WX_OffBeaconServiceChange() {},
WX_OnBeaconUpdate() {},
WX_OffBeaconUpdate() {},
WX_OnBluetoothAdapterStateChange() {},
WX_OffBluetoothAdapterStateChange() {},
WX_OnBluetoothDeviceFound() {},
WX_OffBluetoothDeviceFound() {},
WX_OnCompassChange() {},
WX_OffCompassChange() {},
WX_OnDeviceMotionChange() {},
WX_OffDeviceMotionChange() {},
WX_OnDeviceOrientationChange() {},
WX_OffDeviceOrientationChange() {},
WX_OnError() {},
WX_OffError() {},
WX_OnGyroscopeChange() {},
WX_OffGyroscopeChange() {},
WX_OnHide() {},
WX_OffHide() {},
WX_OnInteractiveStorageModified() {},
WX_OffInteractiveStorageModified() {},
WX_OnKeyDown() {},
WX_OffKeyDown() {},
WX_OnKeyUp() {},
WX_OffKeyUp() {},
WX_OnKeyboardComplete() {},
WX_OffKeyboardComplete() {},
WX_OnKeyboardConfirm() {},
WX_OffKeyboardConfirm() {},
WX_OnKeyboardHeightChange() {},
WX_OffKeyboardHeightChange() {},
WX_OnKeyboardInput() {},
WX_OffKeyboardInput() {},
WX_OnMemoryWarning() {},
WX_OffMemoryWarning() {},
WX_OnMessage() {},
WX_OnNetworkStatusChange() {},
WX_OffNetworkStatusChange() {},
WX_OnNetworkWeakChange() {},
WX_OffNetworkWeakChange() {},
WX_OnShareMessageToFriend() {},
WX_OnShow() {},
WX_OffShow() {},
WX_OnSocketClose() {},
WX_OnSocketError() {},
WX_OnSocketMessage() {},
WX_OnSocketOpen() {},
WX_OnTouchCancel() {},
WX_OffTouchCancel() {},
WX_OnTouchEnd() {},
WX_OffTouchEnd() {},
WX_OnTouchMove() {},
WX_OffTouchMove() {},
WX_OnTouchStart() {},
WX_OffTouchStart() {},
WX_OnUnhandledRejection() {},
WX_OffUnhandledRejection() {},
WX_OnUserCaptureScreen() {},
WX_OffUserCaptureScreen() {},
WX_OnVoIPChatInterrupted() {},
WX_OffVoIPChatInterrupted() {},
WX_OnVoIPChatMembersChanged() {},
WX_OffVoIPChatMembersChanged() {},
WX_OnVoIPChatSpeakersChanged() {},
WX_OffVoIPChatSpeakersChanged() {},
WX_OnVoIPChatStateChanged() {},
WX_OffVoIPChatStateChanged() {},
WX_OnWheel() {},
WX_OffWheel() {},
WX_OnWindowResize() {},
WX_OffWindowResize() {},
WX_OnAddToFavorites() {},
WX_OnAddToFavorites_Resolve(conf){},
WX_OffAddToFavorites() {},
WX_OnCopyUrl() {},
WX_OnCopyUrl_Resolve(conf){},
WX_OffCopyUrl() {},
WX_OnHandoff() {},
WX_OnHandoff_Resolve(conf){},
WX_OffHandoff() {},
WX_OnShareTimeline() {},
WX_OnShareTimeline_Resolve(conf){},
WX_OffShareTimeline() {},
WX_OnGameLiveStateChange() {},
WX_OnGameLiveStateChange_Resolve(conf){},
WX_OffGameLiveStateChange() {},
WX_SetHandoffQuery(query){
return "";
},
WX_GetAccountInfoSync(){
return JSON.stringify({});
},
WX_GetAppAuthorizeSetting(){
return JSON.stringify({});
},
WX_GetAppBaseInfo(){
return JSON.stringify({});
},
WX_GetBatteryInfoSync(){
return JSON.stringify({});
},
WX_GetDeviceInfo(){
return JSON.stringify({});
},
WX_GetEnterOptionsSync(){
return JSON.stringify({});
},
WX_GetExptInfoSync(keys){
return JSON.stringify({});
},
WX_GetExtConfigSync(){
return JSON.stringify({});
},
WX_GetLaunchOptionsSync(){
return JSON.stringify({});
},
WX_GetMenuButtonBoundingClientRect(){
return JSON.stringify({});
},
WX_GetStorageInfoSync(){
return JSON.stringify({});
},
WX_GetSystemInfoSync(){
return JSON.stringify({});
},
WX_GetSystemSetting(){
return JSON.stringify({});
},
WX_GetWindowInfo(){
return JSON.stringify({});
},
WX_CreateImageData(){
return JSON.stringify({});
},
WX_CreatePath2D(){
return JSON.stringify({});
},
WX_SetCursor(path, x, y){
return "";
},
WX_SetMessageToFriendQuery(option){
return "";
},
WX_GetTextLineHeight(option){
return "";
},
WX_LoadFont(path){
return "";
},
WX_GetGameLiveState(){
return JSON.stringify({});
},
WX_CreateFeedbackButton() {return ""},
WX_GetLogManager() {return ""},
WX_GetRealtimeLogManager() {return ""},
WX_GetUpdateManager() {return ""},
WX_CreateVideoDecoder() {return ""},
WXFeedbackButtonSetProperty() {},
WX_FeedbackButtonDestroy() {},
WX_FeedbackButtonHide() {},
WX_FeedbackButtonOffTap() {},
WX_FeedbackButtonOnTap() {},
WX_FeedbackButtonShow() {},
WX_LogManagerDebug() {},
WX_LogManagerInfo() {},
WX_LogManagerLog() {},
WX_LogManagerWarn() {},
WX_RealtimeLogManagerAddFilterMsg() {},
WX_RealtimeLogManagerError() {},
WX_RealtimeLogManagerInfo() {},
WX_RealtimeLogManagerSetFilterMsg() {},
WX_RealtimeLogManagerWarn() {},
WX_UpdateManagerApplyUpdate() {},
WX_UpdateManagerOnCheckForUpdate() {},
WX_UpdateManagerOnUpdateFailed() {},
WX_UpdateManagerOnUpdateReady() {},
WX_VideoDecoderGetFrameData() {},
WX_VideoDecoderRemove() {},
WX_VideoDecoderSeek() {},
WX_VideoDecoderStart() {},
WX_VideoDecoderStop() {},
WX_VideoDecoderOff() {},
WX_VideoDecoderOn() {},
};
var downloadedTextures = {};
var downloadingTextures = {};
var textureHandler = {
downloadFile(textureId, type, prefix) {
var url = prefix + '.png';
var cid = type + '_' + textureId;
var image = new Image();
image.src = url;
image.onload = function () {
downloadedTextures[cid] = {
data: image,
};
if (downloadingTextures[cid] instanceof Array) {
downloadingTextures[cid].forEach(v => v());
} else {
downloadingTextures[cid]();
}
delete downloadingTextures[cid];
};
image.onerror = function () {
console.error(url + ' 下载失败!');
};
},
};
var GameGlobal = {
TextureConfig: {},
SpriteAtlasConfig: {},
DownloadedTextures: downloadedTextures,
AUDIO_PREFIX: './Assets/Textures/',
};
window._ScaleRate = 1;
</script>
</body>
</html>
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bc8062036b97bf140ac20cc5e3ecce67
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: