# sbjr-game-framwork

> A basic game framwork written in javascript.

Latest version **0.1.1** (published 2018-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install sbjr-game-framwork
pnpm add sbjr-game-framwork
yarn add sbjr-game-framwork
bun add sbjr-game-framwork
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-10-21 |
| First published | 2018-10-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 247.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | SbibouJr |
| Maintainers | sbibou-jr |
| Keywords | video-game, javascript, framwork |

## Links

- npm: https://www.npmjs.com/package/sbjr-game-framwork
- Repository: https://github.com/SbibouJr/SbJr-Game-Framwork
- Homepage: https://github.com/SbibouJr/SbJr-Game-Framwork#readme
- Issues: https://github.com/SbibouJr/SbJr-Game-Framwork/issues
- npm.io page: https://npm.io/package/sbjr-game-framwork

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-10-21
- 0.1.0 — 2018-10-15

## README

# Sbjr-Game-Framwork

**A basic game framwork written in javascript.**

## Install

**CDN :**
```js
<script type="text/javascript" src="https://unpkg.com/sbjr-game-framwork@latest"></script>
```

**npm :**
```bash
npm i -S sbjr-game-framwork
```
## Usage

```js
import Game, { FONT_SIZE } from 'sbjr-game-framwork';

window.addEventListener('load',() => {

	// Create a Game object that will manage the application
	// The manufacturer can take three parameters.
	const game = new Game(
		true,					// If true, activate the debug mode
		'My App', 		// The name of the application
		null, // The id of the element of the Dom that will be used as a container. If null, the engine will generate one inside the body
	);

	// The Game object has a loop () function that takes into account a
	// callback function that will be called at 60fps. If loop (callback);
	// is not defined, the Game object will use a function by default for example.
	game.loop(() => {
		game.drawRect('yellow', 20, 10, 360, 100);
		game.drawText('Game exemple', 20, 20, 'RED', FONT_SIZE.MD);
	});
	game.run();
});
```

**Have fun.**

---
_Source: https://npm.io/package/sbjr-game-framwork · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
