- Download a Raspbian image (latest is usually a safe bet)
- Download and install Etcher: https://www.balena.io/etcher/
- Write image to SD Card
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PureComponent } from "react"; | |
| import { StyleSheet } from "react-native"; | |
| import ReglView from "./ReglView"; | |
| import mat4 from "gl-mat4"; | |
| import bunny from "bunny"; | |
| export default class Bunny extends PureComponent { | |
| drawCommand = regl => { | |
| return regl({ | |
| vert: ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { Dimensions } from "react-native"; | |
| import Matter from "matter-js"; | |
| import Platform from "./platform"; | |
| import Mario from "./mario"; | |
| //-- Overriding this function because the original references HTMLElement | |
| //-- which will throw an error when running in a React Native context | |
| Matter.Common.isElement = () => false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PureComponent } from "react"; | |
| import Matter from "matter-js"; | |
| import PlatformImage from "./platform.png"; //-- You can get the images from our repo. | |
| import Tile from "./tile"; //-- This is just a helper component | |
| import { collisionCategories } from "./constants"; | |
| export class Renderer extends PureComponent { | |
| render() { | |
| return ( | |
| <Tile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PureComponent } from "react"; | |
| import { StyleSheet, StatusBar } from "react-native"; | |
| import { GameEngine } from "react-native-game-engine"; | |
| import { LevelOne } from "./entities"; | |
| export default class App extends PureComponent { | |
| constructor(props) { | |
| super(props); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import { StyleSheet, Image } from "react-native"; | |
| import { collisionCategories } from "./constants"; | |
| import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; | |
| import Matter from "matter-js"; | |
| import MarioIdling from "./mario-idling.gif"; | |
| export class Renderer extends Component { | |
| render() { | |
| const source = this.props.actions[this.props.action]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| collisionCategories: { | |
| mario: 1, | |
| barrier: 2, | |
| platform: 4, | |
| ladder: 8, | |
| barrel: 16 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws s3 presign s3://bucket-name/folder/file.ext [--profile your-aws-profile] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xcrun simctl list | |
| xcrun simctl create <Your sim name> <Device id> <Runtime id> | |
| # Eg: xcrun simctl create XS-Max-13-3 com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max com.apple.CoreSimulator.SimRuntime.iOS-13-3 | |
| xcrun simctl boot <UUID from create command> | |
| open -a Simulator --args -CurrentDeviceUDID <UUID from create command> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws s3 cp s3://bucket-name/optional-path ./local/path --recursive |
OlderNewer