Simple Game
Simple Game
Simple Game
Simple Game
Simple Game
Simple Game Simple Game Simple Game Simple Game Simple Game Simple Game Simple Game Simple Game
Simple Game Simple Game
Simple Game
Go Back  Xtreme Visual Basic Talk > > > Simple Game


Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2007, 07:08 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default Simple Game


I'm in a beginners VB.NET class in school. As a final project, my teacher has given me the assignment of creating a simple game. Unfortunately, I am at a loss for what I can create. Any Suggestions?
Reply With Quote
  #2  
Old 03-22-2007, 07:56 AM
martonx martonx is offline
Centurion
 
Join Date: Jan 2007
Location: Szeged, Hungary
Posts: 129
Default

Visit my tron game. IT is free for everyone, and the source is on rapidshare :-)
Reply With Quote
  #3  
Old 03-22-2007, 11:47 AM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

How much experience do you have? A semester or a year's experience? If a semester you might just wanna make Tic-Tac-Toe. If a year's, you could prolly step it up and make a self-learning Tic-Tac-Toe game (bases movements on past wins/losses to find best next move)...and I'm not sure why it has to be Tic-Tac-Toe except it's all I can think of right now and it's the most simplistic game. If you wanna spend a lot of time you can make something like Tron, but it's not necessarily a casual undertaking. I know my tron game has taken me over a month of hard work. :\
Reply With Quote
  #4  
Old 03-22-2007, 11:50 AM
Eduardo Lorenzo's Avatar
Eduardo Lorenzo Eduardo Lorenzo is offline
Senior Contributor
 
Join Date: Jun 2006
Location: Manila, Philippines
Posts: 846
Default

Is it as simple as possible? I mean, does it need to have AI?
__________________
Pinoy ako.. ipinagmamalaki ko.
Reply With Quote
  #5  
Old 03-23-2007, 08:39 PM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

I have about a semester and a half of experience, and there really aern't any limitations to the game, only to my knowledge of the language. I thought about tic tac toe, seems rather simple, but being that its my second semester, my teacher might expect something a little more indepth.
Reply With Quote
  #6  
Old 03-25-2007, 10:19 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

In depth indeed, which I why I recommended self-learning "AI." It's a basic form, which is why I use quotes, but the emphasis and the possibilities are justified through it's usage. Basically, every time the player moves, the computer moves. If the computer loses, he knows not to move there again (subtract percentage points). If the computer wins or ties, he knows it may be the valid move to make in that situation. At first the computer will be random, but after 10-20 games he'll be an expert at tic-tac-toe. It's simple, it's effective, and very cool to see.

If you don't wanna do that route, just think back to classic Atari games like Frogger or something and try to mimick it.
Reply With Quote
  #7  
Old 03-26-2007, 04:55 PM
Iceplug's Avatar
IceplugSimple Game Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

I would ask your teacher if he/she feels that Tic Tac Toe is fine. If you need more complexity, ramp it up. Say, connect 4, or checkers, or, if they really want you to squirm, try to do chess.

You will want to mention that any project will have a computer with AI. If your teacher doesn't need the AI, then don't do it for a school assignment. Only do the extra stuff when you've finished your assignment and/or turned in your assignment for grading.

People often get caught and seduced by trying to make a shockingly good program for a project and get killed by the time limit that approaches too quickly. So, start at the most basic stuff and add as necessary until you get finished.
I, personally, would grade my students based on how much they were actually able to get done within the time limit. A working program is a HUGE bonus...
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #8  
Old 03-27-2007, 07:47 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Funny you should mention frogger, I'm working on that right now? A question, how can I code the movement of the frog so that it looks like he is "hopping" rather than simply "floating" or "flying" across the screen?
Reply With Quote
  #9  
Old 03-27-2007, 01:52 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

I remember only 2 specific frames in Frogger. One was the legs extended (making it appear to hop) and the other was the sitting position. So, while making him move to the next area, switch animations in a picturebox or something with the legs extended. It'll only take about 50-100 ms to move him, but while it's moving, it should be legs extended. Then after, revert back to the sitting position. It should give the impression he's hopping.

That's what I would do anyway
Reply With Quote
  #10  
Old 03-28-2007, 05:25 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

So as a I press the key, switch the picture to the legs extended and then switch back to a sitting postion after he moves? And that can be done by simply switching between two pictures in a single picturebox?
Reply With Quote
  #11  
Old 03-28-2007, 08:31 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Ok, so I was working on my Frogger program in my class today and made a bit of progress, but I have a question.

First, for Frogger himself, I'm using a picture of a frog in a textbox with the BackColor property set as Transparent, that way it will assume the color of whatever surface he hops on.

Second, for the logs, I'm using a log picture in a picturebox with the BackColor property set to a matching Brown color to fill in the excess space in the PictureBox.

My problem is that when I move the frog onto the log (in run-time) the frog's picturebox turns blue to match the water, not brown to match the log. Any suggestions on how I can fix this?

Also, when I get to it, how do I get the frog to float along with the log and not just sit there as the log moves?
Reply With Quote
  #12  
Old 03-28-2007, 01:44 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

Match the frogs speed with the logs when the condition is true (when he's on the log).

As for the picture problem, you'll prolly need to use GDI. If you don't want to bother with GDI, make another frog picture where the background is the log color, and simply use that picture. It's a cheap effect but it works.
Reply With Quote
  #13  
Old 03-29-2007, 05:14 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

I'm embarassed to say that I don't even knowwhat GDI stands for, let alone what it is or how do use it. I'll try using another picturebox, but in the end it might help to learn this so called GDI.
Reply With Quote
  #14  
Old 03-29-2007, 02:45 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

www.bobpowell.net is a good place to learn
Reply With Quote
  #15  
Old 03-30-2007, 05:12 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Thanks, I'll check out the link.

I've begun to code the movement of the different pictures. I've successfully coded movement into everything that moves from right to left, but I'm having difficulty figuring out code the moves things left to right. Any help you can provide is great and I can post some code in necessary.
Reply With Quote
  #16  
Old 03-30-2007, 02:01 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

Whatever you did to move right to left, just do the opposite.
Reply With Quote
  #17  
Old 03-31-2007, 05:37 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Yeah, I figured it out, thanks though.
Reply With Quote
  #18  
Old 04-02-2007, 07:41 AM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Any suggestions or sample code to make the frog "float" along with the logs?
Reply With Quote
  #19  
Old 04-02-2007, 02:12 PM
Targe Targe is offline
Contributor
 
Join Date: Nov 2006
Posts: 615
Default

Set a boolean variable to know if he's on the log and if true then have him move the same speed as the log.
Reply With Quote
  #20  
Old 04-03-2007, 07:37 PM
SNBoggs's Avatar
SNBoggs SNBoggs is offline
Freshman
 
Join Date: Mar 2007
Location: Canton, GA
Posts: 30
Default

Something along the lines of this?

If pctfrog.left=pctlog.left then
blnOnLog=True

If pctfrog.top=pctlog.top then
blnOnLog=True

Could you offer some sample code?
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
Simple Game
Simple Game
Simple Game Simple Game
Simple Game
Simple Game
Simple Game Simple Game Simple Game Simple Game Simple Game Simple Game Simple Game
Simple Game
Simple Game
 
Simple Game
Simple Game
 
-->