天气:晴

This commit is contained in:
ckcz123 committed 2021-07-30 14:57:17 +08:00
1 parent 6e26dccaa5
commit 3ca3abe083
9 files changed
+39 -17

No files matched your search

+4
View File
@@ -46,9 +46,12 @@ function core() {
'weather': {
'time': 0,
'type': null,
'level': 1,
'nodes': [],
'data': null,
'fog': null,
'cloud': null,
'sun': null
},
"tip": null,
"asyncId": {}
@@ -429,6 +432,7 @@ core.prototype._init_others = function () {
core.bigmap.cacheCanvas = document.createElement('canvas').getContext('2d');
core.loadImage("materials", 'fog', function (name, img) { core.animateFrame.weather.fog = img; });
core.loadImage("materials", "cloud", function (name, img) { core.animateFrame.weather.cloud = img; })
core.loadImage("materials", "sun", function (name, img) { core.animateFrame.weather.sun = img; })
core.loadImage("materials", 'keyboard', function (name, img) {core.material.images.keyboard = img; });
// 记录存档编号
core.saves.saveIndex = core.getLocalStorage('saveIndex', 1);