summaryrefslogtreecommitdiffhomepage
path: root/lib
AgeCommit message (Collapse)Author
2021-04-26Direct draw imagesdirect-drawTom Black
2021-04-13Add direct draw for shapesTom Black
Also add `Pixel` class
2021-04-12Square `draw` methodTom Black
2021-04-12Create direct draw class methodsTom Black
2021-02-13fix(msys2): detect RubyInstaller correctlyHEADmainyumetodo
RUBY_PLATFORM =~ /mingw/ also match with pure msys2 mingw64 env this bug was cause by d79643513b6f939968dc6670de9be27b5cfbde48 ref: - https://github.com/ruby2d/ruby2d/pull/91 - https://teratail.com/questions/202950
2021-02-13Execute uname oncePiotr Usewicz
2021-02-13Alias color to allow British English spellingGrzegorz Jakubiak
2021-02-13Bump version to 0.9.5v0.9.5Tom Black
2021-02-08Merge Simple 2D into gemTom Black
2020-02-16Bump version to 0.9.4v0.9.4Tom Black
Also Simple 2D to 1.2.0
2020-02-09Bump version to 0.9.3v0.9.3Tom Black
2020-02-09Update `colorize.rb` pathTom Black
2020-01-01`colorize` fixesTom Black
Move to the `cli` directory, rename `colorize` method to avoid naming conflicts with other gems
2019-04-25Bump version to 0.9.2v0.9.2Tom Black
2019-04-18Bump version to 0.9.1v0.9.1Tom Black
2019-04-06Bump version to 0.9.0v0.9.0Tom Black
2019-04-06Use iPhone X for default simulatorTom Black
2019-04-06Bundle dependencies with the gemTom Black
2019-01-10Bump version to 0.8.1v0.8.1Tom Black
2019-01-10Rescue console broken pipe (#143)Mario Visic
2019-01-06Tests and fixes to the public APITom Black
Namely to ensure attribute getters/setters are consistent
2019-01-06Raise errors if media can't be readTom Black
Check if NULL pointers are returned by native functions loading media for images, sprites, audio, etc. If NULL, raise Ruby 2D error.
2019-01-06Set diagnostics immediatelyTom Black
`set diagnostics: true` now calls the new `Window#ext_diagnostics` native extension function, which immediately calls `S2D_Diagnostics()`
2019-01-06Silence uninitialized console variable warningTom Black
2019-01-04Bump version to 0.8.0v0.8.0Tom Black
2019-01-03Add an assets path variableTom Black
Adds `Ruby2D.assets/=`. By default, will resolve to `./assets`. If run in a macOS app bundle, will resolve to `App.app/Contents/Resources/assets`, for example.
2019-01-03Add ability to build macOS app bundlesTom Black
2019-01-03Allow color to initialize from an existing color objectMario Visic
Setting a 2d object's color to be random is great, however it's difficult to re-use that color without manually extracting out the rgba values from that color object. Ideally it would be convenient to be able to do this: ```ruby square = Square.new(color: 'random') square_two = Square.new(color: square.color) ``` This patch allows this behavior from any 2d shape, making it much easier to reuse those random colors :)
2019-01-03Color enhancements, fixes, refactoringTom Black
Opacity and color can now be set for sprites. Opacity can now also be set when instantiating a new renderable object. `Color.from(c)` renamed to `Color.set(c)` for clarity. `Renderable` module includes more common functionality.
2019-01-01Add ability to take screenshotTom Black
2018-12-12Add an interactive consoleTom Black
Also moves `bin/ruby2d` functionality to new `lib/ruby2d/cli` dir
2018-12-12Make `contains?` inclusive (#137)Tom Black
If point is over the visual area, it's true. Also add default rectangle implementation to `renderable.rb`.
2018-12-12Remove current web backendTom Black
Preparing for WebAssembly
2018-12-12Use Simple 2D API to get and set music volumeTom Black
2018-10-30Fix deprecation warningsTom Black
Also use `-w` flag when running MRI tests
2018-10-24Bump version to 0.7.0v0.7.0Tom Black
2018-10-24Implements volume control to Music (#123)Heitor Carvalho
2018-10-16Move `String#colorize` to a separate file to requireTom Black
2018-10-11Sprite `play` method now takes opts hashTom Black
2018-10-09Fix Linux font directoryTom Black
2018-10-08Reorganize Image, Sprite, and Text argsTom Black
Start with the required argument first as positional, followed by optional ones as keyword arguments Co-Authored-By: Andrew Havens <[email protected]>
2018-10-05Remove old font path code in Text classTom Black
2018-10-05Bump version to 0.6.1v0.6.1Tom Black
2018-10-04Text will use default fontlstrzebinczyk
2018-09-28Bump version to 0.6.0v0.6.0Tom Black
2018-09-28Style, docs, and consistencyTom Black
2018-09-28Color enhancementsTom Black
New shortcuts for setting color values, like `.color.r/g/b/a` and simply `.r/g/b/a`; allow the British English spelling "colour"
2018-09-27Add documentation to `Sprite` classTom Black
2018-09-26Add ability to set the window iconTom Black
2018-09-26Handle adding controller mappings through Window classTom Black