You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
509 B
Ruby
25 lines
509 B
Ruby
#
|
|
# Copyright (c) 2001 by Jim Menard <jimm@io.com>
|
|
#
|
|
# Released under the same license as Ruby. See
|
|
# http://www.ruby-lang.org/en/LICENSE.txt.
|
|
#
|
|
|
|
require 'Params'
|
|
|
|
class Camera
|
|
|
|
attr_accessor :position, :rotation, :zoom
|
|
|
|
def initialize
|
|
@position = Point.new($PARAMS['camera_x'],
|
|
$PARAMS['camera_y'],
|
|
$PARAMS['camera_z'])
|
|
@rotation = Point.new($PARAMS['camera_rot_x'],
|
|
$PARAMS['camera_rot_y'],
|
|
$PARAMS['camera_rot_z'])
|
|
@zoom = $PARAMS['camera_zoom']
|
|
end
|
|
end
|
|
|