File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Game Development and the fly likes An int Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Game Development
Reply locked New topic
Author

An int

Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 27
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

Joined: Oct 14, 2002
Posts: 8439
Wow Fernando,

I'm lost

Can you show us your code?


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 904

possible cross post: http://www.coderanch.com/t/491823/Game-Development/java/Games-java



I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8439
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
 
IntelliJ Java IDE
 
subject: An int
 
Threads others viewed
Snake
How do I save a variable value -Unsolved-
Games in java
Extern Keyword?
Exception: java.lang.StackOverflowError
IntelliJ Java IDE