[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: I need serious help!

Skt

7/13/2007 3:20:00 AM

Its an example of how to code one, and whys guide is free, so two birds. Although i dont know if you'd want to just skip to it without reading the guide a bit first.

-----Original Message-----
From: "Joe Wiltrout" <wiltroutja@hotmail.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: 7/12/2007 11:00 PM
Subject: Re: I need serious help!

Skt wrote:
> Why's guide has an example of a text based game, i don't know if that'd
> be any help.
>
> For me, alot of these guides i know i had issues with (especially why's
> guide) because in alot of parts i had no idea the direction he was going
> for. I'd definitley suggest googling and find which one fits.
>
> Hth
> skt

An example of text based game? Cus I know what a text based game is,
and I have played many. Or do you mean how to code one? Because knowing
how to code one hits the nail right on the head. And, like I said, I
really can't afford to buy any materials. I just need something less
complicated than all these tutorials.

--
Posted via http://www.ruby-....



13 Answers

Joe Wiltrout

7/13/2007 3:27:00 AM

0

Skt wrote:
> Its an example of how to code one, and whys guide is free, so two birds.
> Although i dont know if you'd want to just skip to it without reading
> the guide a bit first.

Ty. But why do you make a new topic for every post? If you can't find
the post button, just click post with quote, and delte the qoute.

--
Posted via http://www.ruby-....

Ben Bleything

7/13/2007 8:07:00 PM

0

On Fri, Jul 13, 2007, Joe Wiltrout wrote:
> Skt wrote:
> > Its an example of how to code one, and whys guide is free, so two birds.
> > Although i dont know if you'd want to just skip to it without reading
> > the guide a bit first.
>
> Ty. But why do you make a new topic for every post? If you can't find
> the post button, just click post with quote, and delte the qoute.

That's actually an artifact of the forum software. You're actually
using a web interface to a mailing list, here, and ruby-forum has some
bugs. Skt appears to be posting via email. It's all showing up as the
same thread for me, in my mail client.

I'd like to also take this opportunity to throw my two cents in the mix.
I agree completely with the folks who are telling you to slow down and
go one step at a time.

To go from effectively no experience to trying to do graphics
programming in a language without intermediate steps is, frankly,
madness. You need to learn the fundamentals before you can hope to
build a stable graphical game, much less a performant one.

If you're serious about game programming in Ruby, I think you'll find a
number of other people who are interested as well. But you need to do
your homework, as it were, before you dive right in. I'd suggest
starting by converting your game's mechanic into something that can be
played in text format, and building that.

This will give you a great deal of insight into the highs and lows of
your concept, as well as give you a pretty damn good familiarity with
the kinds of low-level Ruby code you'll need to write when you do the
graphical version.

Once that's done and you're happy with it, go back to your original
design and add the graphics layer.

Before any of that, though, you need to learn Ruby. Others have given
you a lot of really good suggestions. _why's guide, the Pine book,
etc. And, like James Gray said elsewhere, you need to get over your
resistance to search engines. Relying on any community to get answers
to questions that are easily findable on Google will result in the
community losing their interest in helping you.

Cheers,
Ben

Joe Wiltrout

7/14/2007 2:34:00 AM

0

Ben Bleything wrote:

> I'd like to also take this opportunity to throw my two cents in the mix.
> I agree completely with the folks who are telling you to slow down and
> go one step at a time.
>
> To go from effectively no experience to trying to do graphics
> programming in a language without intermediate steps is, frankly,
> madness. You need to learn the fundamentals before you can hope to
> build a stable graphical game, much less a performant one.
>
> If you're serious about game programming in Ruby, I think you'll find a
> number of other people who are interested as well. But you need to do
> your homework, as it were, before you dive right in. I'd suggest
> starting by converting your game's mechanic into something that can be
> played in text format, and building that.
>
> This will give you a great deal of insight into the highs and lows of
> your concept, as well as give you a pretty damn good familiarity with
> the kinds of low-level Ruby code you'll need to write when you do the
> graphical version.
>
> Once that's done and you're happy with it, go back to your original
> design and add the graphics layer.

> Cheers,
> Ben


I don't even get how to make anything work in Ruby. It all looks lke
gibberish. If I don't understand how Hello World thing works, how is it
suposed to help me learn how to make 3-d graphics and kick ass gameplay?

--
Posted via http://www.ruby-....

Todd Benson

7/14/2007 2:53:00 AM

0

On 7/13/07, Joe Wiltrout <wiltroutja@hotmail.com> wrote:
> Ben Bleything wrote:
>
> > I'd like to also take this opportunity to throw my two cents in the mix.
> > I agree completely with the folks who are telling you to slow down and
> > go one step at a time.
> >
> > To go from effectively no experience to trying to do graphics
> > programming in a language without intermediate steps is, frankly,
> > madness. You need to learn the fundamentals before you can hope to
> > build a stable graphical game, much less a performant one.
> >
> > If you're serious about game programming in Ruby, I think you'll find a
> > number of other people who are interested as well. But you need to do
> > your homework, as it were, before you dive right in. I'd suggest
> > starting by converting your game's mechanic into something that can be
> > played in text format, and building that.
> >
> > This will give you a great deal of insight into the highs and lows of
> > your concept, as well as give you a pretty damn good familiarity with
> > the kinds of low-level Ruby code you'll need to write when you do the
> > graphical version.
> >
> > Once that's done and you're happy with it, go back to your original
> > design and add the graphics layer.
>
> > Cheers,
> > Ben
>
>
> I don't even get how to make anything work in Ruby. It all looks lke
> gibberish. If I don't understand how Hello World thing works, how is it
> suposed to help me learn how to make 3-d graphics and kick ass gameplay?

Dude, learning how to program a game -- a large one at that -- doesn't
just drop into your lap like some golden egg; it doesn't sprinkle down
from the heavens like some magical faerie dust. You asked for help.
Well, most of whom you seem to be calling 'inept' teachers are aces in
the field, and they expect you to meet them half way. That's how you
learn. Comprende?

You're obviously a creative person. I'm sure you can figure out how
to use Ruby or any other language to do what you want if you give it
some time.

Todd

Chad Perrin

7/14/2007 6:15:00 AM

0

On Sat, Jul 14, 2007 at 11:34:29AM +0900, Joe Wiltrout wrote:
>
> I don't even get how to make anything work in Ruby. It all looks lke
> gibberish. If I don't understand how Hello World thing works, how is it
> suposed to help me learn how to make 3-d graphics and kick ass gameplay?

That's the point. If you don't understand how a Hello World program
works, *you need to learn at least that much* before you have any hope of
understanding some more-complex programming techniques. How about,
instead of complaining and insulting people for suggesting you learn how
to write a Hello World, you ask about how it works.

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
MacUser, Nov. 1990: "There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production."

Craig Johnson

7/14/2007 6:37:00 AM

0

Joe's been told to go learn---he didn't like that answer.
Joe's been told to go ask his friends...
Joe's been given pointers to libraries and mod environments, in ruby to use
to build games
Joe's been told about other choices.

Chad's response encapsulates this all.
take all that and go learn Joe...spend a little time...
It's NOT too hard...
Many have done it...that's the point...
you want a short cut, there really is none better then what you've been
given.

Go forth and code.


-----Original Message-----
From: Chad Perrin [mailto:perrin@apotheon.com]
Sent: Saturday, July 14, 2007 12:15 AM
To: ruby-talk ML
Subject: Re: I need serious help!

On Sat, Jul 14, 2007 at 11:34:29AM +0900, Joe Wiltrout wrote:
>
> I don't even get how to make anything work in Ruby. It all looks lke
> gibberish. If I don't understand how Hello World thing works, how is it
> suposed to help me learn how to make 3-d graphics and kick ass gameplay?

That's the point. If you don't understand how a Hello World program
works, *you need to learn at least that much* before you have any hope of
understanding some more-complex programming techniques. How about,
instead of complaining and insulting people for suggesting you learn how
to write a Hello World, you ask about how it works.

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
MacUser, Nov. 1990: "There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production."


Joe Wiltrout

7/15/2007 10:28:00 PM

0

Chad Perrin wrote:
> On Sat, Jul 14, 2007 at 11:34:29AM +0900, Joe Wiltrout wrote:
>>
>> I don't even get how to make anything work in Ruby. It all looks lke
>> gibberish. If I don't understand how Hello World thing works, how is it
>> suposed to help me learn how to make 3-d graphics and kick ass gameplay?
>
> That's the point. If you don't understand how a Hello World program
> works, *you need to learn at least that much* before you have any hope
> of
> understanding some more-complex programming techniques. How about,
> instead of complaining and insulting people for suggesting you learn how
> to write a Hello World, you ask about how it works.

ok. To humor you, I'll ask about how it works. How does the stupid Hello
World thing work? What exactly does it do? How can I apply it to making
a game? Say I wanted to make a pirate say Hello World!, how would I do
that? How would I make the pirate saying Hello World? What color should
his hat be? What is the Ultimate Question to the Ultimate Answer to
Life, the Universe, and Everything? Actually, don't tell me that. I
haven't finished reading the book yet.

--
Posted via http://www.ruby-....

Joe Wiltrout

7/15/2007 10:35:00 PM

0

But do tell me, When will people put aside their hate for people more
talented than themselves, but perhaps with less knoledge about
particular subjects, so that they can both benefit from an allience? And
how will said parties get along when one party has no idea which of the
parties they really are? And when will the party spoken of in the
previous sentance learn his/her place in the Universe, learn to read,
and learn that some people don't care about the functions of Hello
World? Free psychology lesson. Study it until you understand how it
works. Re-write it until you can say it with your mouth closed. Then
make a homeless person with no education understand it. Then write a
book about it. Only then will you be able to take classes on psychology.

--
Posted via http://www.ruby-....

Chad Perrin

7/15/2007 10:37:00 PM

0

On Mon, Jul 16, 2007 at 07:28:05AM +0900, Joe Wiltrout wrote:
> Chad Perrin wrote:
> > On Sat, Jul 14, 2007 at 11:34:29AM +0900, Joe Wiltrout wrote:
> >>
> >> I don't even get how to make anything work in Ruby. It all looks lke
> >> gibberish. If I don't understand how Hello World thing works, how is it
> >> suposed to help me learn how to make 3-d graphics and kick ass gameplay?
> >
> > That's the point. If you don't understand how a Hello World program
> > works, *you need to learn at least that much* before you have any hope
> > of
> > understanding some more-complex programming techniques. How about,
> > instead of complaining and insulting people for suggesting you learn how
> > to write a Hello World, you ask about how it works.
>
> ok. To humor you, I'll ask about how it works. How does the stupid Hello
> World thing work? What exactly does it do? How can I apply it to making
> a game? Say I wanted to make a pirate say Hello World!, how would I do
> that? How would I make the pirate saying Hello World? What color should
> his hat be? What is the Ultimate Question to the Ultimate Answer to
> Life, the Universe, and Everything? Actually, don't tell me that. I
> haven't finished reading the book yet.

At this point, I certainly don't want you to humor me.

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
Amazon.com interview candidate: "When C++ is your hammer, everything starts
to look like your thumb."

James Gray

7/15/2007 10:50:00 PM

0

On Jul 15, 2007, at 5:28 PM, Joe Wiltrout wrote:

> How does the stupid Hello
> World thing work? What exactly does it do? How can I apply it to
> making
> a game? Say I wanted to make a pirate say Hello World!, how would I do
> that? How would I make the pirate saying Hello World? What color
> should
> his hat be?

#!/usr/bin/env ruby -wKU

class Pirate < Struct.new(:hat_color)
def to_s
<<-END_HELLO.gsub(/\s+/, " ")
The #{self.class}#{", with the #{hat_color} hat," if hat_color}
says, "Avast ye scavy dog!"
END_HELLO
end
end

puts Pirate.new
puts Pirate.new("fancy black")
# >> The Pirate says, "Avast ye scavy dog!"
# >> The Pirate, with the fancy black hat, says, "Avast ye scavy dog!"

__END__

James Edward Gray II