summaryrefslogtreecommitdiffhomepage
path: root/test
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-12Some render testsTom Black
2021-04-12Create direct draw class methodsTom Black
2021-02-13Add some more color/colour testsTom Black
2019-04-06Bundle dependencies with the gemTom Black
2019-01-11Update CITom Black
2019-01-10WASAPI can't be opened on AppVeyor (Windows)Tom Black
2019-01-06Tests and fixes to the public APITom Black
Namely to ensure attribute getters/setters are consistent
2019-01-06Don't allow screenshots before window is shownTom 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-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-10-24Implements volume control to Music (#123)Heitor Carvalho
2018-10-11Sprite `play` method now takes opts hashTom 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-04Text will use default fontlstrzebinczyk
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-26Add ability to set the window iconTom Black
2018-09-26Allow text width to be a range in specTom 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-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-06Update CITom Black
Also adds native and web build test
2018-05-06Sprite class redesignTom Black
See #33 for discussion
2018-01-02Check for valid file path to prevent segfault when file does not exist.Andrew Havens
2017-12-10Allow colors beyond 0.0..1.0 rangeTom Black
2017-12-02Use controller mappingsTom Black
2017-11-27Add iOS and tvOS supportTom Black
2017-06-12Set image width and height in constructorTom Black
2017-06-04Test for bad event typesTom Black
2017-06-04Add all controller events to testTom Black
2017-06-04Update controller test for new event structureTom Black
2017-06-03Check if font file existsTom Black
2017-06-03Use named arguments (#65)lstrzebinczyk
2017-05-31Implement #contains? for all renderableslstrzebinczyk
2017-05-20Remove trailing whitespace everywhereTom Black
It's what all the kids are doing
2017-05-20Check if audio file exists for `Sound` and `Music`Tom Black
2017-05-19introduce lineslstrzebinczyk
2017-05-18allow events unbindinglstrzebinczyk
2017-05-05another take on z-indexlstrzebinczyk
2017-04-28Opacity improvementsTom Black
Adds opacity attribute reader for `Ruby2D::Color` and `Ruby2D::Color::Set`. Adds `opacity/=` method to renderable objects, a shortcut for `obj.color.opacity/=`.
2017-04-28Add `File.exists?` to MRubyTom Black
This also enables file checking to the `Image` class for MRI and MRuby (on the web, a “failed to load resource” already appears). Also, all exceptions will now be printed in MRuby, yay!
2017-04-13Add mouse events, introduce event structsTom Black
2017-04-02Implement Text#height and Text#widthlstrzebinczyk