Comments (1)
Found out that I was not properly positioning elements.
Since the origin is always the center of the body, the css transform applied for the rendering was not correct.
Looks like the demo should be updated to reflect a more fool-proof way to draw bodies.
State should probably only always be applied to the underlying matter-js bodies and rendering should always use matter-js bodies props instead of state, at least for the bounding box wrappers.
from react-game-kit.
Related Issues (20)
- Run into a problem with two or more sprites changing state simultaneously HOT 2
- Cannot read property 'subscribers' of undefined HOT 4
- Sprite Src Issue In RN HOT 2
- How can I remove the dependency on prop-types (as TypeScript provides type-safety already)?
- Replacing Loop div element with Fragment
- tilemap not updating when passed new array props
- Components should forward classNames HOT 1
- New context API HOT 1
- Keypress in demo fires twice for Firefox
- React Native: <Body><View> = Position disarray
- Sprite: switching repeat not working without changing state
- Does TileMap work with files like tiles.png
- Unit Test Mocks
- CRA 2.0 Issues
- How to create a component of falling shapes
- Current project status HOT 4
- Loop proptypes.object react-game-kit HOT 1
- Demo broken
- Archived? Whats the future on this? HOT 4
- Update build tooling infrastructure.
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 react-game-kit.