Any tutorials for macOS Swift Game Development?

Working with a student who wants to build a game in SpriteKit as a Mac app, and I was wondering if there are any good tutorials out there for this?

Secondary, is there a better way to do key controls for a macOS games in Swift? Using the KeyDown function with the key code has been more of an annoying process than I would like. Is there any way of simply doing if keyPressed == "D" {...}?

Hope I understand correctly what you want.

Did you try to

override func keyDown(with event: NSEvent)

Get details here: https://stackoverflow.com/questions/32446978/swift-capture-keydown-from-nsviewcontroller

Ray Wenderlich has many great tutorials for building games in SpriteKit, Swift, etc. Just one example: https://www.raywenderlich.com/71-spritekit-tutorial-for-beginners

Note some are a bit dated, but can get them pointed in the right direction.

Paul Hudson's Swift on Sundays series on YouTube has this - https://www.youtube.com/watch?v=TJfh8wXbfEw A functioning game in an hour and a bit, and 160 lines of code.

Any tutorials for macOS Swift Game Development?
 
 
Q