react-game-kit
react-game-kit copied to clipboard
Example for React Native?
Any chance someone has created an example in React Native? Since a few things are different, it would really help to have some working example code to help people get started. Thanks!
I'll push a repo later today
Is the syntax the same for React Native as for DOM/Canvas?
@mraak it is. you just import from react-game-kit/native
the only difference is it uses View instead of div. And some css-layout tweaks for styling.
interesting
any news ? @kenwheeler
@kenwheeler, very keen to see a react native example. If I could be cheeky, a simply platform game implementation would be beautiful!
https://github.com/kenwheeler/gamekit-native-demo
Anyone got Sprite animation working on React Native using this library? 🤔 🆘
@Eyesonly88 I have, but i guess its late lol
I have simple react game over react-game-kit. i need to display this game in my siteground hosting server. So i googled. but there was node installation by SSH. Any method?
Here's my repo for a React Native demo, which also integrates TypeScript: https://github.com/shirakaba/react-native-typescript-2d-game
It's an Expo app, so you can even try it out via the Expo link:
https://exp.host/@bottledlogic/the-box
No Sprite animation, no physics; just transforms of <View>
components. As basic as possible, really. But it does run at 60 fps!