https://github.com/eleev/snake-swiftui
🎮 Vanilla SwiftUI snake game
https://github.com/eleev/snake-swiftui
game ios metal swiftui
Last synced: 8 months ago
JSON representation
🎮 Vanilla SwiftUI snake game
- Host: GitHub
- URL: https://github.com/eleev/snake-swiftui
- Owner: eleev
- Created: 2024-08-22T17:56:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T07:00:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T05:21:42.168Z (over 1 year ago)
- Topics: game, ios, metal, swiftui
- Language: Swift
- Homepage:
- Size: 16.1 MB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake SwiftUI [](https://github.com/sindresorhus/awesome)
[]()
[]()
[]()
[]()
[]()
### If you like the project, please give it a star ⭐ It will show the creator your appreciation and help others to discover the repo.
# ✍️ About
🐍 Snake on vanilla `SwiftUI`. A quick attempt to implement a working game. The game usese post-processing via a color adjustment filter (`Metal`).
# 📺 Demo
Please note that the `.gif` files have low frame rate due to compression and accessibility of demo.

# 📋 Features
- Vanilla SwiftUI / No Canvas
- Metal `vault boy` / `fallout shader`
- neon edge rendering
- glowing via smoothstep
- color mixing
- luminance distance
- Self-collision
- Wall collision
- Drag gesture based controls
- Adjustable game board
Estimated implementation time: `1h 10m`
# 👨💻 Author
[Astemir Eleev](https://github.com/eleev)
# 🔖 Licence
The project is available under [MIT Licence](https://github.com/eleev/swiftui-new-metal-shaders/blob/master/LICENSE)