473,382 Members | 1,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Req: Game Making

i want to make a bingo game on vb6 and dont really know which codes to use
any1 gimme some ideas?
Jul 14 '07 #1
10 1686
Mague
137 100+
Search on a site like
www.planet-source-code.com they will probably have it
Jul 14 '07 #2
Ali Rizwan
925 512MB
i want to make a bingo game on vb6 and dont really know which codes to use
any1 gimme some ideas?
What kind of game do you want to develop? I have also made some games on VB6, I can help you.
Aug 18 '07 #3
What kind of game you want to develop? tell me i have also make some games on vb6 i can help you
ERR... a bingo game. for a friend of mine.
Aug 25 '07 #4
Ali Rizwan
925 512MB
i want to make a bingo game on vb6 and dont really know which codes to use
any1 gimme some ideas?
Hello have you made any game or not? if answer is not then tell me i will send you my "tick tack toe" enjoy it.
Aug 25 '07 #5
Hello have you made any game or not? if answer is not then tell me i will send you my "tick tack toe" enjoy it.
only a slot machine game
Aug 28 '07 #6
Ali Rizwan
925 512MB
only a slot machine game
What do you mean by Slot machine game if you explain it for me i will try to make it for you.
OK
Aug 28 '07 #7
kadghar
1,295 Expert 1GB
Hi

i think a good start will be knowing the basic Rnd commands and how to make a selection of numbers.

To make a random playing card:
Lets say you want to select 16 random numbers from 1 to 99 without repeating any. this code will help you put them in an array:

Expand|Select|Wrap|Line Numbers
  1. sub RNumbers()
  2. dim i as integer
  3. dim j as integer
  4. dim Boo1 as boolean
  5. dim Array(1 to 16) as integer
  6. array(1) = int(rnd * 99 +1)
  7. i= 2
  8. do
  9.     array(i) = int(rnd * 99 +1)
  10.     boo1=false
  11.     for j = 1 to i-1
  12.         if array(j) = array(i) then boo1=true
  13.     next
  14.     if boo1=false then i = i+1
  15.     if i = 17 then exit do
  16. loop
  17. end sub
after that, you can just have a thing making random numbers that havent been used before. its almost the same code.

Good Luck
Aug 28 '07 #8
Hi

i think a good start will be knowing the basic Rnd commands and how to make a selection of numbers.

To make a random playing card:
Lets say you want to select 16 random numbers from 1 to 99 without repeating any. this code will help you put them in an array:

Expand|Select|Wrap|Line Numbers
  1. sub RNumbers()
  2. dim i as integer
  3. dim j as integer
  4. dim Boo1 as boolean
  5. dim Array(1 to 16) as integer
  6. array(1) = int(rnd * 99 +1)
  7. i= 2
  8. do
  9.     array(i) = int(rnd * 99 +1)
  10.     boo1=false
  11.     for j = 1 to i-1
  12.         if array(j) = array(i) then boo1=true
  13.     next
  14.     if boo1=false then i = i+1
  15.     if i = 17 then exit do
  16. loop
  17. end sub
after that, you can just have a thing making random numbers that havent been used before. its almost the same code.

Good Luck
yea man that what im looking for but
how to make it check the list1.additem label1.caption
label1.caption = int(rnd*100)+1
list1.additem label1.caption

now the question is where do i put the anti-repeat
what i want is:
the number from label1.caption will be recorded into list1.additem
now that numbers are in the list1.additem thingy

how to make it check number in the list1.additem thingy.

or any alternative option to store the numbers in a visual form but checks the number if existed it change another number and so on.
if any1 dont understand i'll post a GUI draft.
Aug 30 '07 #9
kadghar
1,295 Expert 1GB
or any alternative option to store the numbers in a visual form but checks the number if existed it change another number and so on.
if any1 dont understand i'll post a GUI draft.
yeap, save them into an array, listbox, or wherever you want, check out the code i've posted before, it does exactly what you want, just that im not saving the numbers into a list, but into an array. The code should be almost the same.
Aug 30 '07 #10
Ali Rizwan
925 512MB
i want to make a bingo game on vb6 and dont really know which codes to use
any1 gimme some ideas?
Hi
If you are serious in making of gamr then i will with you for this purpose. Reply me. My plus point is that i m good designer and can create my own images.
Aug 31 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: me | last post by:
Hey all, I am making a 4 in a row game in flash MX. Wel i do it a bit pimitief like sending respons from the swf file to the php-mysql handler to see if the other user has make a move. I...
21
by: BlackHawke | last post by:
My name is Nick Soutter, I own a small game development company (www.aepoxgames.net) making our first game (www.andromedaonline.net) in java. I am writing because we are having a very...
2
by: John F Dutcher | last post by:
Can anyone comment on why the code shown in the Python error is in some way incorrect...or is there a problem with Python on my hoster's site ?? The highlites don't seem to show here...but line...
138
by: theodp | last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml Microsoft Patents Saving The Name Of A Game Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM from the...
1
by: Les | last post by:
In ancient times I had a desire to make a game and I started to do so, I quickly found the project was beyond the hardware's capability for that era (even in assembler) and had to shelf the...
18
by: jaso | last post by:
Hi, I'm making this video game in C. The game contains a player, enemies and bullets. These objects, which are arrays of structures, are initialized, updated and drawn in a game loop. Now I am...
1
hpbutterbeer
by: hpbutterbeer | last post by:
We have a Machine Project and my brain is currently in a clouded state. Sorry, I'm just a beginner in C Programming... Text twist is a windows game whose main objective is to form words out of the...
0
by: Jeff Rush | last post by:
At PyCon this year we're going to have a multi-day game programming clinic and challenge. This is a first-time event and an experiment to find those in the Python community who enjoy playing and...
1
by: Gomi | last post by:
Hi guys I'm new to C++ Programming and I am having trouble in making my Guessing game code replay. I am suppose to give the user that is playing my game the opportunity to play again with options of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.