Skip to content

Instantly share code, notes, and snippets.

@LauJensen
Created April 1, 2010 19:45
Show Gist options
  • Save LauJensen/352269 to your computer and use it in GitHub Desktop.
Save LauJensen/352269 to your computer and use it in GitHub Desktop.
(ns p.pulp
(:import (pulpcore.animation Easing Timeline)
(pulpcore.animation.event RemoveSpriteEvent)
(pulpcore.image BlendMode CoreImage CoreFont)
(pulpcore Input Stage)
(pulpcore.math CoreMath)
(pulpcore.scene Scene2D)
(pulpcore.sprite FilledSprite Group ImageSprite Sprite Label))
(:gen-class
:extends pulpcore.scene.Scene2D
:impl-ns p.pulp))
(defn -load [this]
(let [background (FilledSprite. pulpcore.image.Colors/BLUE)
hello (Label. (CoreFont/getSystemFont) "Hello"
200 200)]
(.add this background)
(.setAnchor hello Sprite/CENTER Sprite/CENTER)
(.add this hello)))
(defn -update-scene [this dt]
nil)
(defn tryme [] (p.pulp.))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment