My code so far is looking ok but still has a few problems and i am yet to add sound.
I have shown my progress to the tutors what i have done and got some feedback.
I could not find a way to make it so when two different coloured circle touch they make a new colour. This is because the code in processing program for this is insanely complicated. My solution to this was to make the transparecy of the circle a less, so when they touch the still form a different colour. The background i have so far is white but i changed it to black as it made the colour of the circles stronger and when the colours over lap the trandspareny effect is a lot brigther and more effective. I have so many circles which means i have to write out code for when each circle touched one another.
I have 5 circles and 3 colours (5x3=15)
The 1st red circle must touch the other 4 red the 5 blue and the fiev green (4+5+5=14)
so that 14 lines of code.
Then the 2nd red circle must touch the other 3 red, 5 blue and 5 green (3+5+5=13)
It then goes on for each circle(14+13+12+11+10+9+8+7+6+5+4+3+2+1=105)
That means i have to write 105 lines of code!!!
I was recommended to learn what an array was because it would let me create informatiion of a Circle using a class meaning in could tell the computer simple when a circle touched a circle it does what i want it to.
No comments:
Post a Comment