Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: nemo on November 06, 2010, 11:45:17 pm

Title: Collision Detection-Less Snake
Post by: nemo on November 06, 2010, 11:45:17 pm
i recently made a snake game in java in which you can't collide with yourself. it's very bare-bones, and i'd like to see how compatible it is. i'd be grateful if you downloaded it for a try (: the download link is here (http://www.mediafire.com/?qr19hzvp8m4yhbf).

Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on November 07, 2010, 12:13:00 am
coool im trying it

sorry im not sure how to open it. i tried opening it with java 6 up22 in c:\program files\java\....d and opened it with java.exe a cmd window popus up for a few secs and then closes...
Title: Re: Collision Detection-Less Snake
Post by: meishe91 on November 07, 2010, 12:25:24 am
That's pretty neat :) The not able to collide with yourself thing is a little odd and can be hard to tell where your character is since the color doesn't darken or something. But other than that the only thing I would suggest is like a menu or something at the beginning because it just starts. Great work though :)
Title: Re: Collision Detection-Less Snake
Post by: DJ Omnimaga on November 07, 2010, 12:53:59 am
coool im trying it

sorry im not sure how to open it. i tried opening it with java 6 up22 in c:\program files\java\....d and opened it with java.exe a cmd window popus up for a few secs and then closes...
You need Java installed. http://www.java.com/en/


ALso nice game Nemo. It would be nice if it did not close when you died and showed a Game Over screen where you can click retry, though. :P
Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on November 07, 2010, 01:17:30 am
I thought i just said in the previous post that i had java v6 update 22 installed  ??? (i updated it 2 days ago)....

anyway i got it to work. but it was complex... i had to copy the jar file into C:\Program Files\Java\jre6\bin then run java.exe through cmd and then give it the command:
C:\Program Files\Java\jre6\bin>java -jar snake.jar
then i created a shortcut for it to make things easier
steps to create a shortcut:
1. create a shortcut to java.exe (in C:\Program Files\Java\jre6\bin) on your desktop
2. right click and choose properties
3. Go to shortcut tab and paste this in the Target box:
"C:\Program Files\Java\jre6\bin\java.exe" -jar snake.jar
4. Run it and enjoy!

it worked and it is a nice game. As meishe91 and Dj_omni said, i would like it if there was a chance for the user to get ready to begin the game and also when it ends - it closes so suddenly too, maybe a retry option?
Title: Re: Collision Detection-Less Snake
Post by: meishe91 on November 07, 2010, 01:29:08 am
I thought i just said in the previous post that i had java v6 update 22 installed  ??? (i updated it 2 days ago)....

anyway i got it to work. but it was complex... i had to copy the jar file into C:\Program Files\Java\jre6\bin then run java.exe through cmd and then give it the command:
C:\Program Files\Java\jre6\bin>java -jar snake.jar
then i created a shortcut for it to make things easier
steps to create a shortcut:
1. create a shortcut to java.exe (in C:\Program Files\Java\jre6\bin) on your desktop
2. right click and choose properties
3. Go to shortcut tab and paste this in the Target box:
"C:\Program Files\Java\jre6\bin\java.exe" -jar snake.jar
4. Run it and enjoy!

it worked and it is a nice game. As meishe91 and Dj_omni said, i would like it if there was a chance for the user to get ready to begin the game and also when it ends - it closes so suddenly too, maybe a retry option?

You should be able to just double-click the .jar file and it should run. I'm not an expert though when it comes to Java so better wait for someone else to answer.
Title: Re: Collision Detection-Less Snake
Post by: DJ Omnimaga on November 07, 2010, 01:32:52 am
Ah sorry, I checked your post and still didn't see it. I tried CTRL+F on it and for odd reasons it found no results on "install" x.x

GLad you got it to run, though.
Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on November 07, 2010, 01:55:40 am
possibly, it's just that i had to set the default program and none of them worked... and when i tried to set it to run with java.exe it didn't do anything. so i had to use the method i described above...

wait, i need to ask something... when you run it, does it popup with both the cmd window and the game window?



Maybe there should be a score counter for the game?
Title: Re: Collision Detection-Less Snake
Post by: DJ Omnimaga on November 07, 2010, 01:58:44 am
I only got the game window. Btw I'm on Win 7 64 bit.
Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on November 07, 2010, 06:21:18 pm
oh... maybe i need to reinstall java, i think ill try that and let it reregister jar file association
Title: Re: Collision Detection-Less Snake
Post by: Madskillz on November 07, 2010, 06:49:49 pm
Add a menu and some scoring and you pretty much got it. A few times it was an instant death because it just started and then crashed into the wall.
Title: Re: Collision Detection-Less Snake
Post by: meishe91 on November 07, 2010, 07:10:02 pm
Add a menu and some scoring and you pretty much got it. A few times it was an instant death because it just started and then crashed into the wall.

Ya, that happened to me too.
Title: Re: Collision Detection-Less Snake
Post by: shmibs on November 07, 2010, 08:46:58 pm
/\i had to put on hand on the mouse and the other on the keyboard

nemo:i like!
Title: Re: Collision Detection-Less Snake
Post by: DJ Omnimaga on November 07, 2010, 10:24:34 pm
Maybe some updated graphics as well?
Title: Re: Collision Detection-Less Snake
Post by: yunhua98 on November 07, 2010, 10:29:51 pm
Fun!  and hard.  ;)
Title: Re: Collision Detection-Less Snake
Post by: Deep Toaster on November 07, 2010, 10:31:10 pm
Fun!  and hard.  ;)

Agreed. It's a really fun little game :)
Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on November 17, 2010, 08:55:31 pm
I managed to get the snake to a very long length but then i crashed into the wall because i was going over myself...
and cmd still comes up everytime i play it
Title: Re: Collision Detection-Less Snake
Post by: Jonius7 on February 24, 2012, 12:44:26 am
Oh wow. Looks like there hasn't been any progress on this since when I looked at this a long time ago. I deleted my copy of snake and I made a reminder to revisit this topic if I could. Seems like nothing has changed. I quite liked the game, despite being basic to play.

Also there was something wrong with my computer/java installation. I had reinstalled Windows and it worked perfectly fine by double-clicking it. And no cmd window!

EDIT: Oh the file is no longer on mediafire. I'll have to restore it from an old backup