Sha256: baa1da40d2a22569ce266858a3de835fa8984f5e66d374c2b1cfefa67291f963
Contents?: true
Size: 204 Bytes
Versions: 5
Compression:
Stored size: 204 Bytes
Contents
# -*- coding: utf-8 -*- require 'smalruby' car1 = Character.new(x: 0, y: 0, costume: 'car1.png') car1.on(:start) do loop do move(5) turn_if_reach_wall end end car1.on(:click) do turn end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
smalruby-0.0.3-x86-mingw32 | samples/car.rb |
smalruby-0.0.3 | samples/car.rb |
smalruby-0.0.2-x86-mingw32 | samples/car.rb |
smalruby-0.0.2 | samples/car.rb |
smalruby-0.0.1 | samples/car.rb |