GithubHelp home page GithubHelp logo

phaserjs / web-monetization-plugin Goto Github PK

View Code? Open in Web Editor NEW
29.0 6.0 4.0 37.11 MB

An easy-to-use Web Monetization Plugin for HTML5 game frameworks, including Phaser and Pixi.

License: MIT License

HTML 90.21% JavaScript 5.44% CSS 3.83% TypeScript 0.52%
canvas webgl webgl-game phaser pixi html5 game-development monetization webmonetization

web-monetization-plugin's Introduction

Game Web Monetization Plugin

Game Web Monetization Plugin

An easy-to-use Web Monetization Plugin for HTML5 game frameworks, including Phaser and Pixi.

Repository structure:

Plugin

In the plugin folder you will find the Game Web Monetization Plugin.

This folder contains the following:

plugin/docs

Here is the complete documentation for the plugin, describing every property, method and interface it uses. You can view the docs online, or if you have the repo checked-out simply open plugin/docs/index.html in a browser.

plugin/src

This folder contains the TypeScript source code for the plugin itself. Usually, you should use one of the dist files instead, but the full source is included as well. Please note that it is released under the MIT license.

plugin/dist

Here you'll find the pre-bundled distribution files:

  • GameWebMonetization.js is an ESM (ES Module), ready to import directly into your game code.
  • GameWebMonetization.es5.js is a pre-bundled ES5 compatible script, for use in <script> tags.
  • GameWebMonetization.d.ts is a TypeScript Definitions file, with accompanying source map.

Please see the tutorial for further integration details.

Game

In the game folder you will find a sample Phaser 3 game that demonstrates use of the Game Web Monetization Plugin.

3 Candies!

The game is called 3 Candies! and is a fast-paced puzzle game. See if you can find the 3 matching candies before the time runs out. If you play the game in a Web Monetized browser then you will get an extra life and an extra choice of background to play with.

You can play the game here, too! Be sure to have the Web Monetization Extension installed in your browser to get the full benefits :)

Tutorial

You can find a comprehensive 7 part tutorial on using the Game Web Monetization Plugin on the Phaser web site.

web-monetization-plugin's People

Contributors

gammafp avatar photonstorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.