Finished testing and docs for now. Time for new features!
This commit is contained in:
+4
-1
@@ -3,9 +3,12 @@
|
||||
|
||||
# This class will be the container for ships. For now they are all the same
|
||||
class Ship
|
||||
def initialize(x_pos, y_pos)
|
||||
attr_reader :owner
|
||||
|
||||
def initialize(x_pos, y_pos, owner)
|
||||
@position = [x_pos, y_pos]
|
||||
@speed = 0.1
|
||||
@owner = owner
|
||||
end
|
||||
|
||||
# Called every game tick
|
||||
|
||||
Reference in New Issue
Block a user