Starfield Simulation Revisited

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 51
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Starfield Simulation Revisited

Post by Hutchboy » Wed Jan 24, 2024 2:47 am

Hello,

There is a discussion in the forums with the topic title "Starfield Simulation" but it is 10 years old now, so I thought it best to create a new topic.

Attached is my stack for implementing a star field with stars emanating radially from the center and some suggestions for potential modifications and uses in the instructions. See the stack script header for additional references.

Happy coding,

Mike
Attachments
Starfield Warp Animation.livecode.zip
(17.14 KiB) Downloaded 40 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Starfield Simulation Revisited

Post by dunbarx » Wed Jan 24, 2024 4:05 pm

Hi.

I tried something sort of in reverse, to duplicate the opening scene in the original "Star Wars" where a smoothly scrolling field of text narrowed and reduced its contents in textSize as it went along and disappeared into oblivion. This was about 14 years ago. Not perfect, as I recall.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Starfield Simulation Revisited

Post by richmond62 » Mon Jan 29, 2024 1:51 pm

a smoothly scrolling field of text narrowed and reduced its contents in textSize
Um: I wonder if a series of fields each above the next in a group might not be a bit easier: no having to make the field appear trapezoidal, no having to set the textSize for individual lines.

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: Starfield Simulation Revisited

Post by SparkOut » Mon Jan 29, 2024 3:16 pm


richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Starfield Simulation Revisited

Post by richmond62 » Mon Jan 29, 2024 3:39 pm

In a Starfield time moves differently. 8)

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Starfield Simulation Revisited

Post by stam » Mon Jan 29, 2024 3:46 pm

Hutchboy wrote:
Wed Jan 24, 2024 2:47 am
Hello,

There is a discussion in the forums with the topic title "Starfield Simulation" but it is 10 years old now, so I thought it best to create a new topic.

Attached is my stack for implementing a star field with stars emanating radially from the center and some suggestions for potential modifications and uses in the instructions. See the stack script header for additional references.

Happy coding,

Mike
Hi Mike, you're posting nice stuff :)

The only suggestion I would make is it would be good to have adjustable speed.
This works so much smoother if you reduce the delay in updateStars to 25 milliseconds and even better to 10 milliseconds

Code: Select all

send "updateStars" to me in 10 milliseconds
creates a more mesmerising effect I recon ;)
perhaps add a slider or similar to do this? Could be a vertical slider on the side of the screen like a kind of throttle?

Stam

Post Reply

Return to “Games”