├── .DS_Store
├── .gitignore
├── LICENSE
├── README.md
├── Resources
├── .DS_Store
├── 3DTouchGame.gif
├── FlyingFish.gif
├── angryBirds.gif
├── botaoSpriteKit.gif
├── mural.gif
├── techDemoSA.gif
└── tic-tac-toe.gif
└── TechDemos
├── .DS_Store
├── 3DTouchGame
├── .DS_Store
├── TesteSpriteKit.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── TesteSpriteKit
│ ├── .DS_Store
│ ├── Actions.sks
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── .DS_Store
│ ├── AppIcon.appiconset
│ │ ├── 1024.png
│ │ ├── 114.png
│ │ ├── 120.png
│ │ ├── 180.png
│ │ ├── 29.png
│ │ ├── 40.png
│ │ ├── 57.png
│ │ ├── 58.png
│ │ ├── 60.png
│ │ ├── 80.png
│ │ ├── 87.png
│ │ └── Contents.json
│ └── Contents.json
│ ├── Controller
│ └── GameViewController.swift
│ ├── GameScene.sks
│ ├── Info.plist
│ ├── Protocol
│ ├── RecordDelegate.swift
│ └── ScoreDelegate.swift
│ ├── Scene
│ ├── GameElements.swift
│ ├── GameOverScene.swift
│ └── GameScene.swift
│ ├── Sounds
│ ├── .DS_Store
│ ├── Blop.mp3
│ ├── hit.mp3
│ ├── music.m4a
│ └── score.mp3
│ └── View
│ └── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── AngryBirdsTechDemo
├── AngryBirdsTechDemo.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── AngryBirdsTechDemo
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Contents.json
│ ├── backgrouds
│ │ ├── Contents.json
│ │ ├── background_0.imageset
│ │ │ ├── Contents.json
│ │ │ └── backgroud_0.jpg
│ │ ├── background_1.imageset
│ │ │ ├── Contents.json
│ │ │ └── backgroud_1.jpeg
│ │ └── background_3.imageset
│ │ │ ├── Contents.json
│ │ │ └── backgroud_3.png
│ └── sling.imageset
│ │ ├── Contents.json
│ │ └── sling.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Controllers
│ ├── Camera
│ │ └── Camera.swift
│ └── GameViewController.swift
│ ├── Info.plist
│ ├── Settings
│ └── Settings.swift
│ └── Views
│ ├── Bird
│ └── Bird.swift
│ ├── Box
│ └── Box.swift
│ └── Scene
│ └── GameScene.swift
├── Botao SpriteKit
├── .DS_Store
└── BotaoSpriteKit.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── FlyingFish
├── .DS_Store
├── Flappy
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── icon1024.png
│ │ │ ├── icon120-1.png
│ │ │ ├── icon120.png
│ │ │ ├── icon180.png
│ │ │ ├── icon40.png
│ │ │ ├── icon58.png
│ │ │ ├── icon60.png
│ │ │ ├── icon80.png
│ │ │ └── icon87.png
│ │ ├── Contents.json
│ │ ├── GameOver.imageset
│ │ │ ├── Contents.json
│ │ │ └── GameOver.png
│ │ ├── LaunchScreen.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchScreen@2x.png
│ │ │ └── LaunchScreen@3x.png
│ │ ├── background.imageset
│ │ │ ├── Contents.json
│ │ │ └── background@2x.png
│ │ ├── enemybottom1.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemybottom1@2x.png
│ │ ├── enemybottom2.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemybottom2@2x.png
│ │ ├── enemybottom3.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemybottom3@2x.png
│ │ ├── enemybottom4.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemybottom4@2x.png
│ │ ├── enemytop1.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemytop1@2x.png
│ │ ├── enemytop2.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemytop2@2x.png
│ │ ├── enemytop3.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemytop3@2x.png
│ │ ├── enemytop4.imageset
│ │ │ ├── Contents.json
│ │ │ └── enemytop4@2x.png
│ │ ├── floor.imageset
│ │ │ ├── Contents.json
│ │ │ └── floor@2x.png
│ │ ├── intro.imageset
│ │ │ ├── Contents.json
│ │ │ └── intro@2x.png
│ │ ├── player1.imageset
│ │ │ ├── Contents.json
│ │ │ └── player1@2x.png
│ │ ├── player2.imageset
│ │ │ ├── Contents.json
│ │ │ └── player2@2x.png
│ │ ├── player3.imageset
│ │ │ ├── Contents.json
│ │ │ └── player3@2x.png
│ │ ├── player4.imageset
│ │ │ ├── Contents.json
│ │ │ └── player4@2x.png
│ │ └── playerDead.imageset
│ │ │ ├── Contents.json
│ │ │ └── playerDead.png
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── GameScene.swift
│ ├── GameViewController.swift
│ ├── Info.plist
│ └── Sounds
│ │ ├── Blop.mp3
│ │ ├── bonus.mp3
│ │ ├── hit.mp3
│ │ └── music.m4a
└── FlyingFish.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── MarioCover
├── MarioCover.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── MyGame.xcscheme
├── MarioCover
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ ├── .DS_Store
│ │ ├── AppIcon.appiconset
│ │ │ ├── 246x0w.jpg
│ │ │ └── Contents.json
│ │ ├── Contents.json
│ │ ├── floor1.imageset
│ │ │ ├── Contents.json
│ │ │ └── floor1.png
│ │ ├── floor2.imageset
│ │ │ ├── Contents.json
│ │ │ └── floor2.png
│ │ ├── left.imageset
│ │ │ ├── Contents.json
│ │ │ └── left.png
│ │ ├── left_arrow.imageset
│ │ │ ├── Contents.json
│ │ │ └── left_arrow.png
│ │ ├── mapa.imageset
│ │ │ ├── Contents.json
│ │ │ └── mapa.png
│ │ ├── mario.imageset
│ │ │ ├── Contents.json
│ │ │ ├── DMn1oOwWkAEIupg-1.png
│ │ │ ├── DMn1oOwWkAEIupg-2.png
│ │ │ └── DMn1oOwWkAEIupg.png
│ │ ├── mario22.imageset
│ │ │ ├── Contents.json
│ │ │ └── mario.png
│ │ ├── marioSprites.spriteatlas
│ │ │ ├── Contents.json
│ │ │ ├── mario1.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.11.27.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario10.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.24.25.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario11.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.24.19.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario12.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.24.09.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario13.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.12.47.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario14.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.12.16-1.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario2.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.26.57.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario3.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.26.52.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario4.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.25.29.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario5.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.25.24.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario6.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.25.19.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario7.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.25.01.png
│ │ │ │ └── Contents.json
│ │ │ ├── mario8.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.24.44.png
│ │ │ │ └── Contents.json
│ │ │ └── mario9.imageset
│ │ │ │ ├── Captura de Tela 2019-02-27 às 09.24.39.png
│ │ │ │ └── Contents.json
│ │ ├── mario_set.imageset
│ │ │ ├── Contents.json
│ │ │ └── ezgif.com-gif-maker.png
│ │ ├── parede.imageset
│ │ │ ├── Contents.json
│ │ │ └── parede-1.png
│ │ ├── right_arrow.imageset
│ │ │ ├── Contents.json
│ │ │ └── right_arrow.png
│ │ ├── tartaruga.imageset
│ │ │ ├── Contents.json
│ │ │ └── tartaruga.png
│ │ ├── top_arrow.imageset
│ │ │ ├── Contents.json
│ │ │ └── top_arrow.png
│ │ └── tubo.imageset
│ │ │ ├── Contents.json
│ │ │ └── tubo.png
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Components
│ │ ├── JumpComponent.swift
│ │ ├── MovementComponent.swift
│ │ └── WalkComponent.swift
│ ├── Info.plist
│ ├── Stickers.xcstickers.xcstickers
│ │ ├── Contents.json
│ │ ├── Sticker Pack.stickerpack
│ │ │ └── Contents.json
│ │ └── iMessages App Icon.stickersiconset
│ │ │ └── Contents.json
│ ├── controllers
│ │ └── GameViewController.swift
│ ├── entities
│ │ └── Mario.swift
│ ├── extensions
│ │ └── SKTextureAtlas+MyGame.swift
│ ├── models
│ │ └── SpriteSheet.swift
│ ├── nodes
│ │ └── ButtonNode.swift
│ ├── protocols
│ │ └── MarioMovement.swift
│ ├── scenes
│ │ └── fase1
│ │ │ ├── Background.sks
│ │ │ └── GameScene.swift
│ └── sounds
│ │ ├── jump.mp3
│ │ ├── loop.mp3
│ │ └── yisland.mp3
└── MarioCoverTests
│ ├── Info.plist
│ └── MyGameTests.swift
├── MuralDeHerois
├── MuralDeHerois.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── MuralDeHerois
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Contents.json
│ └── background.imageset
│ │ ├── Contents.json
│ │ └── x18rx2dbtnfy.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Camera.swift
│ ├── GameScene.swift
│ ├── GameViewController.swift
│ └── Info.plist
├── SoundPlatform
├── .DS_Store
├── SoundPlatform.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── SoundPlatform 2.xcscheme
│ │ └── SoundPlatform.xcscheme
└── SoundPlatform
│ ├── Actions.sks
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Contents.json
│ ├── ball.imageset
│ │ ├── Contents.json
│ │ └── tennis.png
│ ├── hihat.imageset
│ │ ├── Contents.json
│ │ └── hihat.png
│ ├── kick.imageset
│ │ ├── Contents.json
│ │ └── kick.png
│ └── snare.imageset
│ │ ├── Contents.json
│ │ └── snare.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── GameScene.sks
│ ├── GameScene.swift
│ ├── GameViewController.swift
│ ├── Info.plist
│ ├── Tools
│ ├── Ball.swift
│ ├── Component.swift
│ └── Settings.swift
│ └── sounds
│ ├── hihat.mp3
│ ├── kik.mp3
│ └── snare.mp3
└── Tic-Tac-Toe
├── .DS_Store
├── Tic-Tac-Toe.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ └── IDEWorkspaceChecks.plist
└── Tic-Tac-Toe
├── AppDelegate.swift
├── Assets.xcassets
├── AppIcon.appiconset
│ └── Contents.json
├── Contents.json
├── O.imageset
│ ├── Contents.json
│ ├── O.png
│ ├── O@2x.png
│ └── O@3x.png
├── X.imageset
│ ├── Contents.json
│ ├── X.png
│ ├── X@2x.png
│ └── X@3x.png
├── board3.imageset
│ ├── Contents.json
│ ├── board3.png
│ ├── board3@2x.png
│ └── board3@3x.png
├── board4.imageset
│ ├── Contents.json
│ ├── board4.png
│ ├── board4@2x.png
│ └── board4@3x.png
├── close.imageset
│ ├── Contents.json
│ ├── close.png
│ ├── close@2x.png
│ └── close@3x.png
├── play.imageset
│ ├── Contents.json
│ ├── play.png
│ ├── play@2x.png
│ └── play@3x.png
├── settings.imageset
│ ├── Contents.json
│ ├── settings.png
│ ├── settings@2x.png
│ └── settings@3x.png
└── settingsTitle.imageset
│ ├── Contents.json
│ ├── settingsTitle.png
│ ├── settingsTitle@2x.png
│ └── settingsTitle@3x.png
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
├── Extension
├── SKColor + Tic-Tac-Toe.swift
└── UIColor + Tic-Tac-Toe.swift
├── Game
├── GameScene.swift
└── GameViewController.swift
├── Info.plist
├── Menu
├── MenuScene.swift
└── MenuViewController.swift
├── Model
├── Board.swift
├── Move.swift
├── Player.swift
└── Strategist.swift
├── Protocol
├── GotoProtocol.swift
└── PresentingProtocol.swift
├── Settings
└── SettingsViewController.swift
└── Sounds
├── failure.mp3
└── success.wav
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xccheckout
23 | *.xcscmblueprint
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 | *.ipa
28 | *.dSYM.zip
29 | *.dSYM
30 |
31 | ## Playgrounds
32 | timeline.xctimeline
33 | playground.xcworkspace
34 |
35 | # Swift Package Manager
36 | #
37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38 | # Packages/
39 | # Package.pins
40 | # Package.resolved
41 | .build/
42 |
43 | # CocoaPods
44 | #
45 | # We recommend against adding the Pods directory to your .gitignore. However
46 | # you should judge for yourself, the pros and cons are mentioned at:
47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
48 | #
49 | # Pods/
50 |
51 | # Carthage
52 | #
53 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
54 | # Carthage/Checkouts
55 |
56 | Carthage/Build
57 |
58 | # fastlane
59 | #
60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
61 | # screenshots whenever they are needed.
62 | # For more information about the recommended setup visit:
63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
64 |
65 | fastlane/report.xml
66 | fastlane/Preview.html
67 | fastlane/screenshots/**/*.png
68 | fastlane/test_output
69 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 João Levy Cristian Dos Anjos
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Resources/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/.DS_Store
--------------------------------------------------------------------------------
/Resources/3DTouchGame.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/3DTouchGame.gif
--------------------------------------------------------------------------------
/Resources/FlyingFish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/FlyingFish.gif
--------------------------------------------------------------------------------
/Resources/angryBirds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/angryBirds.gif
--------------------------------------------------------------------------------
/Resources/botaoSpriteKit.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/botaoSpriteKit.gif
--------------------------------------------------------------------------------
/Resources/mural.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/mural.gif
--------------------------------------------------------------------------------
/Resources/techDemoSA.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/techDemoSA.gif
--------------------------------------------------------------------------------
/Resources/tic-tac-toe.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/Resources/tic-tac-toe.gif
--------------------------------------------------------------------------------
/TechDemos/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Actions.sks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Actions.sks
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // TesteSpriteKit
4 | //
5 | // Created by Mateus Sales on 25/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "40.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "60.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "29.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "58.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "87.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "80.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "120.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "57x57",
47 | "idiom" : "iphone",
48 | "filename" : "57.png",
49 | "scale" : "1x"
50 | },
51 | {
52 | "size" : "57x57",
53 | "idiom" : "iphone",
54 | "filename" : "114.png",
55 | "scale" : "2x"
56 | },
57 | {
58 | "size" : "60x60",
59 | "idiom" : "iphone",
60 | "filename" : "120.png",
61 | "scale" : "2x"
62 | },
63 | {
64 | "size" : "60x60",
65 | "idiom" : "iphone",
66 | "filename" : "180.png",
67 | "scale" : "3x"
68 | },
69 | {
70 | "size" : "1024x1024",
71 | "idiom" : "ios-marketing",
72 | "filename" : "1024.png",
73 | "scale" : "1x"
74 | }
75 | ],
76 | "info" : {
77 | "version" : 1,
78 | "author" : "xcode"
79 | }
80 | }
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Controller/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // TesteSpriteKit
4 | //
5 | // Created by Mateus Sales on 25/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import AVFoundation
12 |
13 |
14 | class GameViewController: UIViewController {
15 |
16 | var musicPlayer = AVAudioPlayer()
17 |
18 | override func viewDidLoad() {
19 | super.viewDidLoad()
20 |
21 | if let view = self.view as! SKView? {
22 | // Load the SKScene from 'GameScene.sks'
23 | if let scene = SKScene(fileNamed: "GameScene") {
24 | playMusic()
25 | // Set the scale mode to scale to fit the window
26 | scene.scaleMode = .aspectFill
27 |
28 | // Present the scene
29 | view.presentScene(scene)
30 | }
31 |
32 | view.ignoresSiblingOrder = true
33 |
34 | view.showsFPS = true
35 | view.showsNodeCount = true
36 | }
37 | }
38 |
39 | func playMusic(){
40 | // Construindo uma URL a partir de um arquivo importado para o projeto
41 | if let musicURL = Bundle.main.url(forResource: "music", withExtension: "m4a"){
42 | musicPlayer = try! AVAudioPlayer(contentsOf: musicURL) // Para construir um objeto AVAudioPlayer você passa uma URL como paramêtro
43 | musicPlayer.numberOfLoops = -1 // Atribuindo -1 ao número de loops a música tocará indefinidademente
44 | musicPlayer.volume = 0.4 //Atribuindo o volume para o áudio
45 | musicPlayer.play() // Tocar a música
46 | }
47 | }
48 |
49 | override var shouldAutorotate: Bool {
50 | return true
51 | }
52 |
53 | override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
54 | if UIDevice.current.userInterfaceIdiom == .phone {
55 | return .allButUpsideDown
56 | } else {
57 | return .all
58 | }
59 | }
60 |
61 | override var prefersStatusBarHidden: Bool {
62 | return true
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/GameScene.sks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/GameScene.sks
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | 3DTouchGame
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UIStatusBarHidden
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Protocol/RecordDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RecordDelegate.swift
3 | // TesteSpriteKit
4 | //
5 | // Created by Mateus Sales on 27/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | protocol RecordDelegate {
12 | func recebeRecord(record: String)
13 | }
14 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Protocol/ScoreDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ScoreDelegate.swift
3 | // TesteSpriteKit
4 | //
5 | // Created by Mateus Sales on 26/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | protocol ScoreDelegate: class {
12 | func recebeScore(score: Int)
13 | }
14 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Scene/GameOverScene.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameOverScene.swift
3 | // TesteSpriteKit
4 | //
5 | // Created by Mateus Sales on 25/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 | class GameOverScene: SKScene {
12 | // Ambas as variáveis são passadas de uma tela para outra por meio de delegate
13 | // Pontuação do jogador na atual partida
14 | var score = 0
15 | // Variável que vai armazenar o record do usuário
16 | var record: String = ""
17 |
18 | // Chamada para sobrescrever o construtor
19 | required init?(coder aDecoder: NSCoder) {
20 | super.init()
21 | }
22 |
23 | // Sobrescrevendo o construtor padrão da classe
24 | override init(size: CGSize) {
25 | super.init(size: size)
26 | self.backgroundColor = SKColor.black // Colocando como cor de fundo da view o preto
27 | }
28 |
29 | override func didMove(to view: SKView) {
30 | let labelScore = SKLabelNode(fontNamed: "Optima-ExtraBlack") // Definindo qual a fonte
31 | labelScore.text = "Score: \(score)" // Atribuindo o texto que será mostrado
32 | labelScore.fontColor = .white // Colocando como branco a cor da label
33 | labelScore.position = CGPoint(x: self.size.width / 2, y: self.size.height / 2 - 50) // Setando a posição da label
34 | addChild(labelScore) //Adcionando a label como filha da cena
35 |
36 | let label = SKLabelNode(fontNamed: "Optima-ExtraBlack") // Definindo qual a fonte
37 | label.text = "Game Over" // Atribuindo o texto que será mostrado
38 | label.fontColor = SKColor.white // Colocando como branco a cor da label
39 | label.position = CGPoint(x: self.size.width / 2 , y: self.size.height / 2) // Definindo a posição da label, neste caso centralizada verticalmente e horizontalmente
40 | addChild(label) // Adcionando a label como filha da minha cena
41 |
42 | let labelRecord = SKLabelNode(fontNamed: "Optima-ExtraBlack") // Definindo qual a fonte
43 | labelRecord.text = record // Atribuindo o texto que será mostrado
44 | labelRecord.fontColor = .white // Colocando como branco a cor da label
45 | labelRecord.position = CGPoint(x: self.size.width / 2 , y: self.size.height / 2 - 100) // Setando a posição da label
46 | addChild(labelRecord) // Adcionando a label como filha da minha cena
47 |
48 | }
49 |
50 | // Este método é chamado automicamente toda vez que ocorre um toque na tela
51 | override func touchesBegan(_ touches: Set, with event: UIEvent?) {
52 | let transition = SKTransition.fade(withDuration: 0.5) // Definindo qual o tipo de transição e a duração da mesma
53 | let gameScene = GameScene(size: self.size) // Inicializamdo minha cena com o tamanho da minha view
54 | self.view?.presentScene(gameScene, transition: transition) // Apresentando uma cena, você informa qual a cena e qual a transição da mesma
55 | }
56 |
57 | }
58 |
59 | // Delegate para receber o score da GameScene
60 | extension GameOverScene: ScoreDelegate {
61 | // Recebe o score da GameScene e atribui a variável que existe nesta cena
62 | func recebeScore(score: Int) {
63 | self.score = score
64 | }
65 | }
66 |
67 | // Delegate para receber o record da GameScene
68 | extension GameOverScene: RecordDelegate {
69 | // Recebe o record da GameScene e atribui a variável que existe nesta cena
70 | func recebeRecord(record: String) {
71 | self.record = record
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/Blop.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/Blop.mp3
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/hit.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/hit.mp3
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/music.m4a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/music.m4a
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/score.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/3DTouchGame/TesteSpriteKit/Sounds/score.mp3
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/View/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/3DTouchGame/TesteSpriteKit/View/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // AngryBirdsTechDemo
4 | //
5 | // Created by Levy Cristian on 19/02/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_0.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "backgroud_0.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_0.imageset/backgroud_0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_0.imageset/backgroud_0.jpg
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "backgroud_1.jpeg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_1.imageset/backgroud_1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_1.imageset/backgroud_1.jpeg
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "backgroud_3.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_3.imageset/backgroud_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/backgrouds/background_3.imageset/backgroud_3.png
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/sling.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "sling.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/sling.imageset/sling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Assets.xcassets/sling.imageset/sling.png
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Controllers/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // AngryBirdsTechDemo
4 | //
5 | // Created by Levy Cristian on 19/02/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import GameplayKit
12 |
13 | class GameViewController: UIViewController {
14 |
15 |
16 |
17 | override func viewDidLoad() {
18 | super.viewDidLoad()
19 |
20 | if let view = self.view as! SKView? {
21 | // Load the SKScene from 'GameScene.sks'
22 | let scene = GameScene(size: view.bounds.size)
23 | scene.scaleMode = .resizeFill
24 | view.ignoresSiblingOrder = true
25 |
26 | view.showsFPS = true
27 | view.showsNodeCount = true
28 |
29 | view.presentScene(scene)
30 | }
31 | }
32 |
33 | override var shouldAutorotate: Bool {
34 | return true
35 | }
36 |
37 | override var prefersStatusBarHidden: Bool {
38 | return true
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UIStatusBarHidden
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationLandscapeLeft
36 | UIInterfaceOrientationLandscapeRight
37 |
38 | UISupportedInterfaceOrientations~ipad
39 |
40 | UIInterfaceOrientationPortrait
41 | UIInterfaceOrientationPortraitUpsideDown
42 | UIInterfaceOrientationLandscapeLeft
43 | UIInterfaceOrientationLandscapeRight
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Settings/Settings.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Settings.swift
3 | // AngryBirdsTechDemo
4 | //
5 | // Created by Levy Cristian on 25/02/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | /*
12 | -> projectileRadius : The radius of our projectile.
13 | -> projectileRestPosition : The initial position of the projectile on the scene.
14 | -> projectileTouchThreshold : The threshold outside the projectile radius in which the dragging process will start.
15 | -> projectileSnapLimit : If the user lifts the finger and the projectile is within this radius, it will snap back to initial position.
16 | -> forceMultiplier : The force multiplier for the original vector that slingshot is using to fire the projectile.
17 | -> rLimit : The radius of the virtual circle surrounding the slingshot.
18 | -> gravity: The gravity of the physics emulation. -9.8 is the default value but you can play with it to get the desire results.
19 |
20 | */
21 |
22 | struct Settings {
23 | struct Metrics {
24 | static let projectileRadius = CGFloat(10)
25 | static let projectileRestPosition = CGPoint(x: 100, y: 70)
26 | static let projectileTouchThreshold = CGFloat(10)
27 | static let projectileSnapLimit = CGFloat(10)
28 | static let forceMultiplier = CGFloat(0.3)
29 | static let rLimit = CGFloat(50)
30 |
31 | }
32 | struct Game {
33 | static let gravity = CGVector(dx: 0,dy: -9.8)
34 | static let cameraOrign = CGPoint(x:UIScreen.main.bounds.width/2, y: UIScreen.main.bounds.height/2)
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Views/Bird/Bird.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Bird.swift
3 | // AngryBirdsTechDemo
4 | //
5 | // Created by Levy Cristian on 25/02/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 |
12 | class Bird: SKShapeNode {
13 | convenience init(path: UIBezierPath, color: UIColor, borderColor:UIColor) {
14 | self.init()
15 | self.path = path.cgPath
16 | self.fillColor = color
17 | self.strokeColor = borderColor
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/TechDemos/AngryBirdsTechDemo/AngryBirdsTechDemo/Views/Box/Box.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Box.swift
3 | // AngryBirdsTechDemo
4 | //
5 | // Created by Levy Cristian on 25/02/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 | class Box: SKSpriteNode {
12 | var integrity: Int = 2 {
13 | didSet {
14 | if integrity > 2 {
15 | integrity = 2
16 | }
17 | if integrity < 0 {
18 | removeFromParent()
19 | }
20 | texture = SKTexture(imageNamed: "box_\(integrity)")
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/TechDemos/Botao SpriteKit/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Botao SpriteKit/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/Botao SpriteKit/BotaoSpriteKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/Botao SpriteKit/BotaoSpriteKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Flappy
4 | //
5 | // Created by Mateus Sales on 04/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "icon40.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "icon60.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon58.png",
19 | "scale" : "2x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "icon87.png",
25 | "scale" : "3x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "icon80.png",
31 | "scale" : "2x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "icon120.png",
37 | "scale" : "3x"
38 | },
39 | {
40 | "size" : "60x60",
41 | "idiom" : "iphone",
42 | "filename" : "icon120-1.png",
43 | "scale" : "2x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "icon180.png",
49 | "scale" : "3x"
50 | },
51 | {
52 | "size" : "1024x1024",
53 | "idiom" : "ios-marketing",
54 | "filename" : "icon1024.png",
55 | "scale" : "1x"
56 | }
57 | ],
58 | "info" : {
59 | "version" : 1,
60 | "author" : "xcode"
61 | }
62 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon1024.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon120-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon120-1.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon120.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon180.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon40.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon58.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon60.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon80.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/AppIcon.appiconset/icon87.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/GameOver.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "GameOver.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/GameOver.imageset/GameOver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/GameOver.imageset/GameOver.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/LaunchScreen.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "LaunchScreen@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "filename" : "LaunchScreen@3x.png",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/LaunchScreen.imageset/LaunchScreen@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/LaunchScreen.imageset/LaunchScreen@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/LaunchScreen.imageset/LaunchScreen@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/LaunchScreen.imageset/LaunchScreen@3x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/background.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "background@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/background.imageset/background@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/background.imageset/background@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemybottom1@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom1.imageset/enemybottom1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom1.imageset/enemybottom1@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemybottom2@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom2.imageset/enemybottom2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom2.imageset/enemybottom2@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemybottom3@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom3.imageset/enemybottom3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom3.imageset/enemybottom3@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemybottom4@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom4.imageset/enemybottom4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemybottom4.imageset/enemybottom4@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemytop1@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop1.imageset/enemytop1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop1.imageset/enemytop1@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemytop2@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop2.imageset/enemytop2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop2.imageset/enemytop2@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemytop3@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop3.imageset/enemytop3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop3.imageset/enemytop3@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "enemytop4@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop4.imageset/enemytop4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/enemytop4.imageset/enemytop4@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/floor.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "floor@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/floor.imageset/floor@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/floor.imageset/floor@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/intro.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "intro@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/intro.imageset/intro@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/intro.imageset/intro@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "player1@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player1.imageset/player1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/player1.imageset/player1@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "player2@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player2.imageset/player2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/player2.imageset/player2@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "player3@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player3.imageset/player3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/player3.imageset/player3@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "filename" : "player4@2x.png",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/player4.imageset/player4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/player4.imageset/player4@2x.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/playerDead.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "playerDead.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Assets.xcassets/playerDead.imageset/playerDead.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Assets.xcassets/playerDead.imageset/playerDead.png
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // Flappy
4 | //
5 | // Created by Mateus Sales on 04/02/19.
6 | // Copyright © 2019 Mateus Sales. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import GameplayKit
12 | import AVFoundation
13 |
14 |
15 | class GameViewController: UIViewController {
16 |
17 | var stage: SKView!
18 | var musicPlayer: AVAudioPlayer!
19 |
20 | override func viewDidLoad() {
21 | super.viewDidLoad()
22 | stage = view as? SKView
23 | stage.ignoresSiblingOrder = true // Evita flips de objetos que ficam na frente do outro
24 |
25 | presentScene()
26 | playMusic()
27 | }
28 |
29 | func playMusic() {
30 | if let musicURL = Bundle.main.url(forResource: "music", withExtension: "m4a") {
31 | musicPlayer = try! AVAudioPlayer(contentsOf: musicURL)
32 | musicPlayer.numberOfLoops = -1 // Rodar indefinidademente
33 | musicPlayer.volume = 0.4
34 | musicPlayer.play()
35 | }
36 | }
37 |
38 | func presentScene(){
39 | let scene = GameScene(size: CGSize(width: 320, height: 568))
40 | scene.scaleMode = .aspectFill
41 | scene.gameViewController = self
42 | //stage.presentScene(scene)
43 | stage.presentScene(scene, transition: .doorsOpenVertical(withDuration: 0.5))
44 | }
45 |
46 |
47 | override var prefersStatusBarHidden: Bool {
48 | return true
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flying Fish
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UIStatusBarHidden
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Sounds/Blop.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Sounds/Blop.mp3
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Sounds/bonus.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Sounds/bonus.mp3
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Sounds/hit.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Sounds/hit.mp3
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/Flappy/Sounds/music.m4a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/FlyingFish/Flappy/Sounds/music.m4a
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/FlyingFish.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/FlyingFish/FlyingFish.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 19/02/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/AppIcon.appiconset/246x0w.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/AppIcon.appiconset/246x0w.jpg
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "246x0w.jpg",
7 | "scale" : "2x"
8 | },
9 | {
10 | "idiom" : "iphone",
11 | "size" : "20x20",
12 | "scale" : "3x"
13 | },
14 | {
15 | "idiom" : "iphone",
16 | "size" : "29x29",
17 | "scale" : "2x"
18 | },
19 | {
20 | "idiom" : "iphone",
21 | "size" : "29x29",
22 | "scale" : "3x"
23 | },
24 | {
25 | "idiom" : "iphone",
26 | "size" : "40x40",
27 | "scale" : "2x"
28 | },
29 | {
30 | "idiom" : "iphone",
31 | "size" : "40x40",
32 | "scale" : "3x"
33 | },
34 | {
35 | "idiom" : "iphone",
36 | "size" : "60x60",
37 | "scale" : "2x"
38 | },
39 | {
40 | "idiom" : "iphone",
41 | "size" : "60x60",
42 | "scale" : "3x"
43 | },
44 | {
45 | "idiom" : "ipad",
46 | "size" : "20x20",
47 | "scale" : "1x"
48 | },
49 | {
50 | "idiom" : "ipad",
51 | "size" : "20x20",
52 | "scale" : "2x"
53 | },
54 | {
55 | "idiom" : "ipad",
56 | "size" : "29x29",
57 | "scale" : "1x"
58 | },
59 | {
60 | "idiom" : "ipad",
61 | "size" : "29x29",
62 | "scale" : "2x"
63 | },
64 | {
65 | "idiom" : "ipad",
66 | "size" : "40x40",
67 | "scale" : "1x"
68 | },
69 | {
70 | "idiom" : "ipad",
71 | "size" : "40x40",
72 | "scale" : "2x"
73 | },
74 | {
75 | "idiom" : "ipad",
76 | "size" : "76x76",
77 | "scale" : "1x"
78 | },
79 | {
80 | "idiom" : "ipad",
81 | "size" : "76x76",
82 | "scale" : "2x"
83 | },
84 | {
85 | "idiom" : "ipad",
86 | "size" : "83.5x83.5",
87 | "scale" : "2x"
88 | },
89 | {
90 | "idiom" : "ios-marketing",
91 | "size" : "1024x1024",
92 | "scale" : "1x"
93 | }
94 | ],
95 | "info" : {
96 | "version" : 1,
97 | "author" : "xcode"
98 | }
99 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "floor1.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor1.imageset/floor1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor1.imageset/floor1.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "floor2.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor2.imageset/floor2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/floor2.imageset/floor2.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/left.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "left.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/left.imageset/left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/left.imageset/left.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/left_arrow.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "left_arrow.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/left_arrow.imageset/left_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/left_arrow.imageset/left_arrow.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mapa.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "mapa.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mapa.imageset/mapa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mapa.imageset/mapa.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "DMn1oOwWkAEIupg-1.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "DMn1oOwWkAEIupg.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "DMn1oOwWkAEIupg-2.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg-1.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg-2.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario.imageset/DMn1oOwWkAEIupg.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario22.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "mario.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario22.imageset/mario.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario22.imageset/mario.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario1.imageset/Captura de Tela 2019-02-27 às 09.11.27.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario1.imageset/Captura de Tela 2019-02-27 às 09.11.27.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.11.27.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario10.imageset/Captura de Tela 2019-02-27 às 09.24.25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario10.imageset/Captura de Tela 2019-02-27 às 09.24.25.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario10.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.24.25.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario11.imageset/Captura de Tela 2019-02-27 às 09.24.19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario11.imageset/Captura de Tela 2019-02-27 às 09.24.19.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario11.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.24.19.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario12.imageset/Captura de Tela 2019-02-27 às 09.24.09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario12.imageset/Captura de Tela 2019-02-27 às 09.24.09.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario12.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.24.09.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario13.imageset/Captura de Tela 2019-02-27 às 09.12.47.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario13.imageset/Captura de Tela 2019-02-27 às 09.12.47.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario13.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.12.47.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario14.imageset/Captura de Tela 2019-02-27 às 09.12.16-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario14.imageset/Captura de Tela 2019-02-27 às 09.12.16-1.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario14.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.12.16-1.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario2.imageset/Captura de Tela 2019-02-27 às 09.26.57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario2.imageset/Captura de Tela 2019-02-27 às 09.26.57.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.26.57.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario3.imageset/Captura de Tela 2019-02-27 às 09.26.52.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario3.imageset/Captura de Tela 2019-02-27 às 09.26.52.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.26.52.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario4.imageset/Captura de Tela 2019-02-27 às 09.25.29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario4.imageset/Captura de Tela 2019-02-27 às 09.25.29.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.25.29.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario5.imageset/Captura de Tela 2019-02-27 às 09.25.24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario5.imageset/Captura de Tela 2019-02-27 às 09.25.24.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario5.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.25.24.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario6.imageset/Captura de Tela 2019-02-27 às 09.25.19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario6.imageset/Captura de Tela 2019-02-27 às 09.25.19.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario6.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.25.19.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario7.imageset/Captura de Tela 2019-02-27 às 09.25.01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario7.imageset/Captura de Tela 2019-02-27 às 09.25.01.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario7.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.25.01.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario8.imageset/Captura de Tela 2019-02-27 às 09.24.44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario8.imageset/Captura de Tela 2019-02-27 às 09.24.44.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario8.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.24.44.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario9.imageset/Captura de Tela 2019-02-27 às 09.24.39.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario9.imageset/Captura de Tela 2019-02-27 às 09.24.39.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/marioSprites.spriteatlas/mario9.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Captura de Tela 2019-02-27 às 09.24.39.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario_set.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "ezgif.com-gif-maker.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario_set.imageset/ezgif.com-gif-maker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/mario_set.imageset/ezgif.com-gif-maker.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/parede.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "parede-1.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/parede.imageset/parede-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/parede.imageset/parede-1.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/right_arrow.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "right_arrow.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/right_arrow.imageset/right_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/right_arrow.imageset/right_arrow.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/tartaruga.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "tartaruga.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/tartaruga.imageset/tartaruga.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/tartaruga.imageset/tartaruga.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/top_arrow.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "top_arrow.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/top_arrow.imageset/top_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/top_arrow.imageset/top_arrow.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/tubo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "tubo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Assets.xcassets/tubo.imageset/tubo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/Assets.xcassets/tubo.imageset/tubo.png
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Components/JumpComponent.swift:
--------------------------------------------------------------------------------
1 | //
2 | // JumpComponent.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 01/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import GameKit
10 |
11 | class JumpComponent: GKComponent {
12 |
13 | let node : SKSpriteNode
14 | private var animationComponent: MovementComponent?
15 | var soundFileName : String?
16 |
17 | init(withNode node: SKSpriteNode, animation : MovementComponent? = nil) {
18 | self.node = node
19 | self.animationComponent = animation
20 | super.init()
21 |
22 | }
23 |
24 | required init?(coder aDecoder: NSCoder) {
25 | fatalError("init(coder:) has not been implemented")
26 | }
27 |
28 | func jump(_ vector: CGVector) {
29 | if node.physicsBody?.velocity.dy == 0 {
30 | node.physicsBody?.applyImpulse(vector)
31 | }
32 | if let file = soundFileName {
33 | let sound = SKAction.playSoundFileNamed(file, waitForCompletion: false)
34 | node.run(sound)
35 | }
36 | }
37 |
38 | func jump(y : CGFloat) {
39 | let vector = CGVector(dx: 0, dy: y)
40 | jump(vector)
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Components/MovementComponent.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AnimateComponent.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 12/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import GameKit
10 |
11 | class MovementComponent: GKComponent {
12 |
13 | enum KeyAction: String {
14 | case iddle = "iddle"
15 | case walk = "walk"
16 | }
17 |
18 | let walk : [SKTexture]?
19 | let idle : [SKTexture]?
20 |
21 | init( walk : [SKTexture]?, idle: [SKTexture]? ){
22 | self.walk = walk
23 | self.idle = idle
24 | super.init()
25 | }
26 |
27 | required init?(coder aDecoder: NSCoder) {
28 | fatalError("init(coder:) has not been implemented")
29 | }
30 |
31 |
32 | func stopAnimate(node : SKSpriteNode){
33 | node.removeAllActions()
34 | guard let iddle = idle else {return}
35 | animate(node: node, walkFrames: iddle, with: .iddle)
36 | }
37 |
38 | func animateWalk(node : SKSpriteNode) {
39 | node.removeAction(forKey: KeyAction.iddle.rawValue)
40 | guard let walk = walk else {return}
41 | animate(node: node, walkFrames: walk, with: .walk)
42 | }
43 |
44 | private func animate( node : SKSpriteNode, walkFrames : [SKTexture], with key: KeyAction, repeatForever : Bool = true) {
45 |
46 | if node.action(forKey: key.rawValue) == nil {
47 | let interval = TimeInterval(exactly: 1.0/CGFloat(walkFrames.count))!
48 |
49 | let action = SKAction.animate(with: walkFrames, timePerFrame: interval , resize: false, restore: true)
50 | if repeatForever {
51 | let repeatAction = SKAction.repeatForever(action)
52 | node.run(repeatAction, withKey: key.rawValue)
53 | }else{
54 | node.run(action, withKey: key.rawValue)
55 | }
56 | }
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Components/WalkComponent.swift:
--------------------------------------------------------------------------------
1 | //
2 | // WalkComponent.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 01/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import GameplayKit
10 |
11 |
12 | enum Orientation: CGFloat {
13 | case foward = 1
14 | case back = -1
15 | }
16 |
17 | class WalkComponent: GKComponent {
18 |
19 | let node : SKSpriteNode
20 | private var animationComponent: MovementComponent?
21 |
22 | private(set) var isMoving = false
23 |
24 | init(withNode node: SKSpriteNode, animation : MovementComponent? = nil ) {
25 | self.node = node
26 | self.animationComponent = animation
27 | super.init()
28 | }
29 |
30 | required init?(coder aDecoder: NSCoder) {
31 | fatalError("init(coder:) has not been implemented")
32 | }
33 |
34 | func move(to orientation : Orientation, velocity : CGFloat){
35 | isMoving = true
36 | if orientation == .foward && node.xScale > 0 {
37 | node.xScale *= -1
38 | }else if orientation == .back && node.xScale < 0 {
39 | node.xScale *= -1
40 | }
41 | let vector = CGVector(dx: velocity * orientation.rawValue , dy: node.physicsBody?.velocity.dy ?? 0)
42 | node.physicsBody?.velocity = vector
43 | animationComponent?.animateWalk(node: node)
44 | }
45 |
46 | func stop() {
47 | isMoving = false
48 | node.physicsBody?.velocity = .zero
49 | animationComponent?.stopAnimate(node: node)
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UIStatusBarHidden
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Stickers.xcstickers.xcstickers/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Stickers.xcstickers.xcstickers/Sticker Pack.stickerpack/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | },
6 | "properties" : {
7 | "grid-size" : "regular"
8 | }
9 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/Stickers.xcstickers.xcstickers/iMessages App Icon.stickersiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "32x24",
5 | "idiom" : "universal",
6 | "scale" : "1x",
7 | "platform" : "ios"
8 | },
9 | {
10 | "size" : "32x24",
11 | "idiom" : "universal",
12 | "scale" : "2x",
13 | "platform" : "ios"
14 | },
15 | {
16 | "size" : "32x24",
17 | "idiom" : "universal",
18 | "scale" : "3x",
19 | "platform" : "ios"
20 | },
21 | {
22 | "size" : "1024x768",
23 | "idiom" : "ios-marketing",
24 | "scale" : "1x",
25 | "platform" : "ios"
26 | },
27 | {
28 | "idiom" : "iphone",
29 | "size" : "29x29",
30 | "scale" : "2x"
31 | },
32 | {
33 | "idiom" : "iphone",
34 | "size" : "29x29",
35 | "scale" : "3x"
36 | },
37 | {
38 | "idiom" : "iphone",
39 | "size" : "60x45",
40 | "scale" : "2x"
41 | },
42 | {
43 | "idiom" : "iphone",
44 | "size" : "60x45",
45 | "scale" : "3x"
46 | },
47 | {
48 | "idiom" : "ipad",
49 | "size" : "29x29",
50 | "scale" : "1x"
51 | },
52 | {
53 | "idiom" : "ipad",
54 | "size" : "29x29",
55 | "scale" : "2x"
56 | },
57 | {
58 | "idiom" : "ipad",
59 | "size" : "67x50",
60 | "scale" : "1x"
61 | },
62 | {
63 | "idiom" : "ipad",
64 | "size" : "67x50",
65 | "scale" : "2x"
66 | },
67 | {
68 | "idiom" : "ipad",
69 | "size" : "74x55",
70 | "scale" : "2x"
71 | }
72 | ],
73 | "info" : {
74 | "version" : 1,
75 | "author" : "xcode"
76 | }
77 | }
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/entities/Mario.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Luigi.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 01/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import GameplayKit
10 |
11 | class Mario: GKEntity, MarioMovement {
12 |
13 | private(set) var node: SKSpriteNode
14 | private let sheet: SpriteSheet
15 | override init() {
16 | sheet = SpriteSheet(imageNamed: "mario_set", rows: 11, columns: 6) { position -> Bool in
17 | return position.column > 1 && position.row == 10
18 | }
19 | let idleTexture = sheet.textureFor(row: 0, column: 0)
20 | self.node = SKSpriteNode(texture: idleTexture)
21 | self.node.setScale(0.2)
22 | self.node.zPosition = 10
23 | super.init()
24 | addComponents()
25 | configurePhysicsBody()
26 | }
27 |
28 | func addComponents() {
29 | let jumpComponent = JumpComponent(withNode: self.node)
30 | jumpComponent.soundFileName = "jump"
31 | addComponent(jumpComponent)
32 |
33 | let animationComponent = MovementComponent(walk: sheet.allTxtures(), idle: [node.texture!])
34 | let walkComponent = WalkComponent(withNode: self.node, animation: animationComponent)
35 | addComponent(walkComponent)
36 | }
37 |
38 | func configurePhysicsBody() {
39 | let size = CGSize(width: node.size.width/2, height: node.size.height - 5.0)
40 | self.node.physicsBody = SKPhysicsBody(rectangleOf: size )
41 | self.node.physicsBody?.allowsRotation = false
42 | self.node.physicsBody?.restitution = 0
43 | self.node.physicsBody?.friction = 0
44 | self.node.physicsBody?.linearDamping = 0
45 | }
46 |
47 | required init?(coder aDecoder: NSCoder) {
48 | fatalError("init(coder:) has not been implemented")
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/extensions/SKTextureAtlas+MyGame.swift:
--------------------------------------------------------------------------------
1 | import GameKit
2 |
3 | extension SKTextureAtlas {
4 |
5 | var allTextures : [SKTexture] {
6 | get {
7 | var frames = [SKTexture]()
8 | textureNames.forEach { frames.append(textureNamed($0)) }
9 | return frames
10 | }
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/models/SpriteSheet.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SpriteSheet.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 14/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 |
12 | struct Position : Equatable {
13 | /// a linha correspondente em um SpriteSheet
14 | let row: Int
15 | /// a coluna correspondente em um SpriteSheet
16 | let column: Int
17 | }
18 |
19 |
20 | /// SpriteSheet é uma classe que facilita o trablaho com sprites sheet, que é uma
21 | /// imagem que contem um conjunto de outras imagens.
22 | class SpriteSheet {
23 |
24 | /// contem uma referência para a imagem que contém o sprite sheet completo
25 | let sheet : SKTexture
26 |
27 | /// quantidade de linhas no sprite sheet
28 | let rows : Int
29 |
30 | /// quantidade de colunas no sprite sheet
31 | let columns : Int
32 |
33 | /// handler que determina quando um sprite deve ser excluído
34 | var excludeRectWhen: ((Position) -> Bool)?
35 |
36 | /// a largura ocupada por cada sprite individualmente
37 | private lazy var width : CGFloat = {
38 | return 1.0/CGFloat(columns)
39 | }()
40 |
41 | /// a altura ocupada por cada sprite individualmente
42 | private lazy var height : CGFloat = {
43 | return 1.0/CGFloat(rows)
44 | }()
45 |
46 |
47 | /// Cria um SpriteSheet
48 | ///
49 | /// - Parameters:
50 | /// - imageNamed: nome da imagem que está no xcassets
51 | /// - rows: numero de linhas na imagem
52 | /// - columns: numero de colunas na imagem
53 | /// - excludeRectWhen: condição para excluir uma determinada posição do sprite
54 | init(imageNamed : String, rows : Int, columns: Int, excludeRectWhen: ((Position) -> Bool)? = nil ) {
55 | sheet = SKTexture(imageNamed: imageNamed)
56 | self.rows = rows
57 | self.columns = columns
58 | self.excludeRectWhen = excludeRectWhen
59 | }
60 |
61 | /// Retorna um SKtexture
62 | ///
63 | /// - Parameters:
64 | /// - row: um numero inteiro que representa a coluna do sprite desejado
65 | /// - column: um numero inteiro que representa a coluna do sprite desejado
66 | /// - Returns: SKTexture com a imagem correspondente da linha e coluna do sprite
67 | func textureFor(row: Int, column: Int) -> SKTexture {
68 | let xPosition = CGFloat(column) * width
69 | let yPosition = CGFloat(rows - 1 - row) * height //para fazer iniciar por cima
70 | let rect = CGRect(x: xPosition, y: yPosition, width: width , height: height)
71 | return SKTexture(rect: rect, in: sheet)
72 | }
73 |
74 |
75 | /// Todos os sprites que estão na imagem com exceção aos que foram
76 | /// excluidos pela função
77 | /// ```excludeRectWhen: ((Position) -> Bool)?```
78 | ///
79 | /// - Returns: um array com todos os sprites da imagem
80 | func allTxtures() -> [SKTexture] {
81 | var textures = [SKTexture]()
82 | for row in 0...(rows - 1) {
83 | for col in 0...(columns - 1) {
84 | if excludeRectWhen?(Position(row: row, column: col) ) ?? false {
85 | continue
86 | }
87 | textures.append(textureFor(row: row, column:col ))
88 | }
89 | }
90 | return textures
91 | }
92 | }
93 |
94 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/nodes/ButtonNode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ButtonNode.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 12/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 | class ButttonNode: SKSpriteNode {
12 |
13 | var touchesBeganhandler : ((Set, UIEvent?) -> Void)?
14 | var touchesEndedHandler : ((Set, UIEvent?) -> Void)?
15 | var touchesMovedHandler : ((Set, UIEvent?) -> Void)?
16 |
17 | convenience init(imageNamed : String, position: CGPoint){
18 | self.init(imageNamed: imageNamed)
19 | size = CGSize(width: 60, height: 60)
20 | self.position = position
21 | zPosition = 10
22 | isUserInteractionEnabled = true
23 | }
24 |
25 | override func touchesBegan(_ touches: Set, with event: UIEvent?) {
26 | performe(touches, with: event, handler: touchesBeganhandler)
27 | }
28 |
29 | override func touchesEnded(_ touches: Set, with event: UIEvent?) {
30 | performe(touches, with: event, handler: touchesEndedHandler)
31 | }
32 |
33 | override func touchesMoved(_ touches: Set, with event: UIEvent?) {
34 | performe(touches, with: event, handler: touchesMovedHandler)
35 | }
36 |
37 | private func performe( _ touches: Set, with event: UIEvent?, handler : ((Set, UIEvent?) -> Void)? ){
38 | touches.forEach { touch in
39 | guard let parent = self.parent else {return}
40 | let location = touch.location(in: parent)
41 | if contains(location) {
42 | handler?(touches,event)
43 | }
44 | }
45 | }
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/protocols/MarioMovement.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MarioMovement.swift
3 | // MyGame
4 | //
5 | // Created by Ramires Moreira on 13/03/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import CoreGraphics
10 | import GameKit
11 |
12 | protocol MarioMovement {
13 |
14 | }
15 |
16 | extension MarioMovement where Self : Mario {
17 |
18 | var walkVelocity : CGFloat {
19 | get {
20 | return 100.0
21 | }
22 | }
23 |
24 | func jump() {
25 | component(ofType: JumpComponent.self)?.jump(y: 20)
26 | }
27 |
28 | func foward() {
29 | component(ofType: WalkComponent.self)?.move(to: .foward, velocity: walkVelocity)
30 | }
31 |
32 | func back() {
33 | component(ofType: WalkComponent.self)?.move(to: .back, velocity: walkVelocity)
34 | }
35 |
36 | func stop() {
37 | component(ofType: WalkComponent.self)?.stop()
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/scenes/fase1/Background.sks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/scenes/fase1/Background.sks
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/sounds/jump.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/sounds/jump.mp3
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/sounds/loop.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/sounds/loop.mp3
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCover/sounds/yisland.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MarioCover/MarioCover/sounds/yisland.mp3
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCoverTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/TechDemos/MarioCover/MarioCoverTests/MyGameTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MyGameTests.swift
3 | // MyGameTests
4 | //
5 | // Created by Ramires Moreira on 19/02/19.
6 | // Copyright © 2019 Ramires Moreira. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import MyGame
11 |
12 | class MyGameTests: XCTestCase {
13 |
14 | override func setUp() {
15 | // Put setup code here. This method is called before the invocation of each test method in the class.
16 | }
17 |
18 | override func tearDown() {
19 | // Put teardown code here. This method is called after the invocation of each test method in the class.
20 | }
21 |
22 | func testExample() {
23 | // This is an example of a functional test case.
24 | // Use XCTAssert and related functions to verify your tests produce the correct results.
25 | }
26 |
27 | func testPerformanceExample() {
28 | // This is an example of a performance test case.
29 | self.measure {
30 | // Put the code you want to measure the time of here.
31 | }
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // MuralDeHerois
4 | //
5 | // Created by Levy Cristian on 04/03/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Assets.xcassets/background.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "x18rx2dbtnfy.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Assets.xcassets/background.imageset/x18rx2dbtnfy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/MuralDeHerois/MuralDeHerois/Assets.xcassets/background.imageset/x18rx2dbtnfy.png
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/GameScene.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameScene.swift
3 | // MuralDeHerois
4 | //
5 | // Created by Levy Cristian on 04/03/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 | import GameplayKit
11 |
12 | class GameScene: SKScene {
13 |
14 | // MARK: Propiredades
15 |
16 | //váriavel para a o fundo da cena
17 | private lazy var background: SKSpriteNode = {
18 | let background = SKSpriteNode(imageNamed: "background")
19 | //setter da posição do backgroud para a posição x: 0 , y: 0 [Item 2 do check-list]
20 | background.position = CGPoint(x: 0 , y: 0)
21 | //setter da anchorPoint do backgroud para a posição x: 0 , y: 0 [Item 1 do check-list]
22 | background.anchorPoint = CGPoint(x: 0, y:0)
23 | background.zPosition = 0
24 | return background
25 | }()
26 |
27 | //Camera do jogo
28 | private lazy var cameraNode: Camera = {
29 | let cameraNode = Camera(sceneView: self.view!, cenario: background)
30 | //setter da posição inicial para o valor de x igual a metade da largura de sua tela e de y igual a metade da altura da tela. [Item 4 do check-list]
31 | cameraNode.position = CGPoint(x:UIScreen.main.bounds.width/2, y: UIScreen.main.bounds.height/2)
32 | return cameraNode
33 | }()
34 |
35 | override func didMove(to view: SKView) {
36 | //setter da anchorPoint da GameScene para a posição x: 0 , y: 0 [Item 1 do check-list]
37 | anchorPoint = CGPoint(x: 0, y:0)
38 | //setter do tamanho da GameScene para o tamanho do cenário [Item 3 do check-list]
39 | self.size = background.size
40 |
41 | //atribui a câmera da cena a câmera customizada.
42 | camera = cameraNode
43 |
44 | addChild(background)
45 | addChild(cameraNode)
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // MuralDeHerois
4 | //
5 | // Created by Levy Cristian on 04/03/19.
6 | // Copyright © 2019 Levy Cristian . All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import GameplayKit
12 |
13 | class GameViewController: UIViewController {
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 |
18 | if let view = self.view as! SKView? {
19 | // Carrega SKScene da classe GameScene.swift
20 | let scene = GameScene(size: view.bounds.size)
21 | scene.scaleMode = .resizeFill
22 | view.ignoresSiblingOrder = true
23 |
24 | view.showsFPS = true
25 | view.showsNodeCount = true
26 |
27 | view.presentScene(scene)
28 | }
29 | }
30 |
31 | override var shouldAutorotate: Bool {
32 | return true
33 | }
34 |
35 | override var prefersStatusBarHidden: Bool {
36 | return true
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/TechDemos/MuralDeHerois/MuralDeHerois/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UIStatusBarHidden
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationLandscapeRight
36 | UIInterfaceOrientationLandscapeLeft
37 |
38 | UISupportedInterfaceOrientations~ipad
39 |
40 | UIInterfaceOrientationPortrait
41 | UIInterfaceOrientationPortraitUpsideDown
42 | UIInterfaceOrientationLandscapeLeft
43 | UIInterfaceOrientationLandscapeRight
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Actions.sks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/Actions.sks
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // SoundPlatform
4 | //
5 | // Created by Alcides Junior on 26/03/19.
6 | // Copyright © 2019 Alcides Junior. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/ball.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "tennis.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/ball.imageset/tennis.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/ball.imageset/tennis.png
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/hihat.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "hihat.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/hihat.imageset/hihat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/hihat.imageset/hihat.png
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/kick.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "kick.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/kick.imageset/kick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/kick.imageset/kick.png
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/snare.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "snare.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/snare.imageset/snare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/Assets.xcassets/snare.imageset/snare.png
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/GameScene.sks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/GameScene.sks
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // SoundPlatform
4 | //
5 | // Created by Alcides Junior on 26/03/19.
6 | // Copyright © 2019 Alcides Junior. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import GameplayKit
12 |
13 | class GameViewController: UIViewController {
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 | if let view = self.view as! SKView? {
18 | // Load the SKScene from 'GameScene.sks'
19 | let scene = GameScene(size: view.bounds.size)
20 | scene.scaleMode = .resizeFill
21 |
22 | view.ignoresSiblingOrder = true
23 |
24 | view.showsFPS = true
25 | view.showsNodeCount = true
26 | view.presentScene(scene)
27 | }
28 | }
29 |
30 | // override var shouldAutorotate: Bool {
31 | // return true
32 | // }
33 | //
34 | // override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
35 | // if UIDevice.current.userInterfaceIdiom == .phone {
36 | // return .allButUpsideDown
37 | // } else {
38 | // return .all
39 | // }
40 | // }
41 |
42 | override var prefersStatusBarHidden: Bool {
43 | return true
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UIStatusBarHidden
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationLandscapeLeft
36 | UIInterfaceOrientationLandscapeRight
37 |
38 | UISupportedInterfaceOrientations~ipad
39 |
40 | UIInterfaceOrientationPortrait
41 | UIInterfaceOrientationPortraitUpsideDown
42 | UIInterfaceOrientationLandscapeLeft
43 | UIInterfaceOrientationLandscapeRight
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Tools/Ball.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Pattern.swift
3 | // SoundPlatform
4 | //
5 | // Created by Alcides Junior on 26/03/19.
6 | // Copyright © 2019 Alcides Junior. All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 | class Ball{
11 | private var x: CGFloat?
12 | private var y: CGFloat?
13 | private var zrotation: CGFloat?
14 | private var width: CGFloat?
15 | private var height: CGFloat?
16 | private var ballName: String?
17 | private var color: UIColor?
18 |
19 | init(ballName: String, x:CGFloat, y: CGFloat, zrotation:CGFloat = 0, _ width: CGFloat = 70,_ height: CGFloat = 20){
20 | self.ballName = ballName
21 | self.x = x
22 | self.y = y
23 | self.zrotation = zrotation
24 | self.width = width
25 | self.height = height
26 | }
27 |
28 | func create()->SKSpriteNode{
29 |
30 | let element = SKSpriteNode(texture: SKTexture(imageNamed: "ball"))
31 |
32 | element.position = CGPoint(x: self.x ?? 100 ,y: self.y ?? 100)
33 | element.size = CGSize(width: 10, height: 10)
34 | // element.fillColor = self.color!
35 | element.physicsBody = SKPhysicsBody(circleOfRadius: 10)
36 | //setting configs to collision
37 | element.physicsBody?.restitution = 1
38 | element.physicsBody?.categoryBitMask = 2
39 | element.physicsBody?.collisionBitMask = 1
40 | element.physicsBody?.fieldBitMask = 0
41 | element.physicsBody?.contactTestBitMask = 1
42 |
43 | element.zRotation = self.zrotation!
44 | element.name = self.ballName!
45 |
46 | return element
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Tools/Component.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Component.swift
3 | // SoundPlatform
4 | //
5 | // Created by Alcides Junior on 26/03/19.
6 | // Copyright © 2019 Alcides Junior. All rights reserved.
7 | //
8 |
9 | import SpriteKit
10 |
11 | class Component{
12 | private var x: CGFloat!
13 | private var y: CGFloat!
14 | private var rotation: CGFloat!
15 | private var width: CGFloat!
16 | private var height: CGFloat!
17 | private var name: String!
18 | private var image: String!
19 |
20 |
21 | init(x: CGFloat, y: CGFloat, rotation: CGFloat, width: CGFloat, height: CGFloat, name: String, image: String){
22 | self.x = x
23 | self.y = y
24 | self.rotation = rotation
25 | self.width = width
26 | self.height = height
27 | self.name = name
28 | self.image = image
29 | }
30 | func create()->SKSpriteNode{
31 | let element = SKSpriteNode(imageNamed: self.image)
32 |
33 | element.anchorPoint = CGPoint(x: 0.5, y: 0.5)
34 | element.position = CGPoint(x: self.x, y: self.y)
35 | element.size = CGSize(width: self.width, height: self.height)
36 | element.zRotation = self.rotation
37 | element.physicsBody = SKPhysicsBody(rectangleOf: CGSize(width: self.width, height: self.height) )
38 | element.physicsBody?.categoryBitMask = 1
39 | element.physicsBody?.collisionBitMask = 2
40 | element.physicsBody?.fieldBitMask = 0
41 | element.physicsBody?.contactTestBitMask = 2
42 | element.physicsBody?.isDynamic = false
43 | element.name = name
44 | return element
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/Tools/Settings.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Settings.swift
3 | // SoundPlatform
4 | //
5 | // Created by Alcides Junior on 26/03/19.
6 | // Copyright © 2019 Alcides Junior. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 | struct Root{
12 | struct Position{
13 | static let x = CGFloat(10)
14 | static let y = CGFloat(4)
15 | }
16 |
17 | struct Size{
18 | static let width = CGFloat(70)
19 | static let height = CGFloat(30)
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/sounds/hihat.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/sounds/hihat.mp3
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/sounds/kik.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/sounds/kik.mp3
--------------------------------------------------------------------------------
/TechDemos/SoundPlatform/SoundPlatform/sounds/snare.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/SoundPlatform/SoundPlatform/sounds/snare.mp3
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/.DS_Store
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 19/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | //setting the initial settings options
19 | let isSetting = UserDefaults.standard.bool(forKey: "isSetting")
20 | if !isSetting{
21 | settings()
22 | }
23 |
24 | return true
25 | }
26 |
27 | func applicationWillResignActive(_ application: UIApplication) {
28 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
29 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
30 | }
31 |
32 | func applicationDidEnterBackground(_ application: UIApplication) {
33 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
34 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
35 | }
36 |
37 | func applicationWillEnterForeground(_ application: UIApplication) {
38 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
39 | }
40 |
41 | func applicationDidBecomeActive(_ application: UIApplication) {
42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
43 | }
44 |
45 | func applicationWillTerminate(_ application: UIApplication) {
46 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
47 | }
48 |
49 | private func settings(){
50 | UserDefaults.standard.set(true, forKey: "isSetting")
51 | UserDefaults.standard.set(true, forKey: "soundOn")
52 | UserDefaults.standard.set(true, forKey: "onePlayer")
53 | UserDefaults.standard.set(true, forKey: "board3")
54 | }
55 |
56 |
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "O.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "O@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "O@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/O.imageset/O@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "X.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "X@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "X@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/X.imageset/X@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "board3.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "board3@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "board3@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board3.imageset/board3@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "board4.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "board4@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "board4@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/board4.imageset/board4@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "close.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "close@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "close@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/close.imageset/close@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "play.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "play@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "play@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/play.imageset/play@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "settings.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "settings@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "settings@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settings.imageset/settings@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "settingsTitle.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "settingsTitle@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "settingsTitle@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle@2x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Assets.xcassets/settingsTitle.imageset/settingsTitle@3x.png
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Extension/SKColor + Tic-Tac-Toe.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SKColor.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 25/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SpriteKit
11 |
12 |
13 | extension SKColor {
14 |
15 | func background() -> SKColor {
16 | return SKColor(red: 50/255, green: 50/255, blue: 59/255, alpha: 1.0)
17 | }
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Extension/UIColor + Tic-Tac-Toe.swift:
--------------------------------------------------------------------------------
1 | //
2 | // UIColor + Tic-Tac-Toe.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 25/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 | extension UIColor{
13 |
14 | func borderButton() -> UIColor{
15 | return UIColor(red: 106/255, green: 106/255, blue: 115/255, alpha: 1.0)
16 | }
17 |
18 | func redClose() -> UIColor{
19 | return UIColor(red: 236/255, green: 64/255, blue: 122/255, alpha: 1.0)
20 | }
21 |
22 | func orange() -> UIColor{
23 | return UIColor(red: 255/255, green: 144/255, blue: 0, alpha: 1.0)
24 | }
25 |
26 | func selectedBlue() -> UIColor{
27 | return UIColor(red: 38/255, green: 198/255, blue: 218/255, alpha: 1.0)
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Game/GameViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GameViewController.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 19/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 | import GameplayKit
12 |
13 | class GameViewController: UIViewController {
14 |
15 | override func viewDidLoad() {
16 | super.viewDidLoad()
17 | self.view = SKView(frame: view.frame)
18 | guard let skview = self.view as? SKView else { return }
19 | let sizeScene = UIScreen.main.bounds.size
20 | let gameScene = GameScene.init(size: sizeScene)
21 | gameScene.presentingProtocol = self
22 | gameScene.scaleMode = .resizeFill
23 | skview.presentScene(gameScene)
24 | }
25 | }
26 |
27 | extension GameViewController: PresentingProtocol {
28 |
29 | func dismissCurrent() {
30 | self.dismiss(animated: true, completion: nil)
31 | }
32 |
33 | func present(alert: UIAlertController) {
34 | self.present(alert, animated: true, completion: nil)
35 | }
36 |
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UIStatusBarHidden
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Menu/MenuScene.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MenuGame.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 22/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 |
12 | class MenuScene: SKScene {
13 |
14 | var playButton = SKSpriteNode()
15 | var settingsButton = SKSpriteNode()
16 |
17 | //textures of play and settings buttons
18 | private let playButtonTex = SKTexture(imageNamed: "play")
19 | private let settingsButtonTex = SKTexture(imageNamed: "settings")
20 |
21 | // protocols
22 | var goToProtocol: GoToProtocol!
23 | var presentingProtocol: PresentingProtocol!
24 |
25 |
26 |
27 | override func didMove(to view: SKView) {
28 | initialSetup()
29 | addChilds()
30 | positionSetup()
31 | }
32 |
33 | private func addChilds(){
34 | addChild(playButton)
35 | addChild(settingsButton)
36 | }
37 |
38 | private func positionSetup(){
39 | let height = playButton.frame.height
40 | playButton.position = CGPoint(x: frame.midX, y: frame.midY + height/2)
41 | settingsButton.position = CGPoint(x: frame.midX, y: playButton.frame.minY-height)
42 | }
43 |
44 | private func initialSetup(){
45 | //setting the anchor point of the scene
46 | anchorPoint = CGPoint(x: 0.5, y: 0.5)
47 | //applying textures
48 | playButton = SKSpriteNode(texture: playButtonTex)
49 | settingsButton = SKSpriteNode(texture: settingsButtonTex)
50 | }
51 |
52 | override func touchesBegan(_ touches: Set, with event: UIEvent?) {
53 | //gets the node of the touche's position and check
54 | if let playTouch = touches.first {
55 | let position = playTouch.location(in: self)
56 | guard let node = self.nodes(at: position).first else {return}
57 | // if the node is playButton go to GameViewController
58 | if node == playButton {
59 | goToProtocol.goTo(viewController: GameViewController())
60 | // if the node is settingsButton go to SettingsViewController
61 | }else if node == settingsButton {
62 | goToProtocol.goTo(viewController: SettingsViewController())
63 | }
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Menu/MenuViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MenuViewController.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 24/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SpriteKit
11 |
12 | class MenuViewController: UIViewController{
13 |
14 | override func viewDidLoad() {
15 | super.viewDidLoad()
16 | if let skview = self.view as? SKView {
17 | let menuScene = MenuScene.init(size: UIScreen.main.bounds.size)
18 | menuScene.goToProtocol = self
19 | menuScene.scaleMode = .resizeFill
20 | menuScene.backgroundColor = SKColor().background()
21 | skview.presentScene(menuScene)
22 | }
23 |
24 | }
25 | }
26 |
27 | extension MenuViewController: GoToProtocol {
28 | func goTo(viewController: UIViewController) {
29 | self.present(viewController, animated: true, completion: nil)
30 | }
31 |
32 | func goTo(scene: SKScene) {
33 | if let skview = self.view as? SKView {
34 | scene.scaleMode = .resizeFill
35 | skview.presentScene(scene)
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Model/Move.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Move.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 19/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import GameplayKit
11 |
12 | //GKGameModelUpdate - Implement this protocol to describe a move in your turn-based game so that a strategist object can plan game moves.
13 | class Move: NSObject, GKGameModelUpdate {
14 |
15 | //used to assign a score to the move
16 | enum score: Int{
17 | case none = 1
18 | case win
19 | }
20 |
21 | var value: Int = 0 // to conform with the protocol. A value assigned and read by GameplayKit to rate the desirability of a move in your game.
22 | var coordinate: CGPoint
23 |
24 | init(coordinate: CGPoint) {
25 | self.coordinate = coordinate
26 | }
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Model/Player.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Player.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 19/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import GameplayKit
11 |
12 | // GKGameModelPlayer: Implement this protocol to describe a player in your turn-based game so that a strategist object can plan game moves.
13 | class Player: NSObject, GKGameModelPlayer {
14 |
15 | enum Value: Int{
16 | case empty
17 | case x
18 | case o
19 |
20 | var name: String{
21 | switch self {
22 | case .empty:
23 | return ""
24 | case .x:
25 | return "X"
26 | case .o:
27 | return "O"
28 | }
29 | }
30 | }
31 |
32 | var playerId: Int
33 | var value: Value
34 | var name: String
35 | static var allPlayers = [Player(value: .x), Player(value: .o)]
36 |
37 | var opponent: Player {
38 | return self.value == .x ? Player.allPlayers[1] : Player.allPlayers[0]
39 | }
40 |
41 | init(value: Value) {
42 | self.value = value
43 | self.name = value.name
44 | playerId = value.rawValue
45 | }
46 |
47 |
48 |
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Model/Strategist.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Stategist.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 21/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import GameplayKit
11 |
12 | // defines the general logic to decide which moves are the best ones to play.
13 | struct Strategist {
14 |
15 | var strategist = GKMinmaxStrategist() // ranks every possible move to find the best one
16 |
17 | var board: Board {
18 | didSet {
19 | strategist.gameModel = board
20 | }
21 | }
22 |
23 | var bestCoordinate: CGPoint? {
24 | //getting the best move for the opponent os the current player. In this way, the AI will play for the opponent lose and not for it wins
25 | if let move = strategist.bestMove(for: board.currentPlayer.opponent) as? Move {
26 | return move.coordinate
27 | }
28 |
29 | return nil
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Protocol/GotoProtocol.swift:
--------------------------------------------------------------------------------
1 | //
2 | // GotoProtocol.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 25/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 | import SpriteKit
12 |
13 | //Used to move to another scene or controller
14 | protocol GoToProtocol {
15 | func goTo(viewController: UIViewController)//used to tell the controller to go to another viewController
16 | func goTo(scene: SKScene) //used to tell the controller to go to a scene
17 | }
18 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Protocol/PresentingProtocol.swift:
--------------------------------------------------------------------------------
1 | //
2 | // File.swift
3 | // Tic-Tac-Toe
4 | //
5 | // Created by Paloma Bispo on 28/02/19.
6 | // Copyright © 2019 Paloma Bispo. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 | // From scene tells the controller to present or dismiss
13 | protocol PresentingProtocol {
14 | func dismissCurrent() // used to tell the controller to dismiss yourself
15 | func present(alert: UIAlertController) // used to tell the controller to present a alert
16 | }
17 |
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Sounds/failure.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Sounds/failure.mp3
--------------------------------------------------------------------------------
/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Sounds/success.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/levyanjos/TechDemos/a9451a3aaf5bffb3ab01924d039a30b37f43fc25/TechDemos/Tic-Tac-Toe/Tic-Tac-Toe/Sounds/success.wav
--------------------------------------------------------------------------------