Comments (1)
Your data is actually stored upside down. It depends how you look at it of course, but normally we think of the positive y axis as pointing up like LittleJS, not down like array notation.
You can store your data however you want, so long as it gets into the right place. It looks like you've already figured out how to solve the problem.
from littlejs.
Related Issues (20)
- Redrawing a single tileData after changing its data HOT 7
- Help using shaders HOT 4
- Drawing images from texture that are not following the "tileIndex rule" HOT 8
- Preventing render of objects outside gl canvas? HOT 2
- Debug mode information/legend HOT 3
- Direction angle for particle emitter HOT 4
- Use ES module or CommonJS ? HOT 4
- "abusing renderOrder" potential performance issues? HOT 3
- "?102" HOT 1
- A bit of help with changing shaders appreciated HOT 8
- Changing debug consts to let? HOT 2
- mainCanvasSize in gameInit() does not seem to be initialized HOT 2
- Vector2.normalize() returns (1,0) when used on a zero-length vector (0,0) HOT 1
- Docs: search dropdown shows wrong return types for some functions HOT 2
- bug: touchend event problem. HOT 3
- ESM build HOT 5
- Programmatically Triggering Inputs in LittleJS for Adaptive Gaming HOT 3
- Use node for build system HOT 8
- Needs more tutorials
- Tilde (~) for debug mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from littlejs.