Skip to main content

Catch Me Version 2.0.0

Hello guys sorry I didn't write more tutorials but I was very busy but now I am Free let's make Catch me Version 2.0.0 

OK , If you didn't make Catch me Version 1.0.0 go here and make it

Now our improvement in this version is :-

  1. Full Screen Mode
  2. Green effect
  3. Highest Results

1-Full Screen Mode

Change WindowState property to Maximized
and Add This Code under Public Class Form1

Dim screenWidth As Integer = Screen.PrimaryScreen.Bounds.Width

Dim screenHeight As Integer = Screen.PrimaryScreen.Bounds.Height

and in Timer1_Tick change this :-

x = CInt(Rnd() * 800 - 0)
y = CInt(Rnd() * 600 - 0)

to :-

x = CInt(Rnd() * screenWidth - 0)
y = CInt(Rnd() * screenHeight - 0)

Change Start Button Anchor property to Down , Right

Change Quit Button Anchor property to Down , Left

2- Green Effect

In PictureBox1_Click add this code :-

        Me.BackColor = Color.Green

After Public Class Form1

Dim tempcolor As Color = Me.BackColor

In Start Button add this 

        Me.BackColor = tempcolor

3- Highest Results

After Public Class Form1 add this :-

Dim h_result As Integer

And remove this from Start Button

result = 0

Add this in Stopper If statment

If h_result < result Then
                h_result = result
                result = 0
End If

Edit Label1.text to this : -
   Label1.Text = "Your Highest Result =" & h_result & " ,Do You want to play again ?"




Thank You for reading Please leave Comment





Comments

Popular posts from this blog

Catch Me Version 1.0.0

Hello guys, Welcome to the first version of Catch me ( Visual Basic Game read Introduction ) Ok, Let's Start Open Visual Studio 2012 and Open new project 1. Program Design Stage Let's add the tools 1 PictureBox, 2 Button, 2 Label, 1 Timer In Picturebox1 My Image Choose any picture in my case I will choose this image  Make Visible Property = False Resize it as you like I will make it (150,150) Don't forget to Change SizeMode to StretchImage Button1, Button2 In One of the 2 Button make it's Text property to Quit and the another make it Start Label1 In Label1 change the Text to your Description  Label2 In Label2, Change the Text to "Time: 60s" without quotation  put in the middle Bottom of the Form and 60s is the game time Timer1 Change the Interval This is the game Time Form1 Change FormBorderStyle to None Change the Size to 800,600 Change StartPostion to Centre of the Screen Ok Your Window Should be like th...

Visual Basic ( Catch Me ) Introduction

Hello guys, Welcome back to Visual Basic Tutorial ( GAME ) Catch me: - It is a simple game that a Picture will appear Random in the Windows Form and the player (user) will try to click on it by mouse that all We have lot of version to Catch me so I will make a list for them 1. Catch me Version 1.0.0  Features : User will play in 800*600 window state  User will play it without any effects The result will not be saved 2. Catch me Version 2.0.0  Features : User will play  in Full Screen When User will press in the picture ( Target ) the black color will be green the back to Default The result will  be saved as long as the game is opened 3. Catch me Version 3.0.0  Features : User will play  in Full Screen User will choose the level of game ( Insane - Extreme - Hard - Normal - Easy - Baby Level ) The result will be saved in Database with Names ------------------------------------------------- Notice The ti...

How Bitcoin Mining Works

In traditional fiat money systems, governments simply print more money when they need to. But in bitcoin, money isn’t printed at all – it is discovered. Computers around the world ‘mine’ for coins by competing with each other. How does mining take place? People are sending bitcoins to each other over the bitcoin network all the time, but unless someone keeps a record of all these transactions, no-one would be able to keep track of who had paid what. The bitcoin network deals with this by collecting all of the transactions made during a set period into a list, called a block. It’s the miners’ job to confirm those transactions, and write them into a general ledger. Making a hash of it This general ledger is a long list of blocks, known as the 'blockchain'. It can be used to explore any transaction made between any bitcoin addresses, at any point on the network. Whenever a new block of transactions is created, it is added to the blockchain, creating an increasingly le...