react-game-kit icon indicating copy to clipboard operation
react-game-kit copied to clipboard

Example for React Native?

Open robbalian opened this issue 8 years ago • 12 comments

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!

robbalian avatar Sep 18 '16 02:09 robbalian

I'll push a repo later today

kenwheeler avatar Sep 19 '16 13:09 kenwheeler

Is the syntax the same for React Native as for DOM/Canvas?

mraak avatar Sep 21 '16 12:09 mraak

@mraak it is. you just import from react-game-kit/native

kenwheeler avatar Sep 22 '16 01:09 kenwheeler

the only difference is it uses View instead of div. And some css-layout tweaks for styling.

kenwheeler avatar Sep 22 '16 01:09 kenwheeler

interesting

sendking avatar Sep 26 '16 12:09 sendking

any news ? @kenwheeler

melihmucuk avatar Sep 30 '16 20:09 melihmucuk

@kenwheeler, very keen to see a react native example. If I could be cheeky, a simply platform game implementation would be beautiful!

aaronmyatt avatar Oct 05 '16 09:10 aaronmyatt

https://github.com/kenwheeler/gamekit-native-demo

7underlines avatar Nov 21 '16 10:11 7underlines

Anyone got Sprite animation working on React Native using this library? 🤔 🆘

Eyesonly88 avatar Dec 27 '16 11:12 Eyesonly88

@Eyesonly88 I have, but i guess its late lol

micahkatz avatar Nov 25 '17 05:11 micahkatz

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?

kjin9174 avatar Dec 05 '17 01:12 kjin9174

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!

shirakaba avatar Apr 01 '18 16:04 shirakaba