Author Topic: Collision Detection-Less Snake  (Read 7867 times)

0 Members and 1 Guest are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Collision Detection-Less Snake
« 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.



Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Collision Detection-Less Snake
« Reply #1 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...
« Last Edit: November 07, 2010, 12:22:00 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Collision Detection-Less Snake
« Reply #2 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 :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Collision Detection-Less Snake
« Reply #3 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

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Collision Detection-Less Snake
« Reply #4 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?
« Last Edit: November 07, 2010, 01:18:32 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Collision Detection-Less Snake
« Reply #5 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.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Collision Detection-Less Snake
« Reply #6 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.
« Last Edit: November 07, 2010, 01:33:17 am by DJ Omnimaga »

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Collision Detection-Less Snake
« Reply #7 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?
« Last Edit: November 07, 2010, 01:58:37 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Collision Detection-Less Snake
« Reply #8 on: November 07, 2010, 01:58:44 am »
I only got the game window. Btw I'm on Win 7 64 bit.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Collision Detection-Less Snake
« Reply #9 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
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: Collision Detection-Less Snake
« Reply #10 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.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Collision Detection-Less Snake
« Reply #11 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.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Collision Detection-Less Snake
« Reply #12 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!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Collision Detection-Less Snake
« Reply #13 on: November 07, 2010, 10:24:34 pm »
Maybe some updated graphics as well?

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Collision Detection-Less Snake
« Reply #14 on: November 07, 2010, 10:29:51 pm »
Fun!  and hard.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>