Sha256: f6993e4ee587ec01919198669ff1a976690f1a5d4d3f4a205bdb22532779a982
Contents?: true
Size: 407 Bytes
Versions: 5
Compression:
Stored size: 407 Bytes
Contents
module Gosu PathNode = Struct.new(:x, :y) def self.draw_path(nodes, color = Gosu::Color::WHITE, z = 0, mode = :default) last_node = nodes.first nodes[1..nodes.size - 1].each do |current_node| Gosu.draw_line( last_node.x, last_node.y, color, current_node.x, current_node.y, color, z, mode ) last_node = current_node end end end
Version data entries
5 entries across 5 versions & 1 rubygems