summaryrefslogtreecommitdiffhomepage
path: root/lib
AgeCommit message (Collapse)Author
2019-04-15Set image anchor pointTom 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
2018-09-26Documentation and style updatesTom Black
2018-09-20Add `Circle` classTom Black
2018-09-20Expose window attributes through class methodsTom Black
2018-09-12Add ability to rotate texturesTom Black
Includes images, sprites, and text.
2018-09-12CleanupTom Black
Reordering and removing unused code
2018-09-12Sprite enhancementsTom Black
Add ability to flip the sprite, run a block after an animation, properly change the width and height, and other fixes.
2018-05-06Enable setting and getting custom fps_capeiko
2018-05-06Fix native building of appsTom Black
2018-05-06Sprite class redesignTom Black
See #33 for discussion
2018-01-29Bump version to 0.5.1v0.5.1Tom Black
2018-01-08Add appveyor.ymlTom Black
2018-01-05Add DLL path for Simple 2DTom Black
2018-01-02Autoload controller mappings file.Andrew Havens
2018-01-02Check for valid file path to prevent segfault when file does not exist.Andrew Havens