Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Exhumator

Starfield

Recommended Posts

Hey, i've found very nice javascript code http://www.chiptune.com/starfield/starfield.html and i am trying to recode it to the GSAP. I am not sure how to make it.

When you open the link, you can move your mouse over the screen, the direction will change. When you scroll down/up you will change speed (forward/backward). Also, you can click the mouse button (and hold it), so you can see star trail. I would like to create this in GSAP but with some controls (speed, direction, trails - on/off).

 

How to make it? Where to start? Do i need to use pixi (because it looks quite hard for performance)?

Link to comment
Share on other sites

Hey exhumator,

 

You can look at the code in the head of the page there to see his approach. Legally you're not allowed to copy his code but it would help give you insight as to how to approach it. Alternatively email the creator (rez@lol.pm) and ask him if you can use it and what your purposes are for it. 

 

You don't need to use pixi. I highly recommend using <canvas> (like he did) or WebGL though. 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×