makarkotlov / react-native-snake-game

Snake game created with react-native-game-engine, mobx and typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Snake Game

Features

  • Choose board size
  • Choose difficulty
  • Choose color theme
  • Swipes vs Joystick
  • Teleportation
  • JSC vs Hermes vs V8

Setup

  1. git clone
  2. npm i
  3. cd ios && pod install

Engine change

  1. Checkout the branch with different engine
  2. npm i
  3. cd android && ./gradlew clean (if you built the project before)
  4. Profile with Android Studio profiler
  5. Profile in release by adding in android/app/build.gradle
...
 android {
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }
    compileSdkVersion rootProject.ext.compileSdkVersion
    compileOptions {...

and in application in AndroidManifest.xml

...
    android:debuggable="true">
...

About

Snake game created with react-native-game-engine, mobx and typescript


Languages

Language:TypeScript 58.9%Language:Java 16.4%Language:C++ 10.3%Language:Objective-C++ 5.4%Language:JavaScript 3.1%Language:Makefile 2.3%Language:Ruby 1.5%Language:Objective-C 1.2%Language:Starlark 0.9%Language:Shell 0.0%