Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Jquery plugin for Superpowers, the extensible HTML5 2D+3D game engine.

Notifications You must be signed in to change notification settings

AntarkaGame/superpowers-jquery-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

superpowers-jquery-plugin

This package is deprecated and detected as potentially insecurised. PLEASE DONT USE!

Jquery plugin for Superpowers, the extensible HTML5 2D+3D game engine.

Documentation

Use jquery as usual :

// When the DOM is ready 
$(function($) {

  // Selector = #yourID ou .yourClass etc.
  $('Selector').text("Hi there!"); 
  $('Selector').css('background','red'); 
  
  $('Selector').click( function() {
    Sup.log($(this).attr('id')); 
  });
  
});

Maybe add a Jquery plugin (exemple with rightClick implementation)

(function( $ ) {
  $.fn.rightClick = function(method) {
    $(this).bind('contextmenu rightclick', function(e){
      e.preventDefault();
      method();
      return false;
    });
  };
})( jQuery );

Installation

Download the latest release, unzip it, rename the folder to Jquery, move it inside app/plugins/fraxken/ then restart your server.

TypeScript definition source :

https://github.com/borisyankov/DefinitelyTyped/tree/master/jquery

About

Jquery plugin for Superpowers, the extensible HTML5 2D+3D game engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published