Skip to content

Instantly share code, notes, and snippets.

@SeanFelipe
Last active December 25, 2017 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanFelipe/7f0705b2d66b3a7ef97e4c9f3732d056 to your computer and use it in GitHub Desktop.
Save SeanFelipe/7f0705b2d66b3a7ef97e4c9f3732d056 to your computer and use it in GitHub Desktop.
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