0.0.15 • Published 1 year ago

enpyre v0.0.15

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
1 year ago

Enpyre is an open-source library to render 2D games made with Python in React with graphics by PIXI.js and the power of Pyodide, WASM, and modern web technologies.

Install

npm install enpyre

yarn add enpyre

Optional Dependencies

If you want to use EnpyreEditor you will need to install the following dependencies:

npm install react-ace ace-builds

yarn add react-ace ace-builds

Usage

import React from 'react';
import {
  EnpyreDisplay,
  EnpyreEditor,
  EnpyreProvider,
  usePyodide,
} from 'enpyre';

const Example: React.FC = () => {
  const { runCode } = usePyodide();

  return (
    <div>
      <EnpyreDisplay />
      <EnpyreEditor />
      <button onClick={runCode}>Run Code</button>
    </div>
  );
};

const App: React.FC = () => {
  return (
    <EnpyreProvider>
      <Example />
    </EnpyreProvider>
  );
};

export default App;

Example Games

0.0.14

1 year ago

0.0.15

1 year ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago