BBC Pooyan

developing/porting a new game or gaming framework? post in here!
User avatar
Arcadian
Site Admin
Posts: 3340
Joined: Fri Nov 24, 2000 12:16 pm
Contact:

Re: BBC Pooyan

Post by Arcadian » Wed Jun 24, 2020 3:49 pm

Ooh, lovely!

Though I'm afraid I managed to mess the lightning up (it's lost its 'outline') so you might want to rework the changes into an earlier draft (sowwy!).
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk

Naomasa298
Posts: 355
Joined: Sat Feb 16, 2013 12:49 pm
Contact:

Re: BBC Pooyan

Post by Naomasa298 » Wed Jun 24, 2020 3:51 pm

You guys beat me to it.

How's this?
pooyan.png
pooyan.png (12.94 KiB) Viewed 843 times

User avatar
Arcadian
Site Admin
Posts: 3340
Joined: Fri Nov 24, 2000 12:16 pm
Contact:

Re: BBC Pooyan

Post by Arcadian » Wed Jun 24, 2020 3:58 pm

Snuggsy187 wrote:
Wed Jun 24, 2020 3:42 pm
...... hmmmm, the choices !
You know I think I like this one:
Pooyan_C64_Loader_modified_D.png
Pooyan_C64_Loader_modified_D.png (8.86 KiB) Viewed 841 times

(I've made the red balloon the one furthest away from the [red] wolf, magenta balloon far away from the pigs etc etc).


Maybe we need a poll to decide the best balloon layout once and for all? :lol:

[Edit - didn't see your draft Shane before I posted, I think that's my new favourite, like what you did with the branches!]
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Wed Jun 24, 2020 4:08 pm

Thanks both - think I prefer the one with the cyan background - just brightens things up a bit. And you can now see the tree.
Excellent =D>

Unless anyone else has any other versions...... :lol:
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Fri Jun 26, 2020 11:47 am

Just a little update on progress.....

Apart from getting sidetracked regarding all the different tunes from the original arcade...... :D

After refining a couple of sprite routines, have now got 4 wolves running around. Still pondering the masking - as they tend to disappear when in front of the tree ! Also the sprite movement could be better - thought I may get away with 4bit movement. Will move down to 2bit and see.... (They don't actually move that fast in general on the arcade version)

Was expecting a bit of a lag-fest, but no, it's still behaving ok.....! :shock:

Next on the list..... having them turn round. May double up the sprites, or use a flip routine - haven't decided yet !

It's all going too well....... :?

Pooyan02.gif
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Fri Jun 26, 2020 5:28 pm

Very nice

i suppose the problem will be to display as many sprites as the arcade version...

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Fri Jun 26, 2020 6:15 pm

Thanks drfloyd.

Exactly..... had six wolves running around and the last one has some flicker.
Time for the dreaded (never done this bit before) vsync/interrupt stuff ! :?

Also, been converting x/y coordinates into screen addresses for every sprite print - time to ditch that I think ! :shock: :lol:

Still need to add balloons, rocks, score flashes and stuff, so there's going to be a lot going on (hopefully !)
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

Naomasa298
Posts: 355
Joined: Sat Feb 16, 2013 12:49 pm
Contact:

Re: BBC Pooyan

Post by Naomasa298 » Fri Jun 26, 2020 9:52 pm

Snuggsy187 wrote:
Fri Jun 26, 2020 6:15 pm
Exactly..... had six wolves running around and the last one has some flicker.
Time for the dreaded (never done this bit before) vsync/interrupt stuff ! :?
Explain, explain!

(so I know what to do :) )

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Fri Jun 26, 2020 10:20 pm

Me too !

In general it's osbyte &13 - wait for vertical sync before plotting all your sprites - hopefully you'll get it all done before the raster catches up..... :shock:

Tricky and kieranhj (and others) discuss some options here:
viewtopic.php?f=54&t=18132

There are probably more threads about this somewhere.....

As I say, I think there's still a lot of code I can ditch within the sprite plotting routines which should help a lot. I'll let you know how I get on.....! :D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

Naomasa298
Posts: 355
Joined: Sat Feb 16, 2013 12:49 pm
Contact:

Re: BBC Pooyan

Post by Naomasa298 » Fri Jun 26, 2020 10:33 pm

Snuggsy187 wrote:
Fri Jun 26, 2020 10:20 pm
Me too !

In general it's osbyte &13 - wait for vertical sync before plotting all your sprites - hopefully you'll get it all done before the raster catches up..... :shock:

Tricky and kieranhj (and others) discuss some options here:
viewtopic.php?f=54&t=18132
Ahh, that. That, at least, I'm familiar with (if nothing else). I remember doing it BITD (I don't do it for Legend because it's not necessary).

Good luck Snuggsy, let us know how you get on!

I got a lot of help on optimising my sprite routines here.

User avatar
Dave Footitt
Posts: 852
Joined: Thu Jun 22, 2006 10:31 am
Location: Abandoned Uranium Workings
Contact:

Re: BBC Pooyan

Post by Dave Footitt » Sat Jun 27, 2020 1:17 pm

Great work there - always found that game quite cute!

Keep it up =D> =D>

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Sun Jun 28, 2020 7:35 pm

Hmmmm..... I appear to have got sidetracked again..... :shock:

There was going to be loads of sprite print routine changes.
Instead, I just had to sort some of the music out ! :D
Pooyan-B-v02.ssd
(23.75 KiB) Downloaded 15 times
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Mon Jun 29, 2020 4:07 pm

Tried on emulator, fantastic, sounds like the arcade game.

I am still novice with BBC Master, but it is an overscan vertical screen mode ?

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Mon Jun 29, 2020 6:31 pm

Thanks drfloyd :)

I've narrowed the display width to fit the arcade resolution with:

VDU &17,&00,&01,&38,&00,&00,&00,&00,&00,&00
VDU &17,&00,&02,&56,&00,&00,&00,&00,&00,&00

This gives 28 characters per row (56 4-pixel columns), saving 6K in the process !
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Mon Jun 29, 2020 10:25 pm

ok
There is no way to add some colors ?

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Mon Jun 29, 2020 10:42 pm

You mean more than the standard 4 colours in MODE1 ?

It would need an interrupt to carry out some palette swapping - it's being discussed in the Binary Land thread.

viewtopic.php?f=53&t=19765
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Sun Jul 05, 2020 9:39 pm

ok, I suppose you do not need to improve the nb of colors ?

Naomasa298
Posts: 355
Joined: Sat Feb 16, 2013 12:49 pm
Contact:

Re: BBC Pooyan

Post by Naomasa298 » Sun Jul 05, 2020 9:59 pm

The main place more colours would be needed are in later stages where there are multiple different colours of balloons which need more hits to destroy. You could either do that with interrupts, or you could probably get away with dithering, given that this is MODE1. The resolution is higher enough.

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Sun Jul 05, 2020 11:20 pm

I must say I've been pondering about the current set of colours - there's 5 or 6 different coloured balloons in the arcade version - Mode 2 would have handled it, I just didn't want to lose the resolution of Mode 1 (or redesign the sprites !).

Interrupt tracking each balloon for a quick palette switch would be just too crazy (for me)....
I might do a slight palette change after each level just for a refreshing change of colour, although I hadn't thought about dithering the balloons. Thanks, I'll give it a try ! :D

- Edit -
A quick dither of current palette.......
Dither.gif
Dither.gif (711 Bytes) Viewed 382 times
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

Naomasa298
Posts: 355
Joined: Sat Feb 16, 2013 12:49 pm
Contact:

Re: BBC Pooyan

Post by Naomasa298 » Sun Jul 05, 2020 11:41 pm

Snuggsy187 wrote:
Sun Jul 05, 2020 11:20 pm
- Edit -
A quick dither of current palette.......

Dither.gif
I reckon that works. I'm a big fan of dithering. ;)

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Mon Jul 06, 2020 12:25 am

I noticed ! Definitely works in "Legend" ! :D

I'll throw this at some balloons and see - definitely a decent purple in there at least......
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Mon Jul 06, 2020 7:02 am

You should of course keep mode 1, for arcade visual "perfect"

dithering the balloons seems to be the solution

So exciting project ! (because it's my favorite game 80' with Juno First)

User avatar
tricky
Posts: 4361
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: BBC Pooyan

Post by tricky » Mon Jul 06, 2020 1:12 pm

You could even shade them :)

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Mon Jul 06, 2020 8:51 pm

Thanks tricky, that's a possibility :D

Got distracted again, but finally sorted out my interrupts :shock: , so I'm happy.

:D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Mon Jul 06, 2020 10:19 pm

interrupts seems magic for me

We have examples of games with interrupts to add colors ?

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Mon Jul 06, 2020 10:48 pm

Well, tricky uses it a lot in his excellent games :D

Plus, Lunar Jetman instantly springs to mind - I think it's discussed on the forums here somewhere..... Although thinking some more, this seems to be an interrupt mode change (to Mode 2 for the stat bar)......?

There's probably loads more - anyone ?
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
tricky
Posts: 4361
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: BBC Pooyan

Post by tricky » Tue Jul 07, 2020 8:12 am

If you don't go with shaded balloons, you could also go for stripes to distinguish them, or I guess numbers, letters or pictures.
When things can move up and down, it does make it hard to get more than 4 colours on screen, but you can still add a bit with interrupts and palette changes at the top and bottom just to make it feel more colourful.

User avatar
Snuggsy187
Posts: 85
Joined: Wed Apr 03, 2019 9:53 pm
Contact:

Re: BBC Pooyan

Post by Snuggsy187 » Tue Jul 07, 2020 8:19 pm

Thanks again tricky,

I've tried a few things, still not happy, but at the moment going with this....
Balloon1.gif
Balloon1.gif (1.82 KiB) Viewed 138 times
With maybe a 'night' bonus round (just to have a rest from the blue background !).... :D
Balloon2.gif
Balloon2.gif (1.82 KiB) Viewed 138 times
I think I'll leave it like this for now, get some of the Wolf / balloon dynamics done, to see what they actually look like in action on the screen.

:D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

drfloyd
Posts: 287
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Tue Jul 07, 2020 9:04 pm

not to bad for the ballons

yes, interrupts only at top and bottom, it will give illusion of a very colorfull game !

does interrupts can slow the program ???????

User avatar
tricky
Posts: 4361
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: BBC Pooyan

Post by tricky » Tue Jul 07, 2020 9:46 pm

Love the balloons.
About a 1/4 of a scanline + whatever it does.

Post Reply

Return to “new projects in development: games”