|
Post by cgonzalez on Sept 19, 2017 13:25:48 GMT
Hi,
I started working on a Pacman clone to Learn and have fun with this marvelous tool called agd, but I need to ask for some help on sprites subjects.
I designed my game using custom blocks for points on the maze and by using putblock I can remove them as Pacman moves over them (Adventure mode).
I'm no sure if this is the best approach,so I'm open to ear some advices.
The problem with putblock is that it corrupt the background if is used where a Sprite is already placed, so I've to call right next where Pacman will move. Does someone know a trick to bypass this little issue as when Pacman moves next to a ghost the corruption happens again and I can't do that trick.
Also I will like to know of it possible to draw the Sprites over the background with an OR, think for the case of ghost moving over points on the maze. The ghost have the background dots drawn in them.
Regards
|
|
|
Post by alessandro on Sept 19, 2017 17:11:14 GMT
Hi, did you try using the DIG instruction instead of PUTBLOCK? I.e. having the dots set as "fodder" blocks and making Pacman "dig" into them to make them disappear. As for your second question, the AGD engine does not allow for sprite masking, but you could design the ghost sprites so that they XOR the dots when passing over them; of course this means ghost sprites should move 8 pixels (a character block) a time. Take a look at this example:
|
|
|
Post by cgonzalez on Sept 19, 2017 19:14:44 GMT
Yes, I've tried with dig instruction but that will block ghosts from moving on the other side.
Ghosts are using pixel movement also....
|
|