mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Fixed a couple warnings
This commit is contained in:
@@ -5,7 +5,7 @@ module CyberarmEngine
|
||||
SONGS = {}
|
||||
|
||||
attr_accessor :show_cursor
|
||||
attr_reader :current_state, :last_frame_time
|
||||
attr_reader :last_frame_time
|
||||
|
||||
def self.now
|
||||
Gosu.milliseconds
|
||||
|
||||
@@ -3,7 +3,8 @@ module CyberarmEngine
|
||||
include Common
|
||||
|
||||
attr_accessor :image, :angle, :position, :velocity, :center_x, :center_y, :scale_x, :scale_y,
|
||||
:color, :alpha, :mode, :options, :paused, :radius, :last_position
|
||||
:color, :mode, :options, :paused, :radius, :last_position
|
||||
attr_reader :alpha
|
||||
def initialize(options={})
|
||||
if options[:auto_manage] || options[:auto_manage] == nil
|
||||
$window.current_state.add_game_object(self)
|
||||
@@ -141,7 +142,7 @@ module CyberarmEngine
|
||||
self.angle%=360
|
||||
end
|
||||
|
||||
def alpha=int # 0-255
|
||||
def alpha=(int) # 0-255
|
||||
@alpha = int
|
||||
@alpha = 255 if @alpha > 255
|
||||
@color = Gosu::Color.rgba(@color.red, @color.green, @color.blue, int)
|
||||
|
||||
Reference in New Issue
Block a user