 |
Forums |
Admin Start New Thread
By: Diego Brengi
RE: Unofficial Debian package for rrobots [ reply ] 2008-09-17 15:10
|
The keyboard robot didn't work for me. Y will try to find why :-(
I have to make some little chages to the code to make my package of gosurrobots. Maybe you can change your sources too.
This are my changes:
#!/usr/bin/ruby
added in the first line of gosurrobots.rb.
And in gosuarena.rb
$media_path="/usr/share/grrobots/" (or use "", that dind't change current behavior )
And then for every file acces in gosuarena I use:
@theme = Gosu::Song.new(self,"#{$media_path}music/song.mod")
My files are in rrobots package: https://sourceforge.net/projects/tallergnulinux/
|
By: Diego Brengi
RE: Unofficial Debian package for rrobots [ reply ] 2008-09-17 00:20
|
All right. That is a lot better tha before!. I was using the .tar file (too old). Now I downloaded the git files. Works with sound effects, music, colors and in full screen mode :-)
I don't understand the changes in robot.rb file. In particular the pressed_button. What is this for?
diff /usr/src/rrobots/robot.rb robot.rb
276c276
< @gun_heat = @actions[:fire]
---
> @gun_heat = @actions[:fire] * 3
344a345,348
>
> def pressed_button(id)
> @events['button_pressed'] += id
> end
|
By: Albert Ramstedt
RE: Unofficial Debian package for rrobots [ reply ] 2008-09-16 22:17
|
|
No, I added the sound, energy bars and colors. Did you checkout the gitorius repo or the file here? The repo is more recent. I even added a soundtrack, and someone else added sound panning. Check out the version from gitorious and try it out.
|
By: Diego Brengi
RE: Unofficial Debian package for rrobots [ reply ] 2008-09-16 22:04
|
I installed gosu and try rrobots-gosu.
It runs well. But I am planning a contest next month, and I think rrobots (tk) is better form me now, because rrobots-gosu dont't have different color for robots and there is no energy list (score board in the upper corner).
I saw some examples in tutorials for adding sound with gosu. It looks easy.
I made a "quick and dirty" debian package for gosu:
https://sourceforge.net/projects/tallergnulinux/
I can improve it with some feedback and time.
|
By: Diego Brengi
Unofficial Debian package for rrobots [ reply ] 2008-09-12 01:49
|
I started using rrobots a month ago.
I create a custom Debian Package for installing rrobots in my system, using etch. Maybe also works for Debian testing and Ubuntu.
It is available in the download section from:
https://sourceforge.net/projects/tallergnulinux/
(package rrobots)
The ruby code has some minor changes, according to my needs, for:
-Adding sound effects calling an external wav player (very ugly).
-Change font size for energy levels in the arena.
-Directory Independence.
Feedback is welcome (Warning: I am not a ruby programmer).
|
|
 |