Skip to content
Snippets Groups Projects
Verified Commit 3117ebcd authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: removed need for require hack

parent 00323d04
No related branches found
No related tags found
1 merge request!8Support for react.js components
Pipeline #1084 passed
...@@ -3,6 +3,8 @@ import { startApp } from "./react/app"; ...@@ -3,6 +3,8 @@ import { startApp } from "./react/app";
import { default as _wasm, GameBoy, PadKey, PpuMode } from "./lib/boytacean.js"; import { default as _wasm, GameBoy, PadKey, PpuMode } from "./lib/boytacean.js";
import info from "./package.json"; import info from "./package.json";
declare const require: any;
const PIXEL_UNSET_COLOR = 0x1b1a17ff; const PIXEL_UNSET_COLOR = 0x1b1a17ff;
const LOGIC_HZ = 600; const LOGIC_HZ = 600;
...@@ -48,6 +50,11 @@ enum PixelFormat { ...@@ -48,6 +50,11 @@ enum PixelFormat {
RGBA = 4 RGBA = 4
} }
/**
* Top level class that controls the emulator behaviour
* and "joins" all the elements together to bring input/output
* of the associated machine.
*/
class Emulator { class Emulator {
/** /**
* The Game Boy engine (probably coming from WASM) that * The Game Boy engine (probably coming from WASM) that
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
"source": "index.ts", "source": "index.ts",
"devDependencies": { "devDependencies": {
"@parcel/transformer-typescript-tsc": "^2.6.2", "@parcel/transformer-typescript-tsc": "^2.6.2",
"@types/node": "^18.0.6",
"@types/react": "^18.0.15", "@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6", "@types/react-dom": "^18.0.6",
"parcel": "^2.6.2", "parcel": "^2.6.2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment