Skip to content

Commit

Permalink
doc: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yhara committed Sep 29, 2018
1 parent 810f2f4 commit 87a58e1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## HEAD

- [Support blend mode `:add`](https://github.com/yhara/dxopal/pull/11)
- Update gems

## v1.2.0 (2018-05-16)

- new: Support shift/ctrl key
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites

- Ruby (tested with 2.3.3)
- Ruby (tested with 2.5.1)
- Node.js (to minify .js)

## Setup
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ end

# How to make a release
# 0. Edit opal/dxopal/version.rb
# 1. Edit CHANGELOG.md
# 1. Add release date in CHANGELOG.md
# 2. `rake release:make_release_commit`
# 3. Test
# - Open starter-kit/index.html in Firefox
Expand Down
36 changes: 20 additions & 16 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Compatibility to DXRuby

DXOpal has many of the DXRuby methods but some are not implemented yet. Pull Requests are welcome!

And if you are not sure how to implement, just create a issue to request them: https://github.com/yhara/dxopal/issues

## module Input

- [ ] x - TODO: pad support
Expand Down Expand Up @@ -243,20 +247,20 @@ These methods will not be supported.
- [x] y=
- [x] z
- [x] z=
- [ ] angle
- [ ] angle=
- [ ] scale_x
- [ ] scale_x=
- [ ] scale_y
- [ ] scale_y=
- [ ] center_x
- [ ] center_x=
- [ ] center_y
- [ ] center_y=
- [ ] alpha
- [ ] alpha=
- [ ] blend
- [ ] blend=
- [x] angle
- [x] angle=
- [x] scale_x
- [x] scale_x=
- [x] scale_y
- [x] scale_y=
- [x] center_x
- [x] center_x=
- [x] center_y
- [x] center_y=
- [x] alpha
- [x] alpha=
- [x] blend
- [ ] blend= (TODO: :none, :add2, :sub)
- [ ] shader
- [ ] shader=
- [x] image
Expand All @@ -267,8 +271,8 @@ These methods will not be supported.
- [x] collision=
- [x] collision_enable
- [x] collision_enable=
- [ ] collision_sync
- [ ] collision_sync=
- [x] collision_sync
- [x] collision_sync=
- [x] visible
- [x] visible=
- [x] vanish
Expand Down
5 changes: 3 additions & 2 deletions opal/dxopal/sprite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def initialize(x=0, y=0, image=nil)
attr_accessor :scale_x, :scale_y
# Set rotation center (default: center of `image`)
attr_accessor :center_x, :center_y
# Set alpha(0~255, default: nil)
# Set alpha (0~255, default: nil)
attr_accessor :alpha
# Set blend type(default: :alpha)
# Set blend type (Any of :alpha(default), :add)
# (:none, :add2 and :sub are not implemented yet; Pull request is welcome)
attr_accessor :blend

attr_reader :x, :y
Expand Down

0 comments on commit 87a58e1

Please sign in to comment.