Borrow Code And Then Manipulate It To Create Tetris Game?
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
ADVERTISEMENT
Feb 12, 2011
I just finished making a Tetris game in VB.NET, and I wanted to add a high score system to the application. So, when a user completes their game, they have the option of submitting it as a high score, which will compare their score against the previous high scores, then place it accordingly. I was thinking of an XML approach of doing this, where the user's name, rank, score, level, and number of lines cleared will be stored in tags. Here is what I thought the XML might resemble:
[Code]...
So the program will have an array to store all the previous scores. It will read through the XML, and copy the the score data into this array. Then, when the time comes to submit a score, it will compare this score against those previous scores, and find the proper position for that score, and then save it into the array. At the end, it will then copy all the score data from this array to the XML, replacing the <Level>, <Lines>, and <User> tags in the process.I am however having trouble implementing this, as I have no experience with XML files and everything I've read has been very confusing.
View 2 Replies
Apr 11, 2012
I need to create a code, that allows me manipulate a scanner for to do the functions of scanning and save the image.
View 1 Replies
Jul 2, 2009
I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them. Granted, the code is very simplistic, but functional for a new programmer like myself. I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it. With that being said, here are a few problems and questions that I have.
1. How come when all 12 cards are dealt out I have some cards repeating in the game? For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.
2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game. When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes: I have the deal down the way I want it. It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.
3. I know this is my next step so I want to post it with the code I currently have. I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand. For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc. ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.
Here is the code that I currently have. I'm using visual basic.
Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)
[code]....
View 1 Replies
Mar 11, 2010
I'm trying to make a 2D platform game and I'm pretty inexperienced at programming. I've coded the player to move left and right and jump, but I can't figure out how to prevent multiple jumps while the player is in the air. Anyone know how to do this?
View 8 Replies
Jan 13, 2012
Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.
There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"
[code]......
View 6 Replies
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
Apr 18, 2010
im struggling to work out the code for 3 of a kind in my yahtzee game, i think that if i can work this out i can sort my everest of the full house code!
can someone tell me where ive gone astray?
code:
View 8 Replies
Jun 6, 2011
I just finished my own snake game, and I need some recommendations on how to make this game better.If you see a problem, please tell me.The only problem with this game is that I can't get the code to get longer, other then that its good.EDIT: Sorry I meant : The only problem with this game is that I can't get the SNAKE to get longer, other then that its good.
View 4 Replies
Apr 3, 2012
I want to manipulate the first name, last name and email via code, preferably server side. But I see this is not really how this might work, using asp hiddenfields for example.
So I have to get the values for the 3 fields server side, and somehow post this to [URL] - do I need to build the script in code and submit that? Not use this javascript?
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PaymentSend.aspx.vb" Inherits="Vault.PaymentSend" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[CODE]...
View 2 Replies
Apr 15, 2012
I'm sure this has been asked before and I even searched but could not get the source code downloaded from skydrive. So I'm looking for a good youtube video tut on how to make Tetris in Vb using paint or picture boxes. I'd preffer using picture boxes but making the shapes using paint arg would be fine.
View 13 Replies
Mar 7, 2012
I'm trying to make a Tetris game in VB 2010. I am having some problems with a function I have written that draws new squares and fills them with the colour needed. Here are the details of the error:
System.ArgumentException was unhandled
Message=Parameter is not valid.
Source=System.Drawing
StackTrace:[code].....
The line g.DrawRectangle(Pens.Black, lngX, lngY, 24, 24) is highlighted as the error. 'g' is the graphics of the form and lngX and lngY are the predetermined coordinates of the shape as long variables.I have researched this error but I couldn't understand Microsoft's explanation, and no other threads applied to my case.
View 2 Replies
Dec 8, 2010
Im developing in VB using a SQL Database, the thing here is that i am new to SQL. What Im trying to do is when i capture a "MT Number" (in the Borrow Applicator Part) the Initial Counter Textbox shows the respective Counter for the MT number i entered. Those fields are in the same table but i dont know what to do.
Heres a picture of the form.
View 2 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
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
Feb 14, 2012
I need assistance with a program we have to do in programming class. It is due soon and I am stuck on how to code it and if the extra button is necessary or not. The game is called the Pig Game where each turn, a player repeatedly rolls a die until either a 1 is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player's turn, the player is faced with two options:roll - If the player rolls a
1- the player scores nothing and it becomes the next player's turn.
2 -the number is added to the player's turn total and the player's turn continues.hold - The turn total is added to the player's score and it becomes the next player's turn.The first player to score 100 or more points wins. More info is here: url...
I have no idea where to go from my current position. I think I coded most of it though. I will attach the files in a zip folder for all to see my form and code.The main problem here is: I just need the code to be fixed, so it works and so I don't fail the class. Attaching the new version in a zip file would be nice but you don't have to do that, or you could just tell me the code and form layout directly on here!
View 9 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
May 10, 2012
Need code for a moving background for a game
View 4 Replies
Apr 15, 2012
I have an assignment which is asking me to complete some Mastermind game code
Private Function createColourString(ByVal gb As GroupBox) As String
'
' For the groupbox gb, which must be one of the guess
' groupboxes or the master groupbox, create a string
[code]....
View 1 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