domgetter / dare Goto Github PK
View Code? Open in Web Editor NEWRuby Web Game library on top of Opal
License: MIT License
Ruby Web Game library on top of Opal
License: MIT License
Dare::AnimationState does not exists. Maybe I can help implementing this class, but I need to know how it works :D
Running rake build without bundler will throw an error - Can bundler be installed as part of gem install dare, or give the user some helpful text intead of a ENOENT?
stacktrack below
rake build
rake aborted!
Errno::ENOENT: No such file or directory - bundle show dare
*/gamename/Rakefile:15:in ``'
*/Rakefile:15:in `block in <top (required)>'
Tasks: TOP => build
(See full trace by running task with --trace)
If I try to set a caption (or title) the app breaks, giving me only a box with a border
def initialize
super width: 640, height: 480, border: true
self.title = "Pong" # FAIL! THIS BREAKS THE WHOLE APP!
@x = 0
end
I would like to not have to do a bundle install at the get go, for simplicity, but if you don't, under some conditions (new opal install maybe?) the rake build will generate a javascript file with its contents just being the html file.
Here's an old prototype to get you started:
https://spin.atomicobject.com/2013/11/05/opal-ruby-browser
Keep up the good work.
This gem looks really cool, and I'm thinking of using it for the upcoming Ludum Dare. But at the moment, someting seems broken:
$ gem install dare
Fetching: dare-0.2.0.gem (100%)
Successfully installed dare-0.2.0
Parsing documentation for dare-0.2.0
Installing ri documentation for dare-0.2.0
Done installing documentation for dare after 0 seconds
1 gem installed
$ dare new game
create game/Gemfile
create game/Rakefile
create game/game.rb
create game/game.html
$ cd game/
$ rake build
$ cat game.js
<!DOCTYPE html>
<html>
<head>
<title id="pageTitle"></title>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<!-- Will add this back when 0.7.0 is released -->
<!-- <script src="http://cdn.opalrb.org/opal/0.7.0/opal.min.js"></script> -->
</head>
<body>
<script src="game.js"></script>
</body>
</html>
Also, Opal 0.7.0 has been released! :-)
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.