Paste: minimal GAME:

Author: ceninan
Mode: factor
Date: Fri, 13 Aug 2010 21:56:16
Plain Text |
! 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 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 ] }
} ;

Annotation: without the drop...

Author: ceninan
Mode: factor
Date: Fri, 13 Aug 2010 21:58:30
Plain Text |
! 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 <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

Summary:
Author:
Mode:
Body: