react-pewpew
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

react-pewpew

badge-npm-version

react-pewpew is a set of react components made for easily rendering an instance of PewEngine in react.

Prerequisites

You need to have the latest version of PewEngine on your public folder - inside the wasm folder.

public
└── wasm
    ├── pewengine.js
    ├── pewengine.wasm
    └── index.html 

(No longer needed, only do this if not working) Then replace index.html with This HTML file.

Installation

npm install react-pewpew

Usage

import React from 'react';
import { PewPewString } from 'react-pewpew'; // Or any other component

const App = () => {
  return (
    <PewPewString
      level="pewpew.set_level_size(500fx, 500fx) pewpew.new_player_ship(10fx, 10fx, 0)"
      style={{width:"100%",height:"90vh"}}
    />
  );
};

export default App;

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.61latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.61
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20

Package Sidebar

Install

npm i react-pewpew

Weekly Downloads

1

Version

1.1.6

License

none

Unpacked Size

3.41 MB

Total Files

19

Last publish

Collaborators

  • arjunsdev