graphics
graphics copied to clipboard
A simple ruby framework to implement games and/or simulations and is designed to follow mathematical conventions, NOT game programming conventions.
## Description Running `brew install sdl2_image --without-webp` as specified in the [graphics_setup script](https://github.com/zenspider/graphics/blob/master/graphics_setup.sh#L27) for mac OS results in an `invalid option error`. I use homebrew, but I am not familiar...
Okay, watch like 10 seconds of [this](https://vimeo.com/193110695) video. The code for that is [here](https://gist.github.com/JoshCheek/49087d517d9a531558cf9ae7d644c20a). When I try it with the graphics built from https://github.com/zenspider/graphics/commit/c46b846191b3efdbadb19e2595e989108b1a0fcb, it is very very slow, which...
Fixed linux setup for SDL2
Looks kind of like this (except doesn't loop): 
On my system there are all kinds of wacky subdirectories in `/usr/share/fonts`. `DejaVuSansMono.ttf` happens to be in `/usr/share/fonts/TTF` not `/usr/share/fonts/truetype`. Since the code searches by `ttf`/`ttc` extensions I suggest it's...
# Common things I do * 31 px to deal with the colour thing: `super 800, 600, 31` * default proc on colour: `color.default_proc = lambda { |h, c| c...
Playing around with sprites to see how they compose. `blit` attaches them at the center point of the sprite. It took quite a bit of effort to figure that out...
Painting a single color by name is fine... but I want the overall color system to be more intelligent. Something like providing a knob that you simply turn and get...
On Linux (Mint), I had to modify the makefile : ./tmp/x86_64-linux/sdl/2.2.1/Makefile I changed optflags and added : -std=c99
- Detect `apt` and `brew` command presence and give appropriate messages if missing. - Dropped `$OSTYPE` since `foo-bar` seems potentially more confusing than helpful and folk should know their OS...