Mucking around with parallax code
I’m not really a coder, but I don’t want to have to wait to see how the background art will look when it scrolls - and I want to troubleshoot it before it gets to Dustin. So I made a little Processing sketch to see how the landscape will scroll.
It’s not perfect, can only do horizontal (not vertical parallax), and has a weird bug, but effectively gets the job done.
You can use it for your project, just replace “homebase_background_0x.png” with your own file names in the Processing directory. Backgroundpic5 = the most distant part of the image, backgroundpic = the closest. Make sure the files are all the same size and are at least 800x800 px.
Uh, if you have less than 5 pictures…just delete the other sections? If you have more, add more sections and change the variables in the formula? Crap! I’m not really a coder!!!
https://drive.google.com/open?id=1iljbYzBnrxo4iI6ib9gS7tV27N3WciKF