peterc / potc-jruby Goto Github PK
View Code? Open in Web Editor NEWJRuby port of Prelude of the Chambered, a Java game
JRuby port of Prelude of the Chambered, a Java game
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)
As title says. Just a heads up in case you haven't encountered it yet. Using jruby 1.5.2(i might try it after i upgrade)
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.
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.