Skip to content

Uses HQX (2, 3 or 4x) pixel upscaling method, instead of impactJs native, nearest neighbor interpolation.

Notifications You must be signed in to change notification settings

Chmood/ImpactJS-HQX-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This is an impactJS plugin.

"Impact is a JavaScript Game Engine that allows you to develop stunning HTML5 Games for desktop and mobile browsers."

More infos at http://impactjs.com/

It uses HQX (2, 3 or 4x) pixel upscaling method, instead of native nearest neighbor interpolation.

What it does is basically wrapping the hqx javascript port (https://github.com/phoboslab/js-hqx) into a impactjs plugin, by injecting a new ig.Image.resize() function.

Usage : 

1./ Simply require the plugin in main.js (or whatever main js file)

    ig.module( 
      'game.main' 
    )
    .requires(
	'impact.game',
	'plugins.hqx'
      /*...*/
    )
    /*../


2./ Init your game with a scale factor of 2, 3 or 4.

    ig.main( '#canvas', MyGame, 60, 240, 160, 4 );

About

Uses HQX (2, 3 or 4x) pixel upscaling method, instead of impactJs native, nearest neighbor interpolation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published