You 've to conceptually split the snake into slices...
Say the snake has 12 slices
Goes west ... at pt (x,y) user presses upward arrow
erase the 4 slices at the tail..
start piling slices towards North..
continue loop
You need to have the following attributes in Snake...
with Java you can process your images (without converting them to binary arrays)... Lookup the documentation for the following classes ...
RGBImageFilter
RGBColorModel - you 've to customize for your preference
ByteLookupTable etc.,
U can do lots of...
You have to direct the 'rs' object to the first row...
before doing any rs.getString()..
Otherwise... 'ResultSet' will be pointing nowhare :-)
so insert " rs.next()"
immediatly after stmt.executeQuery()
(eg)
rs = stmt.executeQuery(query)...
Your class path should be
set classpath=C:\JDK1.2.2\lib - for java.*
Put the 'servlet.jar' in the same directory and append the follwoing to the classpath
;C:\JDK1.2.2\lib\servlet.jar
Prem
Your class path should be
set classpath=C:\JDK1.2.2\lib - for java.*
Put the 'servlet.jar' in the same directory and append the follwoing to the classpath
;C:\JDK1.2.2\lib\servlet.jar
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.