English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 13 December 2023, 21:36   #1
Havie
Registered User
 
Havie's Avatar
 
Join Date: Mar 2012
Location: UK
Posts: 1,894
Best Way to do a snow effect

As the title says - what is the best way to do a snow effect in BB2 wihtout using up lots of CPU time?
Havie is offline  
Old 14 December 2023, 11:41   #2
aNdy/AL/COS
Registered User
 
aNdy/AL/COS's Avatar
 
Join Date: Jan 2022
Location: Wales
Posts: 91
What type of snow effect do you want? Falling 'dots' or a snowflake image?

As you probably know, there are a couple of source code examples that come with the Blitz2 install that could be easily modified. 'smoothscrolling.bb2' scrolls a screen of dots with the mouse. With some mods, this could easily be snow continually falling down the screen. There are a couple of examples also that bounces balls around the screen. Replace the ball with a snowflake image and just move it down and instant snow effect. On the 'BUM' disks somewhere there are some code examples displaying some nice parallax star field effects that again could be modified quite quickly into snow.

Of course, the CPU time question depends on what else may be happening as well?
aNdy/AL/COS is offline  
Old 14 December 2023, 12:59   #3
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 863
There's probably a way to multiplex a sprite across the screen using manual entries in the copper list but that is something I haven't managed to get my head around in Blitz. Although I am using sprites for a similar effect (but using 8 sprites full screen v height and alternating sprite horizontal positions every other frame which flickers but works)
Coagulus is offline  
Old 14 December 2023, 21:01   #4
pink^abyss
Registered User
 
Join Date: Aug 2018
Location: Untergrund/Germany
Posts: 408
The sprite idea is good. Like here:
[ Show youtube player ]
pink^abyss is offline  
Old 14 December 2023, 21:55   #5
rothers
Registered User
 
Join Date: Apr 2018
Location: UK
Posts: 487
I'd just use colour cycling on a prerendered screen of dots. 16 colours should get you a great result.
rothers is offline  
Old 14 December 2023, 23:32   #6
Havie
Registered User
 
Havie's Avatar
 
Join Date: Mar 2012
Location: UK
Posts: 1,894
Thanks Guys - I had forgotten about the Blitz examples but I fear they may be too slow?

Sprites was my first thought but as multiplexing isn't an option (or no one has worked it out in Blitz), I'd only have 8!

I was thinking something along the lines of what Pink showed - I can easily program the falling down with random movement effect but I don't think I can do this on top of my (admittedly simple) x-mas game.

I was thinking that I could do a dual playfield and hardware scroll the the top playfield to make snow but then I would be reducing my colours on the background to only 8.

I'll try plotting them first and see what it looks like!
Havie 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
Snow Bros Galahad/FLT request.Old Rare Games 79 19 September 2010 22:02
Snow Bros AGA span request.Old Rare Games 33 19 May 2009 23:14
Snow Joke Galaxy request.Old Rare Games 1 01 October 2005 13:29
Snow in The Zone MethodGit project.EAB 13 17 December 2001 21:46

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 19:28.

Top

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