Forum
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
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:
https://github.com/Dahrkael/toys/tree/master/wizardzhttps://github.com/Dahrkael/toys/raw/master/wizardz/wizardz.exeFeedback appreciated! I made this quick, but not too dirty, so theres room to improvements (I could easily put more players, bigger&complex scenarios, etc)
looks like its drawing the lines as quads and all of them have the same origin, weird and cool looking!
I'd suggest the Theora Playback Library (
http://libtheoraplayer.cateia.com/wiki/index.php/Main_Page ) 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.
drawing the text 5 times like jlnr said will give you a better looking, using scaled text to outline looks a bit weird
you can use Gosu::enable_undocumented_retrofication
I think thats the name of the function, or something similar, to keep the aliasing out
why dont you use the udp sockets directly throught Internet instead of tunneling?
does the text.unpack('C*').pack('U*')
still work?
are you telling me keyloggers are just imposible on Windows? ;x
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
$: << "."
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
that would mean to rewrite the whole library in .net, so not a good idea.
so you are making a video codec? :D
jlnr is right, maybe you want to protect not the code, but what the code does.
you can draw an image multiples times, just call image.draw with different position
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?
yes, everything is legal :D
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.
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
draw'
from test.rb:18:in `<main>'
>Exit code: 1
use the Color class instead of a fixnum
ask someone from this board to do the exe for you.
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
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.
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.
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
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.
the cubes of lesson08 and lesson07 after few seconds lose the textures and turn into a white cube, gosus fault?
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/
ruby doesnt detect it :|
gem list --local doesnt show it and examples doesnt run.
.gem somewhere? <.<
id love those working binaries, too many steps <.<
looks really nice to be made in one night, but its hard t.t
in the windows version ruby doesnt need the "require zlib", you can use Zlib:: directly, could be that.
no problem, i already attached the screenshots.
whats the problem with zlib? :O
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:
http://ecodiario.eleconomista.es/imag/efe/2008/07/30/1404234w.jpgWho 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
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.
the problem is in
@window.game_ops['dash_right']
and the rest of @window.game_ops['something']
source from command line.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program:
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?
i got a "runtime error, this program wants to terminate" or something like that when i clicked "level1.txt" to play it :/
I think you can use any number of letters, or at least that was what I read in #gosu.
some type of auto-climb ladders, i stopped playing because the ladders ;_;
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill