Yakman
01-11-2008, 11:52 PM
Snake game, like the ones that come with some mobile phones.
while i was making this, i got a little hooked on it, i really didnt know it was possible to be hooked on
a game you created yourself :p
A long time ago, i tried to make a game like this in SCAR, however i did not think out the
structure very well, and there were some very annoying bugs which my bad structure was not able
to fix, so i scrapped the project.
a few days ago, i got some inspiration on a good structure, i wrote some pseudocode and managed to
create this system, i feel it is well made, the only failing of it is that i did not remember
about LinkedList's throwing of a ConcurrentModificationException when it was edited during iteration,
so i had to make a messy fix and have a field to store the new segment until iteration was finished.
i made next to nothing effort for the graphics, it was only to try to see if my idea for the structure
would work, however, there are many polymorphic methods which are used for rendering and drawing, and if
anyone wants to try to improve the graphics, the structure will allow them without too many difficulties.
this project uses Apache ANT (google it) to compile, if you program in java, i highly recommend you get
this open-sourced tool.
speaking of which, open sourcing is the best thing since the stream engine, its only those evil capitalists
at microsoft who are only intrested in money who hold back open sourcing and human development.
http://img174.imageshack.us/img174/9895/screenshotrk7.png
while i was making this, i got a little hooked on it, i really didnt know it was possible to be hooked on
a game you created yourself :p
A long time ago, i tried to make a game like this in SCAR, however i did not think out the
structure very well, and there were some very annoying bugs which my bad structure was not able
to fix, so i scrapped the project.
a few days ago, i got some inspiration on a good structure, i wrote some pseudocode and managed to
create this system, i feel it is well made, the only failing of it is that i did not remember
about LinkedList's throwing of a ConcurrentModificationException when it was edited during iteration,
so i had to make a messy fix and have a field to store the new segment until iteration was finished.
i made next to nothing effort for the graphics, it was only to try to see if my idea for the structure
would work, however, there are many polymorphic methods which are used for rendering and drawing, and if
anyone wants to try to improve the graphics, the structure will allow them without too many difficulties.
this project uses Apache ANT (google it) to compile, if you program in java, i highly recommend you get
this open-sourced tool.
speaking of which, open sourcing is the best thing since the stream engine, its only those evil capitalists
at microsoft who are only intrested in money who hold back open sourcing and human development.
http://img174.imageshack.us/img174/9895/screenshotrk7.png