Pre Defined CGPoints To Describe Points On the Screen

58 views Asked by At

In my game i have 2 point i want to start the game from which are CGPoint objects. Top Left bottom right (0,0) (1,1). Instead of create the objects and initialize, There is another way to #define or to declare it otherwise? When im trying to create:

CGPoint kTopLeft = CGPointMake(0,0);

At the beginning of the file i get compiler errors. Not sure what is the best approach and would like to hear you opinion please.

1

There are 1 answers

2
RolandasR On BEST ANSWER

If you want to add to .m simple const will work

const CGPoint kTopLeft = {0, 0};