summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/input.rb50
-rw-r--r--examples/simple.rb13
-rw-r--r--examples/triangle.rb10
3 files changed, 0 insertions, 73 deletions
diff --git a/examples/input.rb b/examples/input.rb
deleted file mode 100644
index a39a29c..0000000
--- a/examples/input.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-require 'ruby2d'
-
-set width: 200, height: 100
-
-on key: 'a' do
- puts "a pressed!"
-end
-
-show
-
-# on :mouse 'up' do
-#
-# end
-#
-# on :mouse 'down' do
-#
-# end
-#
-# on :key 'a' do
-#
-# end
-#
-# on :key_down 'a' do
-#
-# end
-#
-# on :mouse 'click' do
-#
-# end
-#
-# on :mouse 'right' do
-#
-# end
-#
-# on :mouse 'left' do
-#
-# end
-#
-#
-# on key: 'any' do
-#
-# end
-#
-# on key: 'a' do
-#
-# end
-#
-# on key: 'shift' do
-#
-# end
diff --git a/examples/simple.rb b/examples/simple.rb
deleted file mode 100644
index ca8e99f..0000000
--- a/examples/simple.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require 'ruby2d'
-
-# Set the window size
-set width: 300, height: 200
-
-# Create a new shape
-s = Square.new
-
-# Give it some color
-s.color = 'red'
-
-# Show the window
-show
diff --git a/examples/triangle.rb b/examples/triangle.rb
deleted file mode 100644
index 71f0bbf..0000000
--- a/examples/triangle.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-require 'ruby2d'
-
-Triangle.new(320, 50, 540, 430, 100, 430,
-[
- [1.0, 0, 0, 1.0],
- [0, 1.0, 0, 1.0],
- [0, 0, 1.0, 1.0]
-])
-
-show