https://github.com/lemmiix/c-asteroids
Asteroids-like shooter with SDL3 written entirely in C. --WIKI WORK IN PROGRESS--
https://github.com/lemmiix/c-asteroids
c sdl sdl3
Last synced: 4 months ago
JSON representation
Asteroids-like shooter with SDL3 written entirely in C. --WIKI WORK IN PROGRESS--
- Host: GitHub
- URL: https://github.com/lemmiix/c-asteroids
- Owner: LEMMIIX
- License: mit
- Created: 2025-09-12T12:21:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-02-27T15:37:40.000Z (4 months ago)
- Last Synced: 2026-02-27T20:41:54.374Z (4 months ago)
- Topics: c, sdl, sdl3
- Language: C
- Homepage: https://github.com/LEMMIIX/c-asteroids/wiki
- Size: 66 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# C-Asteroids

[](https://github.com/LEMMIIX/c-asteroids/wiki)
[](https://work_in_progress)
> *if you **c - asteroids**, shoot 'em*
Check out [the wiki of this repo][wiki_link] if you are looking to learn from this project!
Wiki completion:
- [x] code doc
- [ ] architecture doc
## Showcase
### Version 9:
Changes:
* properly implement `map` logic in [`c_map.h`](src/c_map.h) with dynamic map resizing
`e4762401eceb56a9e29254e81179c164a05e00db`
### Version 8:

Changes:
* add score counter that adds points if hit enemy, or subtracts if missed enemy
* add small randomization to enemy direction
`27ecde8224a5434dda1bebb172c1537d7bc0d0a9`
### Version 7:

Changes:
* add pause and game-over menu which provides restart option
`1aa04d2dc44dd4d74e6047503145636d997d1c7b`
### Version 6:

Changes:
* add enemies that can be shot
`36e7cbc2f5f250d761788534fc8064760d671c51`
### Version 5:

Changes:
* shoot projectiles in player facing direction
`69b22277ad60606e911b2b7241b6957dc3f860b3`
### Version 4:

Changes:
* shoot variations of projectiles with mouse klick
`02932c564615f79f1f1087c5d5991aa9e1a99cdd`
### Version 3:

Changes:
* fps counter
* vsync
* frame-independent movement using delta time
* window boundary check for movement
`1e7c7d8636095449e8f43e6b1eefb485dd59ea48`
### Version 2:

Changes:
* rotating while moving
`7bff79f5d5cbb0f7a877141cd86ec762366d4cb1`
### Version 1:

`d269adbef4c4c9de87efec055d1683076dcb219a`
[wiki_img]:
https://upload.wikimedia.org/wikipedia/commons/2/2c/Tango_style_Wikipedia_Icon.svg
[wiki_link]:
https://github.com/LEMMIIX/shooty-triangle/wiki