Skip to content

Commit

Permalink
Update README, cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Sep 22, 2020
1 parent aaa77bd commit 19ce191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ Then serve `examples/wasm` dir to browser. i.e.
#### pre-req

$ rustup target add aarch64-apple-ios x86_64-apple-ios
$ brew install xcodegen
$ cargo install cargo-lipo

#### build & run

$ cd examples/ios
$ make run

If you'd like to see xcode do stuff, you can run
$ make xcodegen
$ open bevy_ios_example.xcodeproj/

which will open xcode. You then must push the zoom zoom play button.
3 changes: 1 addition & 2 deletions examples/ios/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

use bevy::{
prelude::*,
render::pass::ClearColor,
sprite::collide_aabb::{collide, Collision},
};

#[no_mangle]
extern fn main_rs() {
extern "C" fn main_rs() {
App::build()
.add_default_plugins()
.add_resource(Scoreboard { score: 0 })
Expand Down

0 comments on commit 19ce191

Please sign in to comment.