GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Moderrek/JSGL: Client-side JavaScript library for creating web 2D games. Focusing at objective game. JS Game Library

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
doc
doc
 
 
examples
examples
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.prettierrc
.prettierrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTION.md
CONTRIBUTION.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

⚡ JSGL

license codefactor downloads version

About The Project

Client-side JavaScript library for creating web 2D games. Focusing at objective game.
Use the JSGL to create 2D games.

Features

  • Creating 2D Games in HTML Canvas
  • Auto canvas scaling to size
  • Game Settings (autoCanvasResize...)
  • Creating OOP game objects
  • Easy events system
  • Resources loading system
  • Easy management objects with Transform and Vector2
  • No need to write HTML. The JSGL.ExampleHTML/JSGL.DefaultGame can render default game page.

Required

  • DOM

Getting Started

Browser

To include JSGL in browser add script tag to body element. Like below or check examples.

...
<body>
  <script src="https://unpkg.com/@moderrkowo/jsgl/dist/JSGL.js"></script> <!-- CDN -->
  <script src="./js/game.js"></script> 
</body>
...

Node

To include JSGL in Node, first install with npm.

npm i @moderrkowo/jsgl

Example node code

const { Vector2 } = require('@moderrkowo/jsgl');
const exampleVector2 = new Vector2(5, 10);
console.log(exampleVector2);
// Vector2 { x: 5, y: 10 }

Documentation

  • JSGL Reference
  • JSGL Wiki
  • JSGL Examples
  • JSGL Changelogs

Developers

Must have

Installed git and Node.js

Building JSGL

  1. First clone repository
    git clone https://github.com/Moderrek/JSGL.git
  2. Enter the JSGL directory and install development dependencies
    cd JSGL
    npm install
  3. Run build script
    • npm run build - Builds deployment bundle, types declaration and docs -> /dist and /docs
    • npm run build:prod - Builds deployment bundle -> /dist
    • npm run build:dev - Builds mapped bundle -> /dist
    • npm run build:types - Builds types declaration -> /dist
    • npm run build:docs - Builds web docs for JSGL -> /docs

License

Distributed under the MIT License. See LICENSE.md for more information.

Contact

Tymon Woźniak (owner) <[email protected]>
Project: https://github.com/Moderrek/JSGL

About

Client-side JavaScript library for creating web 2D games. Focusing at objective game. JS Game Library

moderrek.github.io/JSGLDoc/

Topics

2d-gameanimationcanvasgamegame-developmentgame-objectsgamedevgraphicshtmljavascriptjavascript-gamejavascript-librarysprite

Resources

Readme
MIT license

Code of conduct

Code of conduct

Security policy

Security policy
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.