Skip to content
forked from EvanBacon/snake

react-native-pixi ๐Ÿ๐ŸŽฎ Snake game made in React Native with @flyskywhy/react-native-gcanvas instead of expo-gl ๐Ÿ‘พ iOS, Android, and Web

Notifications You must be signed in to change notification settings

flyskywhy/snakeRN

ย 
ย 

Repository files navigation

๐Ÿ snakeRN ๐ŸŽฎ

PIXI Snake game made in React Native with @flyskywhy/react-native-gcanvas instead of expo-gl ๐Ÿ‘พ The goal of this project is to create a simple Snake clone that could be used in any 'webgl' or '2d' context. The primary target being native iPhone and Android apps.

For now, SnakeRN is based on react-native-pixi@2 and pixi.js@4.8.9, even actually SnakeRN can be based on pixi.js @4, @5, @6 or @7 directly without react-native-pixi as described in react-native-pixi@3, I just leave it to be a final example of react-native-pixi@2.

npm install --legacy-peer-deps

npm run rn to start react-native packager for development.

npm run rn-fresh to reset-cache before start react-native packager for development.

Android

npm run android to generate android/app/build/outputs/apk/debug/app-debug.apk for development.

npm run build-android to generate android/app/build/outputs/apk/release/app-release.apk for production.

npm run bundle-android to android/app/build/outputs/bundle/release/app-release.aab for production.

iOS

use Xcode.

Web

npm run web for development, then view it at http://localhost:3000 in web browser.

npm run web-fresh to delete node_modules/.cache/* before npm run web , it's useful if there is running strange bug unknow.

npm run build-web to generate files in build/ for production to deploy to https://foo.bar.com/ , and can use npx http-server@13.0.2 build to simply test it at http://127.0.0.1:8080 in web browser.

npm run build-web-snakeRN to generate files in build/ for production to deploy to https://foo.bar.com/snakeRN/, e.g. https://flyskywhy.github.io/snakeRN/ .

Check out the (expo/expo-pixi) video tutorial!

IMAGE ALT TEXT HERE

Give it a ๐Ÿ‘ if you found it helpful ๐Ÿ˜๐Ÿ’™

About

react-native-pixi ๐Ÿ๐ŸŽฎ Snake game made in React Native with @flyskywhy/react-native-gcanvas instead of expo-gl ๐Ÿ‘พ iOS, Android, and Web

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 65.3%
  • Java 14.1%
  • Objective-C 10.7%
  • HTML 4.0%
  • Starlark 3.9%
  • Ruby 2.0%