Not logged inGosu Forums
Forum back to Help Search Register Login
Up Forum
1 2 Previous Next  
Topic Wizardz: the PvP energy management game! By Dahrkael Date 2016-10-30 11:33
heya jlnr,
didnt knew about Galcon, I'll give it a go, looks fun!

Im using draw_quad because attacks can be diagonal, and I think you can't rotate draw_rect. the array.sample thing is good to know, my ruby knowledge is so 1.8.7/1.9.2

Find someone to play with! I promise it can actually be fun. Maybe I'll add it network support for the sake of it
Topic Wizardz: the PvP energy management game! By Dahrkael Date 2016-10-29 15:48
Hello everyone! long time no see.
Below this fancy name you will find a game I made the other day in around 6 hours, based on a dream I had the previous weekend.

Is somewhat similar to the classic <spend points in things that will get you more points, then destroy the other players> mechanic.
I think is a nice strategic game, even if its a 5-minutes-play-then-delete!

The game uses no images at all, everything is drawn using ::draw_triangle and ::draw_quad methods, if you let the sounds out, its just a .rb file with around 800 lines.

Here you can find the files, README included with a better description and a windows exe made with Ocra:

Feedback appreciated! I made this quick, but not too dirty, so theres room to improvements (I could easily put more players, bigger&complex scenarios, etc)
Attachment: preview.png (73k)
Topic One Hit KO By Dahrkael Date 2016-05-05 22:37
looking forward to this
Topic Something went terribly wrong... By Dahrkael Date 2015-12-26 23:51
looks like its drawing the lines as quads and all of them have the same origin, weird and cool looking!
Topic How to add video support to Gosu By Dahrkael Date 2013-08-21 21:54
I'd suggest the Theora Playback Library ( ) which works on all platforms without changes. I played around with it and Gosu some time ago (C++) and it worked pretty fine (via software and via OpenGL).
Also theora is open source, so no license problems.
Topic How to add video support to Gosu By Dahrkael Date 2013-08-20 18:56
ruby or C++?
Topic Is there a way to create outlined text? By Dahrkael Date 2013-07-17 11:45
drawing the text 5 times like jlnr said will give you a better looking, using scaled text to outline looks a bit weird
Topic Antialiasing in Gosu By Dahrkael Date 2013-05-08 12:08
you can use Gosu::enable_undocumented_retrofication
I think thats the name of the function, or something similar, to keep the aliasing out
Topic Multiplayer Ruby game possible with UDPSocket? By Dahrkael Date 2013-04-07 15:58
why dont you use the udp sockets directly throught Internet instead of tunneling?
Topic [Solved] Gosu and french By Dahrkael Date 2013-03-05 13:15
does the text.unpack('C*').pack('U*') still work?
Topic Out of focus By Dahrkael Date 2013-02-07 14:06
are you telling me keyloggers are just imposible on Windows? ;x
Topic "require 'player' " in my_game.rb By Dahrkael Date 2013-01-16 22:46
because starting from ruby 1.9.1 they removed the current directory from the array with the paths ( $: ).
an easy fix is to put this at the beginning
$: << "."
Topic gosu.NET By Dahrkael Date 2012-11-03 21:09
I think you missed part of the initial message
"That way it could run on all the Microsoft products (Windows, Xbox 360, Windows Phone)"
good luck using .net bindings from c++ in the xbox or wp
Topic gosu.NET By Dahrkael Date 2012-10-31 14:38
that would mean to rewrite the whole library in .net, so not a good idea.
Topic Son of Sword By Dahrkael Date 2012-09-15 19:33
pretty impresive
Topic Playing some sort of cutscene in games By Dahrkael Date 2012-08-19 09:29
so you are making a video codec? :D
Topic Protecting Ruby code in a published application By Dahrkael Date 2012-08-17 11:16
jlnr is right, maybe you want to protect not the code, but what the code does.
Topic Stamp an object? By Dahrkael Date 2012-04-16 15:21
you can draw an image multiples times, just call image.draw with different position
Topic Source for graphics/sprites for Gosu By Dahrkael Date 2012-03-01 16:46
Open Game Art
Topic Alpha Channel (LD#18) v1.4.0 By Dahrkael Date 2011-11-23 19:16
just played a bit with this new version, cooler graphics since the last version i played.
as a side note, when i closed it clicking the X the process kept running on the background, ocra bug?
Topic Problema con la documentacion de gosu! By Dahrkael Date 2011-10-04 13:13
yes, everything is legal :D
Topic Problema con la documentacion de gosu! By Dahrkael Date 2011-10-03 13:37
si, la libreria avanza mas rapido que la documentacion, asi que hay muchas cosas que no estan documentadas me temo, por lo visto esto cambiara en un futuro proximo.
Respecto a instalar desde codigo, gosu es una gema binaria y por tanto necesitas tener instalado Visual Studio para compilarla, en el repositorio tienes un .vcproj
Por ultimo, creo que no, que hay algunas pruebas con macruby pero que actualmente solo funciona con el interprete estandar.

como ha dicho siondream, es preferible que preguntes en ingles, ya que apenas hay dos espaƱoles por aqui.
Topic Set image transparency By Dahrkael Date 2011-09-28 16:41
i tested the snippet and it crashes after some seconds.

>ruby test.rb

test.rb:13:in argb': Wrong arguments for overloaded method 'Color.argb'. (ArgumentError)
Possible C/C++ prototypes are:
    Gosu::Color Color.argb(Gosu::Color const *self)
    Gosu::Color Color.argb(Gosu::Color::Channel a, Gosu::Color::Channel r, Gosu::Color::Channel g, Gosu::Color::Channel b)
    Gosu::Color Color.argb(std::tr1::uint32_t argb)
  from test.rb:13:in
  from test.rb:18:in `<main>'

>Exit code: 1

Topic Set image transparency By Dahrkael Date 2011-09-26 20:18
use the Color class instead of a fixnum
Topic Windows executable By Dahrkael Date 2011-08-09 18:17
ask someone from this board to do the exe for you.
Topic Sample vs SampleInstance/Channel/Playback By Dahrkael Date 2011-08-07 14:58
me being one of those who asked the difference, I think that the word Instance makes more sense than channel or playback.
maybe you could name it SamplePlayback? sounds less tech
Topic A Platformer! (my first game, be nice) By Dahrkael Date 2011-07-22 11:46
just tried it, is not _that horrible_, i played a lot of games worst than this one. I miss the movement animation though, maybe you can use the standing sprite and the jump sprite to make a weird leg movement.

by the way, i needed to add $: << "." to Main.rb because I dont know why the Windows ruby doesnt include the script path so it cant find the lib/ scripts.
Topic WhirlyGigs By Dahrkael Date 2011-07-07 10:32
hey, i never thought about this gameplay, nice game.
I found that using your known bug, you can move the three sliders at the same time, that draws really cool stuff.
Topic About "translate(x, y, &drawing_code)" & about fullscreen... By Dahrkael Date 2011-05-22 12:12
1. no, it works with just gosu
the & refers to a block, so its used like translate(x, y) { drawing code } i think you can pass a Proc too, but not sure

2. i think theres no clean and stable way of doing that right now
Topic Ruby OpenGl Tutorials By Dahrkael Date 2011-04-11 17:41
it works now \o/
Topic Ruby OpenGl Tutorials By Dahrkael Date 2011-04-09 09:16
yes it is
Topic Ruby OpenGl Tutorials By Dahrkael Date 2011-04-08 21:19
Microsoft Windows XP SP3 [VersiĆ³n 5.1.2600]
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

it loses the texture after a few seconds, i think its always at the same moment.
Topic Ruby OpenGl Tutorials By Dahrkael Date 2011-04-07 19:44
the cubes of lesson08 and lesson07 after few seconds lose the textures and turn into a white cube, gosus fault?
Topic ruby-opengl gem for Windows By Dahrkael Date 2011-04-03 11:29
i downloaded the ruby-opengl-0.60.1-x86-mingw32-ruby19.gem from rubyforge, installed it and replaced the folder. now everything works perfectly \o/
Topic ruby-opengl gem for Windows By Dahrkael Date 2011-04-02 19:15
ruby doesnt detect it :|
gem list --local doesnt show it and examples doesnt run.
.gem somewhere? <.<
Topic ruby-opengl gem for Windows By Dahrkael Date 2011-03-31 18:09
id love those working binaries, too many steps <.<
Topic Gosu implementation of RGSS By Dahrkael Date 2011-02-09 18:57
theres a crossplatform ruby gem for midi playback

you can try it and tell us if it works.
Topic Gosu on Linux Magazine By Dahrkael Date 2010-12-02 17:19
yay spanish \o/
Topic Freegemas - Open source Bejeweled clone By Dahrkael Date 2010-07-18 10:04
looks really nice to be made in one night, but its hard t.t
Topic Captain Ruby with Wall-jumping Ability By Dahrkael Date 2010-02-17 23:12
i have it!
Attachment: (35k)
Topic ZOMFG!!! ZOMBIEEEEES!!!!!11!oneone!1 By Dahrkael Date 2010-02-07 20:27
in the windows version ruby doesnt need the "require zlib", you can use Zlib:: directly, could be that.
Topic ZOMFG!!! ZOMBIEEEEES!!!!!11!oneone!1 By Dahrkael Date 2010-02-07 17:44
no problem, i already attached the screenshots.
whats the problem with zlib? :O
Topic AIG 2009 By Dahrkael Date 2010-01-06 11:43
wow, i wouldnt expect a second rank :O
i must admit that my prey looks like a cheat (at least with the default hunters) when they start doing circles (i hoped the other hunters wont do that).
My prey is inspired in those guys:

Who make the same, when the bull is coming they run in a rect angle, the prey should make the exactly the same, but the acceleration is too low to be stopped when the hunters are coming.

Congratulations to the others (especially ippa, who known how make a smart hunter), i will be waiting AIG 2010 to make something cool (and no sooo simple :P).

PD: Lets play with the .tgz
Topic Need your opinions: Tile Map saving By Dahrkael Date 2010-01-01 11:42
why dont you use groups of 3 numbers per tile?
for my zombies game i made a tilemap class which allows 1000 different tiles, because each tile is represented by 3 numbers (000, 457, etc).
you only need to parse the array from 3 to 3.
Try it, is cool.
Topic Deathly Dimensions By Dahrkael Date 2009-12-19 12:59
the problem is in


and the rest of @window.game_ops['something']
Topic Deathly Dimensions By Dahrkael Date 2009-12-19 11:58
source from command line.
Topic Deathly Dimensions By Dahrkael Date 2009-12-18 09:20
Microsoft Visual C++ Runtime Library
Runtime Error!


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

thats the error. Happens when i try to load any map (level1.txt, level2.txt, level14.txt, etc).
Im using ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] (yes, im cool) in WinXP SP3 and lastest gosu.
any idea?
Topic Deathly Dimensions By Dahrkael Date 2009-12-17 12:55
i got a "runtime error, this program wants to terminate" or something like that when i clicked "level1.txt" to play it :/
Topic - online high scores for your Gosu game By Dahrkael Date 2009-12-09 16:11
I think you can use any number of letters, or at least that was what I read in #gosu.
Topic Ostatni Bastion By Dahrkael Date 2009-11-23 15:07
some type of auto-climb ladders, i stopped playing because the ladders ;_;

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill