Detect Matches on Drop In SwiftUI With Swift Playgrounds - BugSmasher Part 6

39 Просмотры
Издатель
In order to start making this Swift Playgrounds project come to life it's time to start detecting matches when we drop a bug on top of a match.

Project Intro - https://youtube.com/shorts/d-EzV_hiNc0
Part 1 - Setting Up The Project - https://youtube.com/shorts/UAYa_RhX2cQ
Part 2 - Creating A Simple UI With Swift Playgrounds - https://youtube.com/shorts/YLStuS1q9Mo
Part 3 - Creating Custom Views in SwiftUI - https://youtube.com/shorts/WrdfXGuCe7w
Part 4 - Hooking Up Custom Views In Swift Playgrounds https://youtube.com/shorts/VJJ9c334ihU
Part 5 - Creating Draggable Images in Swift Playgrounds https://youtube.com/shorts/TUBiNeTTnnk
Part 6 - This video!

This is a two parter folks! The 1 minute hard stop for shorts content is brutal when it comes to explaining complex topics like this one. So in this video we set the foundation by creating an enum to hold our draggedStates (whether were matching or not) and add the core functionality to the Bugs struct.

Next time we'll hook it all up in ContentView.

#gamedev #swiftplaygrounds #swiftui #indiedev

//Things I've Made
ZER0ED: https://apps.apple.com/us/app/zer0ed/id1526004843
Shapes&Numbers: https://apps.apple.com/us/app/shapes-numbers/id1623506538
My Website: https://www.johndav.com
Категория
Язык программирования Swift
Комментариев нет.