# jgame.js samples

## Basic samples

- Hello world for jgame.js engine
- Sprite
- Character
- Label
- Shape
- Tile
- Layer
- Scene
- Input - keyboard
- Input - pointing device

## Sample for expert

- Extra shapes
  - Line
  - Diagram
  - Child entity
  - Draw child entity first
  - Order draw
  - Linear gradient
  - Radial gradient
  - Pattern draw
- Module
  Load module
- Use container
  - Set to container
  - Multi game
- Expert drawing
  - Buffered renderer
  - Screen shot
  - Change tile to sprite
- Time management
  - 30 frame per second
  - Frame based
- Render options
  - Transfer render (basic)
  - Direct render
  - Flip render
  - Direct render and no-clear (fastest)

## Sample games

- Shooting game
  - Horizonal shooting
  - Vertical shooting
- Box2D
  - Physical action