Skip to content

Web Game Development Kit is a JS Library that makes it easier to make web games.

Notifications You must be signed in to change notification settings

ghostedbread/wgdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

WGDK

WGDK (Web Game Development Kit, previously wgdk.js) is a Library in Javascript to make it easier to make web games.

Example

 // import { functions } ( OR * ) from WGDK or cdn
 // basic movement using WGDK
 let sprite = sprite("test.png");
 let xpos = 0;
 let yspeed = 0;
 let movingspeed = 1
 sprite.pos = new Vector2(0,0);
 setInterval(function () {
  yspeed += 0.25
  sprite.pos = new Vector2(xpos, yspeed);
 }, 500)
 onKeyPress({
    { key: "a", action: function () {xpos+=movingspeed} },
    { key: "d", action: function () {xpos-=movingspeed} },
    { key: "shift", action: function () {movingspeed*=2} }
 })
 

3D coming soon?

yesn't

About

Web Game Development Kit is a JS Library that makes it easier to make web games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published