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: about 1 month 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T07:00:43.000Z (3 months ago)
- Last Synced: 2024-10-01T05:21:42.168Z (about 1 month 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 [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
[![Platform](https://img.shields.io/badge/platform-iOS_17-yellow.svg)]()
[![Platform](https://img.shields.io/badge/platform-iPadOS_17-darkyellow.svg)]()
[![Language](https://img.shields.io/badge/language-Swift_5.10-orange.svg)]()
[![Contributors](https://img.shields.io/github/contributors/eleev/snake-swiftui)]()
[![License](https://img.shields.io/badge/license-MIT-blue.svg)]()### 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.![](/demo.gif)
# 📋 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)