SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant
SnakeDx: a snake variant SnakeDx: a snake variant
SnakeDx: a snake variant
Go Back  Xtreme Visual Basic Talk > > > > SnakeDx: a snake variant


Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2009, 11:40 AM
jmanomega's Avatar
jmanomega jmanomega is offline
Centurion
 
Join Date: Jul 2004
Location: Missouri, USA
Posts: 170
Default SnakeDx: a snake variant


This game is a variant on snake. It started out as a simulation of a string but this is what it turned into.

It does run a little slow, and I think this may be because it uses the Direct Draw circle for all the graphics.

I've only been programing off and on lately and this is the first thing that I have finished for a while. I just wanted to show it off for a bit and see what you thought.

The controls are simple, turn with A and D or Left and Right arrows. You move forward automatically. Eat the red "apples" and avoid the blue ones. Finally, the game ends and gives you a score if you eat yourself.

Thanks,
Josh
Attached Files
File Type: zip SnakeDx.zip (19.9 KB, 11 views)
Reply With Quote
  #2  
Old 08-21-2009, 12:56 PM
Cerian Knight's Avatar
Cerian KnightSnakeDx: a snake variant Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

Just a few comments:

1. Adding 'Option Explicit' to the form shows that you are not declaring some variables and using the wrong names for variables in some places.
2. By preventing any form/object references after DoEvents calls, the 'End' statement can be eliminated.
3. Some of the same variable declaration were repeated in different modules/forms.
4. DirectX screen resolution changes when restored to normal seem to rewrite the Screen.Width reporting of other VB6 applications so that it is likely that (Screen.Width = Screen.Height) = True. Since I was using your application to look into this behavior and repaired 1-3 above (but didn't solve this issue, unfortunately)...this is your lucky day. See attached.
Attached Files
File Type: zip SnakeDx.zip (20.3 KB, 13 views)
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant SnakeDx: a snake variant
SnakeDx: a snake variant
SnakeDx: a snake variant
 
SnakeDx: a snake variant
SnakeDx: a snake variant
 
-->