Open jbrod22 opened 6 years ago
@jbrod22 If you can get it working by slightly modifying the original example code and then making incremental customizations from there, you might be able to track down what's going wrong.
One thing I can tell for sure is that filesToLoad
needs to be an array of strings.
One thing I can tell for sure is that filesToLoad needs to be an array of strings.
The import NewWorld from './assets/newworld.json'; import Tileset from './assets/tileset.png';
are actually url strings
I'm following the scrollingWorldExample as best I can.
The imported json and png are actually the url locations of each file. In the image attached the white screen is the renderer. The
message
is rendered properly but nothing else is.Sorry about the code formatting. Nothing is working right for me.
'import React, {Component} from 'react'; import {connect} from 'react-redux'; import CanvasStyle from './canvas.scss'; import NewWorld from './assets/newworld.json'; import Tileset from './assets/tileset.png';
class Canvas extends Component {
}
const mapStateToProps = (state, ownProps) => { return {}; };
const mapDispatchToProps = (dispatch) => { return {} }
export default connect(mapStateToProps, mapDispatchToProps)(Canvas);'