Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmsrosa/gzrgames.jl
Suite of simple games made with GameZero.jl
https://github.com/rmsrosa/gzrgames.jl
games julia
Last synced: about 1 month ago
JSON representation
Suite of simple games made with GameZero.jl
- Host: GitHub
- URL: https://github.com/rmsrosa/gzrgames.jl
- Owner: rmsrosa
- License: mit
- Created: 2021-07-25T18:55:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T01:38:53.000Z (2 months ago)
- Last Synced: 2024-10-21T04:59:53.287Z (2 months ago)
- Topics: games, julia
- Language: Julia
- Homepage:
- Size: 3.64 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GZRGames.jl
Suite of simple games made with [aviks/GameZero.jl](https://github.com/aviks/GameZero.jl/tree/master/src).
## Games
So far, there is only one game being developed.
**Warning:** On my Mac, the drawing was restricted to the upper left corner of the window. It seems it spawns a window with twice the given width and twice the given height. In order to compansate for that, I define the desired width and height as variables `WD` and `HT`, write the code with respect to that, but define the width and height game variables as `WIDTH = div(WD, 2)` and `HEIGHT = div(HT, 2)`. If you don't encounter this problem, just edit the game file to not divide them by two.
### Virtual Pilot
From the root directory of the repository, assuming the project has been instantiated, just run the game with
```julia
julia> using GameZerojulia> rungame("VirtualPilot/virtualpilot.jl")
```* **Movement:** arrow keys
* **Fire:** left-shift key
* **Restart game:** Enter key![Virtual Pilot screenshot](VirtualPilot/virtualpilot_screenshot.png)
Ships were created with [Inkscape](https://inkscape.org). Sounds were obtained from [mikxkit.co - Free Game Sound Effects](https://mixkit.co/free-sound-effects/game/).