! Copyright (C) 2010 Niklas Waern. ! See http://factorcode.org/license.txt for BSD license. USING: colors game.loop game.worlds kernel literals method-chains opengl ui.gadgets.worlds ui.pixel-formats ; IN: mingame TUPLE: min-world < game-world ; M: min-world draw-world* drop 1.0 0.3 0.72 1.0 gl-clear ; AFTER: min-world resize-world drop ; GAME: min-game { { world-class min-world } { title "Minimal" } { pixel-format-attributes { windowed double-buffered T{ depth-bits { value 24 } } } } { pref-dim { 640 480 } } { tick-interval-nanos $[ 60 fps ] } } ;