Skip to content

A lightweight and easy to use vanilla javascript game library for making front end browser games

License

Notifications You must be signed in to change notification settings

Kieran-Whelan/LWWGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LWWGL

About

Lightweight web game library is a powerful and easy to use javascript game library for making 2D browser games

Features

Current

  • Sprites
  • Key input
  • Mouse input
  • AABB collisions
  • Object registry

Coming soon

  • Sprite sheet support
  • Sound
  • More useful functions
  • Circle collisions

Basic Usage

Hello World



<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="lib/LWWGL.css" />
    <script type="text/javascript" src="lib/LWWGL.js"></script>
    <title>Document</title>
  </head>
  <body>
    <canvas
      id="myCanvas"
      class="canvas-center"        
      style="border: 1px solid #d3d3d3; width: 900px; height: 500px;"
    >
      Your browser does not support the HTML canvas tag.</canvas
    >
    <script>
        let helloWorld = new FillText(75, 100, "Hello World", "Arial", 30, black);
        helloWorld.draw();
    </script>
  </body>
</html>

Result:



frog

About

A lightweight and easy to use vanilla javascript game library for making front end browser games

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published