Permalink
Browse files

updated jme3 jar. fixed some loading errors. created new loading errors

  • Loading branch information...
1 parent 3ea6c51 commit 9da42643a4808288bb0ad3bbe03350f3a5898a11 @jwoertink committed Feb 20, 2012
View
@@ -1,9 +1,10 @@
source "http://rubygems.org"
gem 'theseus', :git => "git://github.com/jwoertink/theseus.git"
-gem "rawr"
+
group :development do
+ gem "rawr"
gem "rspec", "~> 2.3.0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.6.4"
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby
+# -*- coding: utf-8 -*-
+
+require 'rubygems'
+$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+require 'waves'
+require 'maze_craze/maze'
+
+Waves.echo("Booting Maze Craze", :green)
+Maze.new.start
@@ -0,0 +1,58 @@
+import com.jme3.app.Application;
+import com.jme3.app.SimpleApplication;
+import com.jme3.app.state.AbstractAppState;
+import com.jme3.app.state.AppStateManager;
+import de.lessvoid.nifty.Nifty;
+import de.lessvoid.nifty.screen.Screen;
+import de.lessvoid.nifty.screen.ScreenController;
+
+public class StartScreenController extends AbstractAppState implements ScreenController {
+
+ private Nifty nifty;
+ private Screen screen;
+ private SimpleApplication app;
+
+ /** custom methods */
+
+ public StartScreenController(Application app) {
+ /** You custom constructor, can accept arguments */
+ this.app = (SimpleApplication) app;
+ }
+
+ /** Nifty GUI ScreenControl methods */
+
+ public void bind(Nifty nifty, Screen screen) {
+ this.nifty = nifty;
+ this.screen = screen;
+ }
+
+ public void onStartScreen() { }
+
+ public void onEndScreen() { }
+
+ /** jME3 AppState methods */
+
+ @Override
+ public void initialize(AppStateManager stateManager, Application app) {
+ super.initialize(stateManager, app);
+ }
+
+ @Override
+ public void update(float tpf) {
+ /** jME update loop! */
+ }
+
+ public void startGame(String nextScreen) {
+ System.out.println("\n\n startGame called\n\n");
+ nifty.gotoScreen(nextScreen); // switch to another screen
+ // start the game and do some more stuff...
+ }
+
+ public void quitGame() {
+ System.out.println("\n\n quitGame called\n\n");
+ app.stop();
+ // TODO:
+ // find app instance variable @controller_path and delete that file.
+ }
+
+}
View
@@ -0,0 +1,62 @@
+require 'rubygems'
+require 'java'
+require 'jruby/core_ext'
+require 'bundler'
+Bundler.require
+
+GAME_ROOT_PATH = File.expand_path(File.dirname(__FILE__))
+$CLASSPATH << File.join(GAME_ROOT_PATH, "java", "classes")
+
+$: << File.join(GAME_ROOT_PATH)
+
+require File.join(GAME_ROOT_PATH, '..', '..', 'vendor', 'jme3_2011-11-13.jar')
+
+java_import "com.jme3.app.SimpleApplication"
+java_import "com.jme3.system.AppSettings"
+java_import "com.jme3.system.NanoTimer"
+java_import "com.jme3.asset.TextureKey"
+java_import "com.jme3.font.BitmapText"
+java_import "com.jme3.audio.AudioNode"
+java_import "com.jme3.bullet.BulletAppState"
+java_import "com.jme3.bullet.control.CharacterControl"
+java_import "com.jme3.bullet.control.RigidBodyControl"
+java_import "com.jme3.bullet.util.CollisionShapeFactory"
+java_import "com.jme3.bullet.collision.shapes.CapsuleCollisionShape"
+java_import "com.jme3.bullet.collision.shapes.CollisionShape"
+java_import "com.jme3.collision.CollisionResult"
+java_import "com.jme3.collision.CollisionResults"
+java_import "com.jme3.input.KeyInput"
+java_import "com.jme3.input.controls.ActionListener"
+java_import "com.jme3.input.controls.KeyTrigger"
+java_import "com.jme3.input.MouseInput"
+java_import "com.jme3.input.controls.MouseButtonTrigger"
+java_import "com.jme3.light.AmbientLight"
+java_import "com.jme3.light.DirectionalLight"
+java_import "com.jme3.math.ColorRGBA"
+java_import "com.jme3.math.Vector2f"
+java_import "com.jme3.math.Vector3f"
+java_import "com.jme3.math.Ray"
+java_import "com.jme3.scene.Node"
+java_import "com.jme3.scene.Spatial"
+java_import "com.jme3.scene.shape.Box"
+java_import "com.jme3.scene.shape.Sphere"
+java_import "com.jme3.scene.Geometry"
+java_import "com.jme3.material.Material"
+java_import "com.jme3.util.SkyFactory"
+java_import "com.jme3.texture.Texture"
+java_import "com.jme3.material.RenderState"
+java_import "com.jme3.niftygui.NiftyJmeDisplay"
+java_import "de.lessvoid.nifty.Nifty"
+java_import "de.lessvoid.nifty.screen.Screen"
+java_import "de.lessvoid.nifty.screen.ScreenController"
+java_import "java.util.logging.Level"
+java_import "java.util.logging.Logger"
+
+java_import "java.awt.DisplayMode"
+java_import "java.awt.GraphicsDevice"
+java_import "java.awt.GraphicsEnvironment"
+
+java_import "StartScreenController"
+# java_import "HudScreenController"
+# java_import "PauseScreenController"
+# java_import "EndScreenController"
Oops, something went wrong.

0 comments on commit 9da4264

Please sign in to comment.