English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 10 May 2021, 20:36   #1
thyslo
Registered User
 
Join Date: Apr 2018
Location: Germany
Posts: 189
Overlapping BOBs

I've just created a simple, basic bob engine that works on a static, non-moving screen.

The bob engine knows about the background imagery, so every frame when a bob has moved the following is done:

1) Restore background on the Bobs current location with a single A->D blit
2) Do a cookie-cut blit to paint the bob to its new location

Now from time to time it is needed that some bobs overlap each other. This is not possible with my current solution.

I have no idea how to fix this.

How is this topic generally handled in Amiga games when using the blitter?

(I know that the graphics.library / GELs bobs can do it properly but that comes at the price of being very slow..)
thyslo is offline  
Old 10 May 2021, 20:53   #2
Jobbo
Registered User
 
Jobbo's Avatar
 
Join Date: Jun 2020
Location: Druidia
Posts: 387
Sounds like you just need to restore all the bob backgrounds in one first pass.

Then cookie cut all the bobs after that in a second pass.
Jobbo is offline  
Old 10 May 2021, 21:09   #3
thyslo
Registered User
 
Join Date: Apr 2018
Location: Germany
Posts: 189
Yeah this could do it. Thank you:-)

I'll look at my bob engine and see if it can be changed into a two-pass behavior.
thyslo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bits n Bobs Kin Hell MarketPlace 12 28 May 2020 13:09
New tutorial on BOBs Yragael Coders. Tutorials 9 15 August 2018 00:00
Clipping bobs roondar Coders. General 18 24 September 2015 09:54
FS: Various bits n bobs jujasi MarketPlace 0 12 July 2009 19:13
Bobs Garden Big-Byte Amiga scene 7 26 October 2002 11:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06780 seconds with 15 queries