Example #1
0
 @Override
 public void register(JSONObject oneItem) {
   String id = oneItem.getString("id");
   String url = oneItem.getString("url");
   myImages.put(id, url);
   myEngine.defineImage(id, "-", 256, url, "-");
 }
Example #2
0
 @Override
 public void register(JSONObject oneItem) {
   String id = oneItem.getString("id");
   String url = oneItem.getString("url");
   myEngine.defineAudioClip(id, url);
 }
Example #3
0
 @Override
 public void register(JSONObject oneItem) {
   String id = oneItem.getString("id");
   String[] frames = makeFrames(oneItem.getJSONArray("sheet"));
   myEngine.defineAnimation(id, frames, 0.2);
 }