Create A Football Game In .NET?
Mar 24, 2012
I spend my spare time trying to create a football game in VB.NET. I have a save game file saved using serialization which I am using to test code. This file contains all the elements of gameplay (stored plays, games, options, etc...) I create this file in the software itself using the code I created; I put a lot of work into this save game file and I would like to continue using it.
However, I discovered I need to add a couple member variables to the class from which the saved object is derived (object is called m_League, class is ClLeague). Any time I've altered ClLeague my old saved games don't load anymore because the new m_League object does not match the old m_League object. I have to start a new game and create m_League from scratch which wastes a lot of time.
This must pop up in with the professionals out there who write patches for software and need the users old saved files to continue working. Is there any trick to this situation or do I have to just accept it?
View 3 Replies
ADVERTISEMENT
Jun 4, 2012
I am all new to Visual Basic 2008, I am trying to create a picture shuffle game, the problem is I cant seem to be able to move one picture from PictureBox1 to PictureBox2 onClick, here is a Code I written earlier:Sub ChangePicture(ByRef P1 As PictureBox, ByRef P2 As PictureBox)
[Code]...
View 1 Replies
Sep 11, 2009
Is there any visual basic 2005/2008 RPG games with the source code available for download.Could you possibly reply to this post with a link to the website with the game.Or is there a template i could use to try create a zombie style RPG game text or graphical.
View 2 Replies
Jan 14, 2009
So we are just starting to learn about list boxes in vb1. In this program the user enters up to 10 scores and after each input (decInputScore) the total score so far has to be calculates (decTotalScore) and then of course when all the scores are entered, at the bottom the final score it calculated. (decFinalScore) (decFinal). I'm not exactly sure what I'm doing wrong, I can't get it to calculate the correct total scores after each input, and I'm getting 0 as the final score. Here is a visual of what the form should look like: the black square is (btnEnterScore) a pop up message box comes up in which the user enters each value when clicked.[code]
View 1 Replies
Apr 13, 2011
I am building for a football team can enter their points and it will display points and total points and a final Score.the message box opens and you enter the point and the point then suppose to go into the listbox. I can't to get the points to go in the list box and calculate the final score.
[Code]...
View 9 Replies
Oct 18, 2010
i am suppose to create "a windows form game called Yahtzis which uses five dice and three throws to create a score" .
The problem is that i don't even know how to start it can anyone shed some light.
View 2 Replies
May 14, 2012
I'm trying to create a basic mmo game for fun in vb.net. I have done it before with a game api but I'm recently reformat my computer and can no longer find it. I'm trying to dynamically create a new picture box that will be my character or NPC and I can get the image to show up on the screen correctly but I'm not able to use "myGuy" anywhere else in the project. So the character basically sits there and does nothing. I'm wondering if there is away to call "myGuy" (myGuy.Top = 40) in another sub? If you know of a good game api that is not a hog and not expensive let me know.
[Code]...
View 3 Replies
Apr 16, 2012
I am a noob to Visual Basic and I am currently learning it at my college. I have a final project to do and I am having some trouble deciding on how to attack it. First off, I have done a lot of research and I cannot find my answer, so I am using this(post) as a last resort. The book my prof is having me use is outdated, its coding on vb6, and we are using vb2010...hence my problem. I am not looking for an answer in code, but more to be pointed in the right direction, or maybe some classes that I do not know about.[code]...
View 7 Replies
Sep 23, 2010
I am building a quiz application in .net just like on flash mini games, is this possible in .net? and what is the easiest way to create this? make moving objects, cartoon interface and etc. also, it is supposed to be a standalone application.
View 1 Replies
Aug 6, 2009
how can i create a scoring for system for my Maths quiz game made using VB.My quiz game can generate automatic numbers / questions and shows a message box whenever the user gets the answer right or wrong. i.e.when the user presses the check answer button, a message appears stating that he/she go it right or wrong. Then the user can press the next question button to get a new question.
View 8 Replies
Oct 17, 2011
I am trying to create a game using vb but don't know how to create a "save game" function. I was told something about saving to files but don't really understand it.
View 2 Replies
Jul 18, 2011
I've tried to create a DLL injector for using it in a game but it didn't work for me, here's the code:
Imports System.IO
Imports Microsoft.Win32
Public Class Form1
[code]....
View 1 Replies
Jul 18, 2011
I'm trying to create a little program where I can view a few game servers, specifically cs, cs:s, and cod4?
Imports GameServerInfo
Public Class Form1
Dim server As GameServer = New GameServer("74.201.57.23", 27015, GameType.CounterStrike)
[code]....
I've tested multiple servers as well that were up and running so It's not the servers I'm putting in.
View 5 Replies
Jan 9, 2011
I'm trying to create a multiplayer game, but i don't know how to communicate between my programs, what I'm trying to send is some text, which my program can understand it. I searched for it and for making a chat application but found no working results...
View 10 Replies
Oct 18, 2011
Im new to visual basic and im taking a class on visual basic currently We are suppose to create a program that plays a game with the user. The game is about guessing a random number the program guesses If you are too high from the computers guess it will tell you "too high"If you are too low from the computers guess it will tell you "too low"If you are right it will let you know your right Currently im having problem with Line 7, its saying RandomInteger is expecting declaration But i declared it above as a integer
[Code]...
View 2 Replies
Feb 9, 2009
I am trying to create a sports scoreboard that has a game clock. (I am very much a noob at programming)I seem to have a problem with the game clock, I know I am sorry, another timer thread. (Trust me I read through about 50 of the 77 posts with 'countdown' in them)I have two solutions so far, unfortunately neither one are exactly what I am looking for. I want to have a scoreboard that counts down from a set time in the format of 00:00 and allows me to decrease and increase the time if it differs from the official clock.
[Code]...
View 6 Replies
Mar 14, 2010
I am new to VB, trying to create a tic-tac-toe game but none of the tic-tac-toe tutorials use 2 dimensional arrays. Since tic-tac toe is 3x3 I created 9 buttons and want either an X or an O to appear depending on where the user clicks. I want one set of instructions to handle the multiple buttons. I was told to use Case statements.
This is what I have so far. Not sure how much is right but hopefully it gives you an idea of what I am looking for.
[Code]...
View 20 Replies
Jun 10, 2010
I am looking to create a video poker card game using visual basic.I have limited knowledge of visual basic 8 but was very curious about visual basic 10.
View 4 Replies
Mar 28, 2012
i am trying to create computer guessing game for my college. computer guess my number like i have random number in my head for example 45 then the first computer guess is 50 then i tell the computer that is too high then the next guess is 25 then i click low then it goes on i cant figure out how to make it run it like when i click on high it supose to get the number low then when i click on low then it suspose to go low but it doesnt.
Public Class frmMain
Dim IntLowestNum As Integer = 1
Dim intHighestNum As Integer = 100
Dim Count As Integer = 0
[code]....
View 2 Replies
Mar 30, 2012
I am creating a points system for a game, this is the code I have but it isn't working as I want it to.
Dim intScore As Integer = 10
Dim intNumOfGames As Integer = 0
intNumOfGames += 1
intScore = intScore - 2
The user will start will a score of 10, but everytime they click the button the user should lose 2 points off the score. But my code above that doesn't happen, when the user clicks the button it only happens once leaving the user with 8 points throughout the game.
View 1 Replies
Oct 27, 2011
I create a mouse game for a single player. Set up a form with 4 rows of pictures boc controls. when a start button is clicked the mouse is "behind" one of the buttons while a stop image is behind 3 other picture boxes. The object of the game is to click the correct picturebox that contains the mouse. If the stop image appears before the mouse then the game is over. I don't understand how the logic works.
View 2 Replies
Apr 8, 2011
If I have a starting X/Y position and enter an angle and power, I want to determine the X/Y positions for a cannon to follow. I have seen many sites on this but no straight code to use. Anyone have an example of this? I just want the X/Y posiitons in small steps - not far apart from each other.
View 6 Replies
Nov 8, 2011
I have to create a game for programming class in school, my teacher said we were allowed to borrow code and then manipulate it our selves to create our own individual game. I chose Tetris so i am wondering if anybody has any code for this game from vb 2008.
View 2 Replies
May 10, 2011
I am having trouble with my code for Guess my number. I am definitely amatuer. Yes it is a homework assignment. No I am not asking you to do it for me. But I am stuck.Your GUI program is a game to be played by the user. See Screen Shot on Screen Shot Tab..A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user.The program must randomly select an number within the range of 1 to 900.Do NOT use a 'Start Game' button to generate the rand number. Generate a rand number when the GUI is loaded.
1. Create a form that displays the rules of the game on a label.
2. Create a textbox for the user to input the guess and also a 'guess' button.
3. If the user is outside the given range, provide a proper message (<1 Is not a valid guess or >900 is not a valid guess)and clear the guess.
4. When a user has a valid guess, display a proper message (either too high or too low) and tell the user to guess again.
5. With a correct guess, display a proper message and change the form's background color to red and disable the guess textbox.
6. Create a reset button that allows the user to play the another game with a new random number.
7. Create a show me button that displays the number and does not generate another random number (allow the current game to continue).
8. Create a exit button to exit the program.
9. Ensure that you include error checking to prevent a user guess that is out of the given range and for any non-numeric characters.
10. Create a single Help menu item that launches a message box that displays valuable and meaningful information for the program and usage.
11. Create a label that tracks the guess count per game. Each time a new number is generated, start the guess count at 0.
12. Create a max guess limit set to 5 and use a progress bar to track the progress to approach the limit.
13. After each valid guess (1-900), clear the guess and update a label/textbox that displays all of the previous guesses up to 5 entries.
Here is my code so far. I have been working on one point at a time and then testing it. I have not even made it to numbers 11 - 13. I am not getting actual errors. Instead of my reset button clearing all fields at once I am having to click it more than once. Instead of displaying messages per scenario the message label is staying on either input a number or your number is too low. My Answer is not displaying when Show answer is clicked-perhaps my answer coding is wrong? [code]
View 14 Replies
Apr 12, 2012
Trying to create a game that firsts asks for the users initials. Once the initials are entered the game from becomes visible. Can't seem to figure this out.
[Code].....
View 4 Replies
May 25, 2011
I would create a launcher for a game that is located in \folder\executable.exe I tried using the command shell, but the game does not start because it needs all the files found in folder.
View 9 Replies
Feb 23, 2010
I've got to create a slot machine game which operates on credits, I have three buttons and a textbox. One textbox is to add single credits, the second to add 5 credits, and the third adds 10 credits. They all need to be added up to give a 'total' & " credits"
Public Class frmFruitMachine
Dim OneCredit As Integer
Dim FiveCredit As Integer
Dim TenCredit As Integer
Private Sub btnOneCreditit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOneCreditit.Click
[Code] .....
View 4 Replies
Dec 17, 2009
i am try to create a game when i move a picture box around my form with a timer control i almost done every thing but the problem is avoiding the flikkering effect ?is there any way to avoid it?
View 6 Replies
Jun 25, 2009
I am very new to this whole programming thing and I have read several books and many websites but I can't get a good start on creating a video poker game. I understand that I need to create classes, but have no idea how to start. Most of the things I have been reading have been for Visual Basic 6.0 and it appears hard to understand. I am looking for some type of tutorial of how to create the classes I need and how to get the actual information from the classes into my form. Can anyone out there provide me with a good starting point? Is there any good (and easy) code out there to get me started. I feel that if I can get a good starting base, I can learn from there.
View 3 Replies
May 1, 2010
I am trying to create a slot machine application. I wanted to make a handle like gui so here is what I have:
[URL]
What I want is to be able to let the user drag the red button till a certain point and when they let go of the mouse click the button moves back slowly to the top.Here is what I have so far (I tried my best) :
Private Sub picBall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBall.Click
tmrOne.Enabled = True
tmrTwo.Enabled = True
[code].....
View 3 Replies