Important alert: (current site time 5/19/2013 9:34:07 PM EDT)
 

winzip icon

A simple Nokia style snake game **UPDATED**

Email
Submitted on: 4/24/2002 4:43:45 PM
By: ByteForce UK  
Level: Advanced
User Rating: By 3 Users
Compatibility: VB 5.0, VB 6.0
Views: 4428
author picture
(About the author)
 
     A neat little port from QuickBasic (remember the old qbasic days?) [adapted] Nibbles game! I added a few extra features, like Adjustable play area, optional 'CopyCat' enemy, Game over pixelate effect and pause function. You can change the game speed on startup too. This would be a good litte extra to throw in a big application like a replacement shell for example.. PLEASE COMMENT so I can improve\fix the code! **I have updated the code as per request of Andrew Allen. See comments below for more information. =)

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 14 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/24/2002 8:44:06 PMAndrew Allen

I think this is a great idea, but one thing that you have that nokia doesn't is the ability to kill yourself without running into a wall or the snake!

you should change the Form_KeyDown to:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode

Case 13
Form_Click 'Start game

Case 38 'UP
If Direction = "DOWN" Then Exit Sub
Direction = "UP"
eDirection = "UP"

Case 40 'DOWN
If Direction = "UP" Then Exit Sub
Direction = "DOWN"
eDirection = "DOWN"

Case 37 'LEFT
If Direction = "RIGHT" Then Exit Sub
Direction = "LEFT"
eDirection = "LEFT"

(If this comment was disrespectful, please report it.)

 
4/24/2002 8:44:53 PMAndrew Allen(Continued)

Sorry I ran out of room had to make 2 comments...

Case 39 'RIGHT
If Direction = "LEFT" Then Exit Sub
Direction = "RIGHT"
eDirection = "RIGHT"

Case 16 'STOP
'Direction = "STOP"

Case 18 'Alt

Case 115 'Alt + F4

Case 17 'Crtl

Case Else
Direction = "STOP"
MsgBox "The game has been paused. Use the arrow keys to move about and press [SHIFT] to stop. Click OK to resume gameplay.", vbInformation, "Game Paused"

End Select
End Sub

Now you can't kill yourself without running into a wall or the snake

Ps other than that one flaw great program
(If this comment was disrespectful, please report it.)

 
4/25/2002 4:25:39 AMM a t t = H a l l

Hi Andrew! Thanks for your comment! I dont know what you mean about dying without running into the wall or snake? Do you mean it dies randomly or something? Please get back to me on this one so I can rectify the mistake!
(If this comment was disrespectful, please report it.)

 
4/25/2002 6:17:35 AMM a t t = H a l l

Ive now updated the code so you dont die if you push the opposite direction in which youre travelling. Sorry for being thick earlier!
(If this comment was disrespectful, please report it.)

 
1/18/2004 1:23:57 AM

Thinks,...
(If this comment was disrespectful, please report it.)

 
4/4/2004 3:25:10 PMgridrun

thanks for this little thingy, Im gonna use it as a "hidden feature" of some app I have to write :) Thanks again =)
(If this comment was disrespectful, please report it.)

 
8/16/2004 7:06:55 PM

such an old game but still a GOOD one i love this game so thanks. i know im a geek so dont say it! lol
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.