Skip to content

yisar/gei

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gay logo

Gei

Fast 1kb sprites system with webgl.

Feature

  • 🍃 Minimal, gzip just 1kb
  • 🌀 High Performance, 60 FPS

Use

import { create } from './src/index.js'
const stage = create('#canvas')
const sprite = stage.add('hj.png')
function loop() {
  sprite.x = Math.random() * stage.gl.canvas.width
  sprite.y = Math.random() * stage.gl.canvas.height
  stage.draw()
  requestAnimationFrame(loop)
}
loop()

P.S.

logo 不是鸟,是鸡,好吧也是鸟,反正就是那个地方,你懂的

About

👾 Fast 1kb sprites system with webgl.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published