Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eleev/snake-swiftui
🎮 Vanilla SwiftUI snake game
https://github.com/eleev/snake-swiftui
game ios metal swiftui
Last synced: 8 days 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T07:00:43.000Z (6 months ago)
- Last Synced: 2024-10-01T05:21:42.168Z (5 months 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 boardEstimated 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)