• Post Reply Bookmark Topic Watch Topic
  • New Topic

MIDP Programming  RSS feed

 
Ambrish Chandra Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am making a game of TicTacToe in that I have used getClipX() and getClipY() of Grapgics class. When I access the current clip of y axis with g.getClipY(), I get the value which is original clip value - 1 e.g. If g.getClipY() should return 10, it returns 9. Could you stipulate me why it's happening?

Thanx
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could it be zero based? where the tenth digit is "9"

0 1 2 3 4 5 6 7 8 9


Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!