Last active
December 25, 2017 06:02
-
-
Save SeanFelipe/7f0705b2d66b3a7ef97e4c9f3732d056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'imports' | |
#require 'pry-debugger-jruby' | |
require 'pry' | |
class MainGame < ApplicationAdapter | |
def create | |
binding.pry | |
Gdx::graphics::setContinuousRendering(false) | |
$ww, $hh = Gdx::graphics::getWidth, Gdx::graphics::getHeight | |
end | |
def render | |
Gdx::gl::gl_clear_color(0, 0, 0, 1) | |
#Gdx::gl::gl_clear_color(0.5, 0.5, 0.5, 1) | |
Gdx::gl::gl_clear(GL20::GL_COLOR_BUFFER_BIT | GL20::GL_DEPTH_BUFFER_BIT) | |
end | |
end | |
=begin | |
Exception in thread "LWJGL Application" org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `push' for #<Java::ComBadlogicGdxUtils::Array:0x4ad1ec1e> | |
at RUBY.push_prompt(/Users/gslzwol/.rvm/gems/jruby-9.0.5.0@zomg-red-conspiracy/gems/pry-0.11.3-java/lib/pry/pry_instance.rb:584) | |
at RUBY.initialize(/Users/gslzwol/.rvm/gems/jruby-9.0.5.0@zomg-red-conspiracy/gems/pry-0.11.3-java/lib/pry/pry_instance.rb:74) | |
at RUBY.start(/Users/gslzwol/.rvm/gems/jruby-9.0.5.0@zomg-red-conspiracy/gems/pry-0.11.3-java/lib/pry/repl.rb:13) | |
at RUBY.start(/Users/gslzwol/.rvm/gems/jruby-9.0.5.0@zomg-red-conspiracy/gems/pry-0.11.3-java/lib/pry/pry_class.rb:192) | |
at RUBY.pry(/Users/gslzwol/.rvm/gems/jruby-9.0.5.0@zomg-red-conspiracy/gems/pry-0.11.3-java/lib/pry/core_extensions.rb:43) | |
at RUBY.create(/Users/gslzwol/stuffs/zomg-owh/src/zredc.rb:9) | |
=end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment