From: | Tak Tang |
Date: | 25 Aug 2000 at 16:31:39 |
Subject: | Re: Game technique |
On Wed, 23 Aug 2000 14:24:13 +0200, Joris Kempen <Trekker@studenten.net> wrote :-
> I want to make my first game for the amiga. I want it to be a pacman clone.
> But i have completely no clue about graphics stuff on the AmigaOS. When i
> read the
> RKRM i don't get a clue either.
> For example to make a game system: how to draw the "ghosts", "pacman" and
> the "walls".
> Do you use sprites for it or bobs? Or blit everything to the screen....
> I really don't have a clue to start...
Sprites are VERY FAST, but limited in number of colours, max width of sprite, and number of sprites available per screen (actually, per scan line, but I wont demonstrate my ignorance by trying to explain it). I would be tempted to avoid them.
BOBS are really cool, in theory. I have never managed to get any of the examples to work though.
So I would use blits.
Next thing to decide is whether to use your own screen, or a window. I would go for a screen myself, so I can use my own palette instead of messing around with palette sharing, but on the other hand, its not that much more work.
You might consider deciding on the size of everything (eg 16x16), and making all your objects multiples of that. eg wall units are 16x16. Ghosts and PacMan are 32x32. Have an array in memory which stores the grid. Have a bitmap which holds all the graphics, and blit them according to what is in the maze array.
Tak
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************