Skip to content

tomsoderlund/expo-2d-game-engine

Repository files navigation

expo-2d-game-engine

React Native 2D game engine built on Skia* and Expo:

  • react-native
  • expo
  • react-native-skia: for graphics
  • react-native-reanimated: for animations
  • react-native-gesture-handler: for gesture input
  • expo-av: for sound

*There is an old branch old-expo-2d-context that uses expo-2d-context/expo-gl instead of Skia.

Features

expo-2d-game-engine demo on phone

  • Graphics: SVG (inline and file-based) and bitmaps.
  • Sound: useSound hook to play MP3’s.
  • Math for collisions and vectors.
  • Declarative, component-based programming paradigm with functional components.

How to use

Clone this repository:

git clone https://github.com/tomsoderlund/expo-2d-game-engine.git [MY_APP]

cd [MY_APP]

Remove the .git folder since you want to create a new repository

rm -rf .git

Install dependencies (you can use yarn or npm too):

bun install

Start Expo for native apps:

bun run dev

Create builds for TestFlight and App Store

(Replace ios with android for Google Play)

bun build:ios  # create a build with EAS
bun submit:ios  # send the build to Apple/Google

Modifying the game

Portrait vs Landscape:

app.json:

"orientation": "landscape"

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy