Git Product home page Git Product logo

potc-jruby's People

Contributors

chalkers avatar headius avatar peterc avatar timfel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

potc-jruby's Issues

exception/freeze right before climbing down

Nice port!

After finding skates and clippers and clipping my way through a fenced yard, I swapped to my pistol, thinking i might need it before climbing down a ladder, and then the app froze with the following:

...
17 fps
Exception in thread "Thread-6" org.jruby.exceptions.RaiseException: (NameError) uninitialized constant Level::CryptLevel
at org.jruby.RubyModule.const_missing(org/jruby/RubyModule.java:2642)
at org.jruby.RubyModule.const_get(org/jruby/RubyModule.java:2569)
at (Anonymous).by_name(/Users/ggriffin/git/peterc/potc-jruby/escape/level/level.rb:166)
at (Anonymous).load_level(/Users/ggriffin/git/peterc/potc-jruby/escape/level/level.rb:158)
at Game.switch_level(/Users/ggriffin/git/peterc/potc-jruby/escape/game.rb:29)
at OverworldLevel.switch_level(/Users/ggriffin/git/peterc/potc-jruby/escape/level/overworld_level.rb:13)
at LadderBlock.add_entity(/Users/ggriffin/git/peterc/potc-jruby/escape/level/block/ladder_block.rb:28)
at Entity.update_pos(/Users/ggriffin/git/peterc/potc-jruby/escape/entities/entity.rb:22)
at Level.tick(/Users/ggriffin/git/peterc/potc-jruby/escape/level/level.rb:201)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1615)
at org.jruby.RubyEnumerable.each_with_index(org/jruby/RubyEnumerable.java:951)
at Level.tick(/Users/ggriffin/git/peterc/potc-jruby/escape/level/level.rb:199)
at Game.tick(/Users/ggriffin/git/peterc/potc-jruby/escape/game.rb:91)
at Component.tick(/Users/ggriffin/git/peterc/potc-jruby/escape/component.rb:128)
at Component.run(/Users/ggriffin/git/peterc/potc-jruby/escape/component.rb:82)

Unable to load assets via URL in Windows

Game uses:

url = java.net.URL.new "file://" + ASSETS_DIR + file_name

which produces a sensible URL that Windows Explorer is happy with, but the game doesn't find those assets to load.

I was able to change it to:

url = java.io.File.new ASSETS_DIR + file_name

to get it to work, but obviously that isn't going to work in a network-based form.

java.lang.IllegalArgumentException: Invalid format

I get an exception on my Ubuntu Box:

NativeException: java.lang.IllegalArgumentException: Invalid format
load_sound at /home/yguilloux/Documents/Dev/GIT/potc-jruby/escape/sound.rb:12
Sound at /home/yguilloux/Documents/Dev/GIT/potc-jruby/escape/sound.rb:30
each at org/jruby/RubyArray.java:1603
Sound at /home/yguilloux/Documents/Dev/GIT/potc-jruby/escape/sound.rb:29
(root) at /home/yguilloux/Documents/Dev/GIT/potc-jruby/escape/sound.rb:3
require at org/jruby/RubyKernel.java:1038
(root) at /home/yguilloux/Documents/Dev/GIT/potc-jruby/escape/sound.rb:47
require at org/jruby/RubyKernel.java:1038
(root) at escape.rb:2

Ubuntu 11.04
RVM 1.6.23
jruby 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (OpenJDK Server VM 1.6.0_22) [linux-i386-java]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.