From: | Joris Kempen |
Date: | 31 Aug 2000 at 18:24:49 |
Subject: | Re: Game technique |
Hello Tak
On 25-Aug-00, you wrote:
> 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.
I decided to try to work work with blits... Now i really can't find that
much of examples
of it. I used the example for the ACM... it's quite old but i worked on my
Storm compiler.
But i have some questions: in this example they don't open a screen for
doing the blits... they
just activate a new view. How can i use a bitmap on a screen that i open?
Other question: there are just blitting some simple brick and do this for
150 times. They first draw
the image self using Draw from the OS. But how can use something i have
drawn in example PPaint... I know there is an option to save data as
C-source in ppaint. Put this in a file and then what? How to use this data
for the blit operation???
BTW i really did some searching on anything about game/graphics coding in C.
Anyone know some good resources for this? I searched at aminet... found some
stuff
but not any on games. Also searched Amiga Directory at www.amiga-news and
looked
at AmigaUniversity www.amigau.com Did a search with Google using: "amiga
programming"
not that much good links. At last there is our source repositry but AFAIK
there not much about
games/graphics. Maybe there could be some contributions for it????
Thanks
Joris