Initial commit
This commit is contained in:
9
js/render.js
Normal file
9
js/render.js
Normal 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;
|
||||
Reference in New Issue
Block a user