BBC Pooyan

developing/porting a new game or gaming framework? post in here!
drfloyd
Posts: 380
Joined: Tue Jun 09, 2020 3:36 pm
Contact:

Re: BBC Pooyan

Post by drfloyd » Thu Jul 09, 2020 4:25 pm

what i do not love on the original game is that the arrows can be sometimes stopped by the wolves

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

Re: BBC Pooyan

Post by Snuggsy187 » Thu Jul 09, 2020 5:57 pm

I know what you mean, but I guess that would make the game too easy ? :D

I initially thought the long white line by the wolves was a balloon string :shock: but I think it's meant to be a shield or something......
Wolf.gif
Wolf.gif (1.64 KiB) Viewed 1532 times
Last edited by Snuggsy187 on Thu Jul 09, 2020 9:06 pm, edited 1 time in total.
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by Naomasa298 » Thu Jul 09, 2020 6:56 pm

Because, you know, if you're a wolf looking to raid some piglets, the obvious thing to do is to grab a balloon, float up to the top of a tree and push a boulder (that happens to be at the top of said tree0 on to the top of Mama pig, and equip yourself with a shield because Mama pig is trying to shoot you down with a bow and arrow.

Ohhh, the Japanese...

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

Re: BBC Pooyan

Post by drfloyd » Thu Jul 09, 2020 8:53 pm

Snuggsy187 wrote:
Thu Jul 09, 2020 5:57 pm
I know what you mean, but I guess that would make the game too easy ? :D

I initially thought the long white line by the wolves was a balloon string :shock: but I think it's meant to be a shield of something......

Wolf.gif
you can perhaps remove this strange feature).... it's difficult anyway.

it's my opinion

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

Re: BBC Pooyan

Post by drfloyd » Mon Aug 03, 2020 9:12 am

no news ? So exciting by this project :)

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

Re: BBC Pooyan

Post by Snuggsy187 » Mon Aug 03, 2020 9:36 am

How time flies !

Been having some timing (and sanity) issues regarding this, but hope to press on soon. Work and general life has been getting in the way ! :shock:

Looking forward to catching up on Tricky's presentation from Saturday, especially on handling distractions !!

Pooyan03.gif
Pooyan03.gif (1.4 KiB) Viewed 1373 times
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by drfloyd » Mon Aug 03, 2020 9:45 am

We have all this problem of time... of current life... Coding is not compatible with the life :)

bloody TIME !!!!!

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

Re: BBC Pooyan

Post by tricky » Mon Aug 03, 2020 4:44 pm

I thought that lock-down would have been great for my retro coding, but it hasn't :(

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

Re: BBC Pooyan

Post by Snuggsy187 » Mon Aug 03, 2020 4:50 pm

Me too !

A colleague of mine working from home has re-landscaped his entire garden and put in a new kitchen.....

I've been at home, working !!

:(
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by drfloyd » Mon Aug 03, 2020 5:16 pm

tricky wrote:
Mon Aug 03, 2020 4:44 pm
I thought that lock-down would have been great for my retro coding, but it hasn't :(

same

it is strange

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

Re: BBC Pooyan

Post by Snuggsy187 » Wed Aug 12, 2020 8:23 pm

Yeah..... more distractions, but some progress ! :shock:

The problem was getting 6 wolves printed in a reasonable time (with no flicker). Previous versions were taking half the raster time to print them (!)

Much tinkering and recoding, and it's getting there...... (will still have to do some sort of print order depending on where the wolves are vertically I think)
Pooyan-4.gif
Ignore the quality of the image - it's a raster test.
(Red lines show raster time taken in plotting the 6 wolves - there are 6, honest), plus redrawing the billboard at top left.

Have ditched storing backgrounds and just gone for character row printing.

Next to sort out the tree not being obliterated as the wolves drop. Takes too long to reprint all the tree everytime (around 1K of it !), so will have to reprint part of it depending on where the wolf is.

Also going to try a different procedure for dropping the wolves down.......

Again, many thanks for all who have assisted with this ! =D>

Hope for another update soon ! :D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by drfloyd » Sat Aug 22, 2020 3:00 pm

great !

what does means these vertical lines ??? It is your raster test ?

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

Re: BBC Pooyan

Post by Snuggsy187 » Sat Aug 22, 2020 4:22 pm

Kieran mentions it in this topic:

viewtopic.php?f=54&t=18132&p=251913&hilit=fe21#p25191
One good trick is to use raster timing to check where the raster is on the screen whilst your code is executing. Simply set the background palette colour at the start and back to black at the end. E.g. in MODE 2:

LDA #&00+(1EOR7):STA &FE21
... run your sprite code...
LDA #&00+(0EOR7):STA &FE21

You should see a red band on the screen for the duration of the sprite plot taking place. You’ll notice that when your sprite is at the same position on the screen as the red bar then it will flicker / disappear. That’s because the code is running at the same time as the raster.
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by Snuggsy187 » Sat Aug 29, 2020 3:44 pm

Just a little update ! :)

All was going well - sorted out printing parts of the tree as tiles as and when needed, together with the 'wolves remaining' banner. Raster time was ok...... until I introduced some balloons, then the raster time went out the window again ! :evil:

So, total rethink.

I've ditched the previous way of handling the sprites and gone back to straight EOR printing. No more replacing parts of the screen when the wolves overwrite it. When EORing sprite with screen, the wolves do look a bit weird when they drop through the tree, but the raster time is ok.

Also, now everything is EOR'd, all wolf erasing and reprinting doesn't have to take place at the same time. As the wolves don't move that fast anyway (once per 4 VSyncs), I'm handling 2 wolves / balloons per VSync (as suggested by Kieran I think :D )- wolves on screen has increased to 8 ! General timing and raster greatly improved ! Still need to do some print ordering depending on where things are on the screen (there's some shearing when the carriage moves for example), but it's getting there !! :D

Plan to do a bit more, then I'll post a new SSD

Pooyan-3.gif
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
kieranhj
Posts: 921
Joined: Sat Sep 19, 2015 11:11 pm
Location: Farnham, Surrey, UK
Contact:

Re: BBC Pooyan

Post by kieranhj » Sat Aug 29, 2020 5:54 pm

Looking good! Nice to see so many wolves on screen at once, really gives it that arcade feel.
Bitshifters Collective | Retro Code & Demos for BBC Micro & Acorn computers | https://bitshifters.github.io/

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

Re: BBC Pooyan

Post by Snuggsy187 » Sat Aug 29, 2020 10:40 pm

Thanks Kieran :D

It's interesting how changing a print routine suddenly changes the entire main loop ! (Hopefully this is the last wolf handling version !)

Apparently the music for this part of the game is called "Wolf Falls", so next up is popping those balloons and getting those wolves plummeting !

:D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by tricky » Sat Aug 29, 2020 11:48 pm

I'm glad to see you pushing through, Phoenix has stopped because I couldn't motivate myself to swap out the sprite routines and Moon Patrol is suffering a similar problem.

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

Re: BBC Pooyan

Post by drfloyd » Sun Aug 30, 2020 11:03 am

8 wolfes, that's great !

I don't know how many wolfes display the arcade game ?

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

Re: BBC Pooyan

Post by Snuggsy187 » Sun Aug 30, 2020 11:43 am

Motivation does seem to fluctuate ! For me, the pig (geddit ? :lol: ) - the pig is editing the sprite data when you change the print method (some sprites are printed vertically per column, others are printed horizontally per character row).

The wolves were being printed vertically (print anywhere, per pixel row), this took too long for the number of wolves, so at the moment, they're being printed per character row (I've got 4 wolf sprites, each offset by 2 pixels). Might seem a bit crazy, but it's a lot faster !
Pooyan-4.gif
Although, now they're being printed 2 wolves per pass, I might try going back to vertical printing.........


As for the number of wolves, 8 seemed a good number, possibly haven't seen more on the arcade version (unless they're additional ones trying to push the boulder, or on the ladders to the right)
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by drfloyd » Sun Aug 30, 2020 1:10 pm

you will include the strange "shield" of the wolfes ?????

In my opinion this feature can be withdraw.

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

Re: BBC Pooyan

Post by Snuggsy187 » Sun Aug 30, 2020 3:51 pm

I think I'll stay true to the original game and keep the shields for the wolves, as being able to hit them with arrows could make the game too easy......

Maybe there'll be a hidden cheat mode so you can hit the wolves directly...... :D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by Snuggsy187 » Fri Sep 11, 2020 9:04 pm

So here's the latest progress SSD !

Arrows now hit the balloons causing the wolves to plummet ! :D
Still a lot of animation to do around this (balloon inflation and popping, wolves splatting on the ground, etc)

The flicker reduction is getting there - still a lot to do, but in general it's a lot smoother, than it was, and EASY ! I guess because the wolves are firing back or shielding !

Realised late last night the wolf movement calculations were happening just after VSYNC (!), fixed that now, can't say I've noticed much difference, but must have saved several scanlines of potential flicker :shock:

Forgot to say - the keys are * ? for up and down, press SHIFT to fire ! :D

Pooyan-4.gif
Attachments
Pooyan-B-v03.ssd
(27.5 KiB) Downloaded 19 times
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
0xC0DE
Posts: 735
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: BBC Pooyan

Post by 0xC0DE » Fri Sep 11, 2020 10:01 pm

What was your epiphany late last night?
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my demos for Acorn Electron and BBC Micro

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

Re: BBC Pooyan

Post by Snuggsy187 » Fri Sep 11, 2020 10:12 pm

Hmmmm.....

More like a sudden realisation - the bit about the wolf movement calculations being part of the print routine and being processed at VSync (oops !)
Changed it so that's all done at the END of the previous pass (nothing being printed, so it doesn't matter where the raster is !)

Right now I'm just checking ALL the moving sprites are aligned in memory not to cross the page boundary......... :shock: The main Pooyan carriage certainly isn't at the moment.......
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by Snuggsy187 » Sun Sep 20, 2020 8:28 pm

Little update,
Apart from modifying numerous print routines (again) and getting the scoring working, have finally got my head around (a little bit), Kieran's excellent IRQ presentations......

Not much (at all), but behold, 5 colours ! :D

Pooyan-04.gif
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
0xC0DE
Posts: 735
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: BBC Pooyan

Post by 0xC0DE » Sun Sep 20, 2020 8:52 pm

Snuggsy187 wrote:
Sun Sep 20, 2020 8:28 pm
Little update,
Apart from modifying numerous print routines (again) and getting the scoring working, have finally got my head around (a little bit), Kieran's excellent IRQ presentations......

Not much (at all), but behold, 5 colours ! :D


Pooyan-04.gif
Looking good Neil! The yellow text looks good. It's a small touch but a big difference.
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my demos for Acorn Electron and BBC Micro

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

Re: BBC Pooyan

Post by Snuggsy187 » Wed Oct 14, 2020 11:06 pm

It's amazing how much I've lost track of Pooyan after having a proper holiday !

Vague update, have ditched the top left banner (as suggested in the Dev session), and placed the info at the bottom of the screen. Much happier - seems a lot tidier ! Also tidied up the compressed tree print routine (manually :shock: ), that's better !

Just started the Wolf rocks trajectories - at least they're all the same (start_rock_Y generally tends to be end_rock_Y !) :D

Hope to press on now - can't have 0xC0DE having all the fun ! :D (again top work, and quick too !)
Pooyan-5.gif
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

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

Re: BBC Pooyan

Post by tricky » Thu Oct 15, 2020 1:48 pm

Looks great like that.

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

Re: BBC Pooyan

Post by Snuggsy187 » Thu Oct 15, 2020 1:59 pm

Thanks tricky :D

Definitely prefer the yellow at either end of the screen !
Changed the IRQ, sprite plotting now starts when the raster is just under the grass at bottom of screen, NOT at VSync, yay ! :D
PUSH PARCHMENT > POKE LOCK > PULL PARCHMENT

User avatar
0xC0DE
Posts: 735
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: BBC Pooyan

Post by 0xC0DE » Thu Oct 15, 2020 2:00 pm

Did someone call me? :mrgreen:
Great work again Neil, keep it up!
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my demos for Acorn Electron and BBC Micro

Post Reply

Return to “new projects in development: games”