By: TCU | June 01, 2017
Shoes.app do @p = para animate do button, x, y = self.mouse @p.replace "Maus (Button-ID, x, y): #{button}, #{x}, #{y}" end end |
require 'rubygems' require 'gosu' include Gosu class GosuTest < Window def initialize super(640,480,false) # breite, höhe, fullscreen (Ja/nein) self.caption = "Zeige Zeichen, Ende mit ESC" # einmal Font laden reicht, dann geht's in draw schneller @font = Font.new(self, default_font_name, 20) @zeichen = "nix" end def draw @font.draw("Hallo "+@zeichen + "!", 0, 0, 1) end def button_down(id) case id when KbUp @zeichen = "rauf" when KbDown @zeichen = "runter" when KbLeft @zeichen = "links" when KbRight @zeichen = "rechts" when 4..28 @zeichen = ("a".."z").to_a.at(id-4) when 30..39 @zeichen = id == 39 ? "0" : (id - 29).to_s when 42 @zeichen = "backspace" when 40 @zeichen = "enter" when KbEscape close # exit on press of escape key else @zeichen = "kenn I no ned: " + (id).to_s end end end window = GosuTest.new window.show |
Category: Agil
Tags:
Waleed
Posted on : July 31, 2018Nice content and full of information.
Günter Ulreich
Posted on : July 11, 2018Ergänzende Links zu Shoes und schneller Praxis-Anleitungen...<br />
http://shoesrb.com/<br />
https://github.com/hacketyhack<br />
http://evc-cit.info/cit020/nks.pdf
Miller
Posted on : July 11, 2018I need a monitor from 100 to 300 hundred that has great quality and food
built in sound. what brand should I get, is <a href="https://www.analyzedu.com/writing-services-reviews/essayshark-com-review.html">https://www.analyzedu.com/writing-services-reviews/essayshark-com-review.html</a>
really good for gaming and movies like people saying or should I go for
a famous brand like Samsung and Dell .
Ibsen
Posted on : July 04, 2018you have shared very useful information <a
href="http://www.coad.com/">Hall of Fame</a>