Skip to content

Instantly share code, notes, and snippets.

View mattThousand's full-sized avatar
👨‍🚀

Matt Buckley mattThousand

👨‍🚀
View GitHub Profile
struct AnimatedView: View {
@State var percentComplete: CGFloat = 0.0
var body: some View {
Ellipse()
.trim(from: 0, to: self.percentComplete)
.stroke(Color.purple, style: StrokeStyle(lineWidth: 20, lineCap: .round))
.frame(width: UIScreen.main.bounds.width / 2, height: UIScreen.main.bounds.width)
.animation(.easeOut(duration: 2.0))
.onAppear {
@mattThousand
mattThousand / Prototype_Game_Spec.md
Last active May 8, 2019 01:58
Game Spec (Prototype)

Turbo Sheep Dog (Prototype)

Game Concept

  • You're a cute little sheep dog, running along, trying to add more dogs to your pack while avoiding obstacles
    • alternative concept: fish/school of fish

Mechanic

Movement

  • Horizontal sidescroller
    • constant horizontal (rightward) movement
/*
*
* tsconfig.json
*
*/
{
"compilerOptions": {
"target": "es6",
"module": "commonJs",
"baseUrl": ".",