An open API service indexing awesome lists of open source software.

https://github.com/randomgamingdev/gltilemapp5js

A tilemap library for p5.js's OpenGL mode that is optimized to draw tilemaps within a single draw call
https://github.com/randomgamingdev/gltilemapp5js

efficient gpu-acceleration instancing javascript js library opengl opengl-es p5js texture textures tilemap webgl webgl2

Last synced: 2 months ago
JSON representation

A tilemap library for p5.js's OpenGL mode that is optimized to draw tilemaps within a single draw call

Awesome Lists containing this project

README

        

# GLTilemapp5js
A tilemap library for p5.js's OpenGL mode that is optimized to draw tilemaps within a single draw call using WebGL

Here's an example showing how to use the library https://github.com/RandomGamingDev/GLTilemapp5js/tree/main/examples/p5js-example. You can see the example here: https://raw.githack.com/RandomGamingDev/GLTilemapp5js/main/examples/p5js-example/index.html.

This library requires the following libraries which are to be imported in the following order:
- [WebGL2Tex](https://github.com/RandomGamingDev/WebGL2Tex)
- [WebGL2FBO](https://github.com/RandomGamingDev/WebGL2FBO)
- [GLPixyp5js](https://github.com/RandomGamingDev/GLPixyp5js)

To use it you can simply include https://cdn.jsdelivr.net/gh/RandomGamingDev/GLTilemapp5js/tilemap.js alongside this library's dependencies in your HTML file! If you want to you can also just download the file and include it in your HTML file that way.

btw stuff updates so remember to specify a version/commit for your library if you want to use a link and don't want your code to automatically update to the newest version of the library