Paste: minimal GAME:
Author: | ceninan |
Mode: | factor |
Date: | Fri, 13 Aug 2010 21:56:16 |
Plain Text |
USING: colors game.loop game.worlds kernel literals
method-chains opengl ui.gadgets.worlds
ui.pixel-formats ;
IN: mingame
TUPLE: min-world < game-world drop ;
M: min-world draw-world* drop 1.0 0.3 0.72 1.0 <rgba> 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 ] }
} ;
Author: | ceninan |
Mode: | factor |
Date: | Fri, 13 Aug 2010 21:58:30 |
Plain Text |
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 <rgba> 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 ] }
} ;
New Annotation