Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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)