Initial commit

This commit is contained in:
Rocks011
2025-12-10 17:47:15 +08:00
commit 94fb922f1f
50 changed files with 1059 additions and 0 deletions

9
js/render.js Normal file
View File

@@ -0,0 +1,9 @@
GameGlobal.canvas = wx.createCanvas();
const windowInfo = wx.getWindowInfo ? wx.getWindowInfo() : wx.getSystemInfoSync();
canvas.width = windowInfo.screenWidth;
canvas.height = windowInfo.screenHeight;
export const SCREEN_WIDTH = windowInfo.screenWidth;
export const SCREEN_HEIGHT = windowInfo.screenHeight;