Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

An int

 
Fernando hiar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Report post to moderator
The value is an int, i´ll put a body snake inside of array e I have a variable tail and the head the rest is the body I´ll put a variable tail in i and I did the expression, I want to know what´s this expression does: i = (i+1) % MAX_POINTS, the max points is the body snake and i is the tail snake..... i want to know because I get the rest of division, but what´s behave in the JPanel this expression.


Thank you;
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Wow Fernando,

I'm lost

Can you show us your code?
 
salvin francis
Bartender
Posts: 1268
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
possible cross post: http://www.coderanch.com/t/491823/Game-Development/java/Games-java


 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Fernando,

Please avoid posting the same question twice - it makes it hard for everyone else to work with you.

I'm going to lock this one up, and let the discussion continue in the other thread.

Bert
 
    Bookmark Topic Watch Topic
  • New Topic