SHARE
Facebook X Pinterest WhatsApp

Creating Your Own Hidden Object Game with VB.NET

Part 1 – The Basics Introduction Have you ever played a hidden object game? If you haven’t, it is a game where you have to find random objects hidden away on the gamescreen. These objects are carefully and smartly embedded into the screen so that it looks as if they are part of the background […]

Written By
thumbnail
Hannes DuPreez
Hannes DuPreez
Jul 16, 2012
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Part 1 – The Basics

Introduction

Have you ever played a hidden object game? If you haven’t, it is a game where you have to find random objects hidden away on the gamescreen. These objects are carefully and smartly embedded into the screen so that it looks as if they are part of the background picture. I am hooked on these games. I can play them for hours and hours, non stop. With this article series, we’ll make our own hidden object game and I’ll describe all the logic involved with these types of games.

Getting / Designing the Pictures

Before we do any code, we need to know what pictures we will need. We’ll also need to know what the background of the game should look like. With all of these in place, we need to strategically hide all the pictures within the background. With this series, I have decided upon 20 pictures :

Name Picture
bird1.gif bird1
bird2.gif bird2
bird3.gif bird3
bird4.gif bird4
cellphone.gif cellphone
earring1.gif earring1
earring2.gif earring2
grapes.gif grapes
key.gif key
lion.gif lion
newspaper.gif newspaper
pencil.gif pencil
rhino.gif Rhino
shoe1.gif shoe1
shoe2.gif shoe2
toilet.gif Toilet
upsidedown.gif upsidedown
violin.gif violin
wallet.gif wallet
zeppelin.gif zeppelin

As you can see, these pictrues don’t have anything in common. They are random pictures that we will use inside our game. This is one of the tricks Hidden Object games use. They use unrelated pictures, which you might not expect, and you need to find them based on the cleverly constructed clues – which we’ll do a bit later. You may be wondering if you should draw these pictures yourself or what. Well, Yes, if you have the correct tools such as CorelDraw and PhotoShop, and obviously the talent to draw, then you can feel free to design them. In normal circumstances, a graphic designer should be involved – as is the case with these games. What I did, because of time restraints, was to draw only a few of the above pictures, the rest I found through Google Images. Keep in mind that the pictures may be copyrighted.

The last image needed for our game screen is the background:

background
Figure 1 – Background

Objective

Once we have the pictures we have decided upon, we need to hide them away in the background. The game player should then find them based on our cryptic clues.

Recommended for you...

Using Multiple Programming Languages to Create an ASP.NET Website
Tariq Siddiqui
Jun 11, 2022
Visual Basic Features in Visual Studio 2022
Hannes DuPreez
Jan 25, 2022
Playing with Strings: Proper Case
Hannes DuPreez
May 27, 2020
Making a Small Lotto Game in VB.NET
Hannes DuPreez
Apr 28, 2020
CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.