Skip to content

nativium/nativium-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nativium - Game

Nativium Game Screenshot



This is a sample about how to use Nativium architecture with custom install to build a game.


General

First of all you need to do the steps of the original Nativium project.

Visit:

https://github.com/nativium/nativium

Web Assembly Demo

Visit:

https://nativium.github.io/nativium-game/

Build for Linux

Execute the following commands to build for Linux:

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target linux setup
python nativium.py target linux build
python nativium.py target linux run

Build for macOS

Execute the following commands to build for macOS:

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target macos setup
python nativium.py target macos build
python nativium.py target macos run

Build for Windows

Execute the following commands to build for Windows:

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target windows setup
python nativium.py target windows build
python nativium.py target windows run

Obs: On Windows the terminal needs to be opened as administrator, otherwise the symlinks will not be created.

Build for WASM

Execute the following commands to build for Web Assembly (WASM):

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target wasm setup
python nativium.py target wasm build
python nativium.py target wasm serve

Build for iOS

Execute the following commands to build for iOS:

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target ios setup
python nativium.py target ios build
python nativium.py target ios package --no-framework
python nativium.py target ios dist generate
python nativium.py app ios-pods

Open the project for Xcode:

open apps/ios/runner/Runner.xcworkspace

Build for Android

Execute the following commands to build for Android:

git clone https://github.com/nativium/nativium.git nativium
cd nativium
python nativium.py custom install --path=../custom
python nativium.py target android setup
python nativium.py target android build
python nativium.py target android package
python nativium.py target android dist generate

Open the project for Android Studio:

apps/android/runner