Skip to content

amidos2006/jspunk

Repository files navigation

JSPunk

Current Framework Version: 0.4.5

Javascript port for Flashpunk version. In the current version, it is build with pieces from allegrojs but that uses native canvas but hopefull in the future I can replace it with WebGL with shaders and Web Audio.

Requirements

  • Node.js for Running and Building.
  • node-static and http libraries to run the server.js with debug mode.
  • browserify and babelify with @babel/preset-env for building the distribution version and running it with server.js.

Features

  • Integeration with VSCode
  • RenderTargets with blendModes and native object drawing
  • Entity, World management
  • Graphis classes: Graphic, IndexedGraphic, Spritemap, Backdrop, Text, BitmapText, GraphicList, Tilemap, and AnimTileMap classes
  • Tinting using blend mode
  • Alarms and VarTweens with Ease Functions
  • Collision classes: Hitbox and Grid class
  • Sorting by layer value (need optimization maybe insertion sort so always insert in the correct location)
  • Collision Types and Classes (need optimization maybe another array to keep track of these different types and classes to speed up the collision)
  • Camera with anchor, rotationg, and zooming
  • Smoothing and HighDef resolution for the renderTargets
  • Handling Inputs: Keyboard, Mouse, and Touchscreen
  • Mouse have world position
  • Sfx class to handle sounds
  • JSPunk Splash Screens similar to FlashPunk
  • Canvas Autoscalling and Resizing

Missing Features

  • Pixel Mask Collider, Circle Collider, Masklist, and Ray Casting
  • Move to WebGL instead of Canvas to speed up
  • ParticleEmitter
  • Gamepad support
  • (Maybe) automatically bind callback functions to its parent class
  • (Maybe) all child classes have access to their parent class

Releases

No releases published

Packages

No packages published

Languages