This site requires JavaScript, please enable it in your browser!
Greenfoot back
ronald
ronald wrote ...

2020/4/9

Zoom in and out

1
2
danpost danpost

2020/4/10

#
You now reveal that you have had a ZOOM field all along. This is the SAME field I had previously been calling zoomFactor. Actually, I had suspected as much and thought that you would have gotten the connection. At any rate, remove line 24 and replace all zoomFactor occurrences with ZOOM. I would also, then, change all ZOOM to zoom as, by convention, only constant values are given names with all upper case characters.
Super_Hippo Super_Hippo

2020/4/10

#
And as it currently is in fact a constant, remove the ‘final’.
ronald ronald

2020/4/10

#
thank you all three
You need to login to post a reply.
1
2