Skip to content

Instantly share code, notes, and snippets.

View tarrouye's full-sized avatar
🤧
*achoo*

Théo Arrouye tarrouye

🤧
*achoo*
View GitHub Profile
@tarrouye
tarrouye / UIApplication+Safari.swift
Last active June 28, 2023 22:51
Present SFSafariViewController as a NavigationController from SwiftUI.
//
// UIApplication+Safari.swift
// DoraDora
//
// Created by Théo Arrouye on 5/12/23.
//
import SafariServices
import UIKit
@tarrouye
tarrouye / CharadeView.swift
Last active September 20, 2022 07:42
Simple SwiftUI Charades game
//
// CharadeView.swift
//
//
// Created by Théo Arrouye on 9/14/22.
//
import SwiftUI
// MARK: Custom Clip Shape
import SwiftUI
import PlaygroundSupport
import MapKit
struct MapView: UIViewRepresentable {
var locationManager = CLLocationManager()
func setupManager() {
locationManager.desiredAccuracy = kCLLocationAccuracyBest
import SwiftUI
import PlaygroundSupport
struct ToggleView: View {
@Binding var name: String
@Binding var symbolSystemName: String
@Binding var enabled : Bool
@Binding var highlightCol : UIColor
@Binding var expanded : Bool
@tarrouye
tarrouye / Gradientpuzzle.pde
Created December 13, 2017 05:50
Gradient Puzzle game for Processing
List<Integer> puzzle;
float pieceSize;
color[] cols;
boolean scrambled;
int selected;
boolean won;
boolean menu;
@tarrouye
tarrouye / Ladderman.pde
Last active April 3, 2018 15:46
Ladderman game for Processing\nEdited to removed highscore database dependency
float rows = 10.0;
PVector tileSize;
boolean[][] ladders;
int EASYMODE = 1;
int HARDMODE = 2;
int MODE = EASYMODE;
int score = 0;
@tarrouye
tarrouye / Pianotiles.pde
Created December 13, 2017 05:48
Piano Tiles game for Processing
int tileW, tileH;
int[][] tiles = new int[5][4];
color[] colours = { color(0), color(0, 127, 255), color(0, 255, 127), color(255, 10, 10) };
int scrollY;
int scrollSpeed;
int startingSpeed = 5;
int speedIncrease = 0.0075;
@tarrouye
tarrouye / Takuzu.pde
Created December 13, 2017 05:40
Takuzu game for Processing. Created by Théo Arrouye, 2016.
color[] tileColors = { color(85,98,112), color(255,107,107), color(78,205,196), color(199,244,100), color(121,189,154,180) };
int gridSize;
int tileSize;
int[] tileRadiusOptions = { 15, 90 };
int tileRadiusChoice = 1;
boolean menu = true;
Array[] tab;
Array[] wonBoards;
int player;
int winner;
color[] playerCols = { color(255, 0, 0), color(0, 0, 255) };
String[] playerNames = { "x", "o" };
float cw;
@tarrouye
tarrouye / Number Rush.pde
Last active April 3, 2018 16:00
source code for number rush
float limit;
int scoreadd;
int found;
boolean done;
float startTime;
float totalTime;
String totalTimeS;
List<Integer> tab;