1. Game Prog. NEED HELP

Hello,
    Man is Euphoria a great language.  I'm only 14 and I have started
programming games in under a month (crappy, but satisfying) .  I am still
entirely an amateur at it though.  I have a few questions.  First what is the
best way to animate in Euphoria, you know like in my game.  Will GIF files
work, the kind I use on the net.
    My other question is why is the color so messed up in DOS.  I started
noticing it with some of my programs, so I did a little test.  I made like 15
bars of colors in the windows paint program, saved it in 256 mode and then
ran it in Euphoria in 256 mode.  They were extremely messed up!  Is there a
remedy for this?

-Dan
P.S.  I'm all for a net chatt room about Euphoria like the other guys on the
list were talking about.  Lets set a time and place.

new topic     » topic index » view message » categorize

2. Re: Game Prog. NEED HELP

On Fri, 12 Jan 2001, Undetermined origin c/o LISTSERV administrator wrote:

> Hello,
>     Man is Euphoria a great language.  I'm only 14 and I have started
> programming games in under a month (crappy, but satisfying) .  I am still
> entirely an amateur at it though.  I have a few questions.  First what is the
> best way to animate in Euphoria, you know like in my game.  Will GIF files
> work, the kind I use on the net.

I believe there's a GIF reading library, but AFAIK it doesn't do animated
GIFs, if that's what you're thinking. I haven't done much
game programming for a long while, so I don't know what the best way to
animate stuff is in Euphoria.

>     My other question is why is the color so messed up in DOS.  I started
> noticing it with some of my programs, so I did a little test.  I made like 15
> bars of colors in the windows paint program, saved it in 256 mode and then
> ran it in Euphoria in 256 mode.  They were extremely messed up!  Is there a
> remedy for this?

Did you set the palette?

>
> -Dan
> P.S.  I'm all for a net chatt room about Euphoria like the other guys on the
> list were talking about.  Lets set a time and place.

Jeff Fielding

new topic     » goto parent     » topic index » view message » categorize

3. Re: Game Prog. NEED HELP

Hi Dan,

> First what is the best way to animate in Euphoria, you know
> like in my game.  Will GIF files work, the kind I use on the net.

What I did for the couple of very simple games I wrote
was to:

1.  Create a number of images to be used as frames in the animation
and save them as bmp files.

2.  Load all these bmp's in my program, (I used a sequence to hold
the reference for each frame)

3.  Everytime (or 2nd, 3rd - depending on how fast you want to
animate your sprites) through your main game loop add 1 to
a counter (if > max then move 1 to counter) and display the image
associated with the sequence loaded above.

This might not be the best way of doing it but it works for me.
If your interested check out euAllegro Games Pack which can
be found through the RDS Contributions page.


Also you might want to look at some of the game/graphics libs available.

I wrote euAllegro - so I'll suggest that one :),
there is also Neil, Exotica, EuSDL,  Open GL wrappers, Morfit for Euphoria,
Jarod, etc etc etc

Actually someone not associated with any of these might like to do a review
giving the pros and cons of each system??

>     My other question is why is the color so messed up in DOS.  I started
> noticing it with some of my programs, so I did a little test.  I made like
15
> bars of colors in the windows paint program, saved it in 256 mode and then
> ran it in Euphoria in 256 mode.  They were extremely messed up!  Is there
a
> remedy for this?

As Jeffrey mentioned you need to load the palette associated with your
images.

Most images have a palette associated with them.  This is an RGB map which
defines the actual colours to be displayed.

You will also have to ensure all your graphics use the same palatte so each
image
doesn't screw other images palettes.

The euAllegro distribution comes with a program called "fixpal" (from
memory)
which given a series of images will make a common palette for all.

Ray Smith

new topic     » goto parent     » topic index » view message » categorize

4. Re: Game Prog. NEED HELP

----- Original Message -----
From: Ray & Debbie Smith <smithr at IX.NET.AU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, January 12, 2001 1:56 PM
Subject: Re: Game Prog. NEED HELP


> Hi Dan,
>
> > First what is the best way to animate in Euphoria, you know
> > like in my game.  Will GIF files work, the kind I use on the net.
>
> What I did for the couple of very simple games I wrote
> was to:
>
> 1.  Create a number of images to be used as frames in the animation
> and save them as bmp files.
>
> 2.  Load all these bmp's in my program, (I used a sequence to hold
> the reference for each frame)
>
> 3.  Everytime (or 2nd, 3rd - depending on how fast you want to
> animate your sprites) through your main game loop add 1 to
> a counter (if > max then move 1 to counter) and display the image
> associated with the sequence loaded above.
>
> This might not be the best way of doing it but it works for me.
> If your interested check out euAllegro Games Pack which can
> be found through the RDS Contributions page.

Hey, it works for me! I've used this in a few "games" and it seems just
ducky.

-Thomas

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu