logic: color
code (Black): g.setColor(Util.RGBToHex(0,0,0))
code (White): g.setColor(Util.RGBToHex(255,255,255))
first number in this code: red power
2nd number in this code: green power
3rd number in this code: blue power
how to code
Where to find
- code mode -
how to find:
step1 - add note on code - to make easy to learn code
example1: /*my game currently sucks*/
example2: /*upgrade cost increment*/
No matter how you type, anything within /**/ will not be an error or change the logic at all
WARNING:
even a slight difference is an error, I have tried
example1: correct: g.setColor(Util.RGBToHex(0,0,0));
wrong1: g.setcolor(Util.RGBToHex(0,0,0))
wrong 2: g.setColor(util.RGBToHex(0,0,0))
wrong 3: g.setColor(Util.RGBtohex(0,0,0))
oh yeah, I have forgot to tell you that for every line of code
you will need to add ";" at the end of the sentence
example: setColor(Util.RGBToHex((0,0,0));