First commit
This commit is contained in:
11
source/main.js
Normal file
11
source/main.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { Fennec, N3DSText } = require("../bin/fennec")
|
||||
|
||||
const game = new Fennec()
|
||||
const topScreenGraph = game.screens.Top.graphics2d
|
||||
const bottomScreenGraph = game.screens.Bottom.graphics2d
|
||||
const loremIpsum = new N3DSText("Hello world")
|
||||
|
||||
game.onGameLoop(() => {
|
||||
topScreenGraph.drawRect(0, 0, 0.5, 100, 20, null, null)
|
||||
bottomScreenGraph.drawText(loremIpsum)
|
||||
})
|
||||
Reference in New Issue
Block a user