Add particle-effect

This commit is contained in:
oakes
2014-01-25 00:25:46 -05:00
parent 384fb39a37
commit 43b706dccc
4 changed files with 48 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
(ns play-clj.utils
(:require [clojure.string :as s])
(:import [com.badlogic.gdx.graphics.g2d NinePatch TextureRegion]
(:import [com.badlogic.gdx.graphics.g2d NinePatch ParticleEffect
TextureRegion]
[com.badlogic.gdx.scenes.scene2d Actor]
[com.badlogic.gdx.utils Array ArrayMap]))
@@ -197,6 +198,10 @@ new object to be created each time a field is set)
[obj]
{:type :nine-patch :object obj})
(defmethod create-entity ParticleEffect
[obj]
{:type :particle-effect :object obj})
(defmethod create-entity Actor
[obj]
{:type :actor :object obj})