Offtopic Any topics not related to the games we cover. Doesn't mean this is a Spam-fest. Profanity is allowed, enter at your own risk. |
 Programmers! HELP! |
|
|
1st Lieutenant
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
|
Programmers! HELP! -
11-26-2002, 08:23 PM
ok, i'm my computer engineering class which the damn school put me, we are doing a project with Qbasic. and this is all I know in qbasic
INPUT "hello, what is your name "; username$' "."
PRINT "hello, "; username$;
and I need major help on it! out game is basicly you are late for school and you have options but each option has a diff. one and I diff. conseqence! this is what I have so far for the lay out, and this is purely text!
1) You wake up and find out your late for school.
a) Get up and rush to school.
b) stay home and wait till next class
c) Take your time since your already later
1a) You rush to school and your sent for a late slip
a) sign in and go back to class
b) Sign in and wonder around
c) don't sign in and go to the library
1b) Your sitting down watcing TV and you think...
a) I should go to school know!
b) Head to school and wait around for next class
c) Do something to not think about skipping
1c)
a) While walking think up a good excuse
b) Pick up the pace so your not in SO much trouble
thnx alot!
|
|
|
 |
|
|
Senior Member
Posts: 196
Join Date: Aug 2002
|

11-26-2002, 08:29 PM
yeah, well I not to smart with computers so I use the old "kicking method"
you should try works well.... for awhile biggrin:
|
|
|
 |
|
|
1st Lieutenant
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
|

11-26-2002, 08:47 PM
?????????????
|
|
|
 |
|
|
Senior Member
Posts: 196
Join Date: Aug 2002
|

11-26-2002, 08:49 PM
yeah .... evil: evil: evil: evil: evil:
Why Should I help you?
|
|
|
 |
|
|
Senior Member
Posts: 5,158
Join Date: Jan 2002
Location: Gatineau, Qc, Canada
|

11-26-2002, 08:59 PM
[quote:9aa92]1) You wake up and find out your late for school.
a) Get up and rush to school.
b) stay home and wait till next class
c) Take your time since your already later
1a) You rush to school and your sent for a late slip
a) sign in and go back to class
b) Sign in and wonder around
c) don't sign in and go to the library [/quote:9aa92]
I don't know how to program yet but I'm assuming you will play with IFs and
THENs, correct ?
It's just a simple hierarchy thing...
{ THIS IS THE BIG SET
......... IF { THIS IS A SMALLER SET
.................. THEN { EVEN SMALLER SET #1}
}
.........IF { THIS IS A SMALLER SET
.................. THEN { EVEN SMALLER SET #2}
}
}
Get the idea? Again, I don't know shit about programming yet so this is just
what I think I got from watching a friend going at it...
|
|
|
 |
|
|
Major General
Posts: 12,683
Join Date: Jan 2002
Location: Calgary
|

11-26-2002, 09:14 PM
I don't know qbasic.
is it anything like c++?
|
|
|
 |
|
|
1st Lieutenant
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
|

11-26-2002, 09:48 PM
thnx soli, I kinda get it, and ninty9 I have no clue, never really used c++ but this kinda what you do
CLS
INPUT "hello, what is your name? "; username$' "."
PRINT " hello, "; username$;
INPUT "How are you today? "; username$;
and so on...
|
|
|
 |
|
|
Senior Member
Posts: 2,735
Join Date: Oct 2002
Location: Perpetual Photoshopping
|

11-26-2002, 10:45 PM
I don't know what it would be in QBasic, but to do it in C:
I would use a string for the username thing, then a bunch of if or switch/break statements for the actual gameplay options.
|
|
|
 |
|
|
Junior Member
Posts: 14
Join Date: Nov 2002
Location: next to germ my new best friend
|

11-27-2002, 12:58 AM
i am a programmer i got my microwave working what do you need help with
|
|
|
 |
|
|
Private 1st class
Posts: 232
Join Date: Jan 2002
Location: Hebron, CT, USA
|

11-27-2002, 10:42 AM
I can do games in C++, it just takes time. Art, I forgot to ask you, does this game require graphics in QBASIC?
|
|
|
 |
|
|
Guest
|

11-27-2002, 10:44 AM
just what we need another HUGE asian prince sig
|
|
|
 |
|
|
Senior Member
Posts: 12,585
Join Date: Jan 2002
Location: Staten Island, NY, USA
|

11-27-2002, 12:14 PM
Quote:
Originally Posted by Strik0r
just what we need another HUGE asian prince sig
|
More like another HUGE moron.
|
|
|
 |
|
|
Senior Member
Posts: 8,546
Join Date: Jan 2002
Location: I don't know
|

11-27-2002, 12:23 PM
I know how to turn my computer on..... that's about it.
|
|
|
 |
|
|
Senior Member
Posts: 1,035
Join Date: Jan 2002
Location: Ottawa, Ontario
|

11-27-2002, 12:42 PM
Dont know anything about QBasic, but it has to have if then statements
(if it has switch statements you could use them too, but there's not really many selections there) You want something along the lines of :
1) if (a == "get up and rush to school) then
if (b == "sign in and go to class) then
do something
else if (b == "sign in and wander around")
do something else
else
do some other thing
else if (a ==....
ie, bunch of embedded if's
what school still teaches QBasic though? that really sucks big!!
Get into a good C++ program then ask lol
|
|
|
 |
|
|
1st Lieutenant
Posts: 4,807
Join Date: Jan 2002
Location: Ottawa, Ont, Canada
|

11-27-2002, 12:43 PM
haha, um....no Cethin, the game us purely text wise, and you have like options
1)goto school
2)stay home
that kinda stuff and it doesn't gotta be very long of a game.
|
|
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Powered by vBulletin® Version 3.8.12 by ScriptzBin Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.
|