Skip to content

A library to make HTML games with the canvas much easier and faster! Made by Antoine Beaulieu Savard (ToniestTony)

Notifications You must be signed in to change notification settings

ToniestTony/jt_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

jt_lib

A library to make HTML5 2D games/apps with the canvas much easier/faster! Made by Antoine (ToniestTony)

I also made a fully interactive and complete documentation, every single functions has an interactive example, so it is perfect to try and learn the multiple features, try it here: https://toniesttony.github.io/jt.html

Here are some of the features:

  • Load and draw images and animations, even rotate, scale and clip parts of them.
  • Play, repeat and stop sounds
  • Includes full support of mouse, keyboard, gamepads and touch(mobile) inputs. Including pressing, holding and releasing.
  • Change the size and fps of the canvas even while the game is running.
  • Draw basic shapes and texts, even rotate, scale and clip parts of them.
  • Transform and move the virtual camera to zoom or move the game, you can have multiple cameras to simulate split screen while still having elements like UI stay in place.
  • Use math functions that are used in gamemaking like random, stay, angle, distance, checking collisions and many more.
  • Juice up your game with screen shakes, particles and other misc features like alarms and checking for key combinations.
  • Debug with easy to use functions to quickly crush your bugs, check performance and get back to the important stuff.
  • A bunch of other features!

Getting started

  • Download the jt_lib20.js file and index.html for a quick template.
  • Start programming your awesome game in the setup and update functions of the template
  • That's it!
  • (learn and try out the functions in my complete and interactive documentation: https://toniesttony.github.io/jt.html)

Keyboard.js

  • Link the file keyboard.js after the jt_library
  • Read the top comments in keyboard.js to use it in your game/app
  • Use it for easy name input for keyboard, mouse and mobile!

More tutorials coming soon

I plan on making tutorials for creating simple games/prototypes to show how simple and fast this libray can be!

The jt_lib is free to use for both commercial and non-commercial projects, just be sure to put it in the credits!

About

A library to make HTML games with the canvas much easier and faster! Made by Antoine Beaulieu Savard (ToniestTony)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published