Skip to content

Instantly share code, notes, and snippets.

View simonwhitehouse's full-sized avatar

Simon J Whitehouse simonwhitehouse

View GitHub Profile

Crugo WebRTC - Phase 1

For phase 1, only 2 users can video / audio chat at the same time in Crugo. This will eventually be developed to allow multiple user video / audio chat.

Brief Description - UX / UI

User A goes to the direct tag of User B and presses the call button. User A is presenting with a calling UI. User B received that call and is shown the being called UI. User B Then presses answer. At this stage both User A and User B are taken into the video chat UI. WebRTC does its thing and the call is initialised.

How it Works

Requesting a call

@simonwhitehouse
simonwhitehouse / gist:6f73847ab9daf5dd6e0e3c2a792b45d3
Created March 21, 2017 19:25
Part of code for Outer Clouds
-(void)startSpawning {
[self runAction:[SKAction repeatActionForever:
[SKAction sequence:@[
[SKAction performSelector:@selector(spawnPlanets)
onTarget:self],
[SKAction waitForDuration:[self getSpawnLength]]]]]];
[self runAction:[SKAction repeatActionForever:
[SKAction sequence:@[