Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 I'm bored.
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DarkHelmet




PostPosted: Wed Apr 09, 2003 3:43 pm   Post subject: I'm bored.

I'm bored. Does anyone have any ideas about programs i could write? I'm not in computer class any more, and i need something to pass the time.
Sponsor
Sponsor
Sponsor
sponsor
Asok




PostPosted: Wed Apr 09, 2003 4:44 pm   Post subject: (No subject)

make a program that has an oval that is controlled through keyboard and the getch() function. Then make it so that when the user hits space, a second oval is created that moves vertically from the position of the first oval. It should reset once the 2nd oval is no longer visable so the user can hit space again (loop)

enjoy Smile
DarkHelmet




PostPosted: Wed Apr 09, 2003 5:19 pm   Post subject: (No subject)

child's play.


var intposx : int
var intposy : int
var intx : int
var inty : int
var chars : array char of boolean
intposx := 150
intposy := 50
View.Set("offscreenonly")
loop
delay(50)
cls
Input.KeyDown (chars)
if chars (KEY_RIGHT_ARROW) then
if intposx < maxx - 10 then
intposx += 10
end if
elsif chars (KEY_LEFT_ARROW) then
if intposx > 10 then
intposx -= 10
end if
elsif chars (KEY_UP_ARROW) then
if intposy < maxy - 10 then
intposy += 10
end if
elsif chars (KEY_DOWN_ARROW) then
if intposy > 10 then
intposy -= 10
end if
elsif chars (' ') then
intx := intposx
inty := intposy
loop
cls
inty += 10
Draw.FillOval (intx - 18, inty - 18, 6, 6, 12)
Draw.FillOval (intposx - 15, intposy - 10, 30, 20, 7)
Input.KeyDown (chars)
if chars (KEY_RIGHT_ARROW) then
if intposx < maxx - 10 then
intposx += 10
end if
elsif chars (KEY_LEFT_ARROW) then
if intposx > 10 then
intposx -= 10
end if
elsif chars (KEY_UP_ARROW) then
if intposy < maxy - 10 then
intposy += 10
end if
elsif chars (KEY_DOWN_ARROW) then
if intposy > 10 then
intposy -= 10
end if
end if
exit when inty >= maxy
delay(50)
View.Update
end loop
end if
Draw.FillOval (intposx - 15, intposy - 10, 30, 20, 7)
View.Update
end loop
Catalyst




PostPosted: Wed Apr 09, 2003 5:23 pm   Post subject: (No subject)

try writing a rpg, or even more complicated a RTS (i gave up on the rts i was making due to how long it was)
DarkHelmet




PostPosted: Wed Apr 09, 2003 5:31 pm   Post subject: (No subject)

RPG sounds good. i'll give that a shot. thanks for the ideas.
Tony




PostPosted: Wed Apr 09, 2003 6:44 pm   Post subject: (No subject)

make sure to read azndragon's tutorial Wink A lot of useful info Very Happy

Better yet make the plotline about programming in some way or the other. This way we can all enjoy it and maybe even rewrite it into a multiplayer C++ if things go well :8
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
DarkHelmet




PostPosted: Wed Apr 09, 2003 8:07 pm   Post subject: (No subject)

how exactly would I go about making the plot about programming?
FwuffyTheBunny




PostPosted: Thu Apr 10, 2003 12:22 pm   Post subject: (No subject)

hey about that rpg, can sum1 give me some info about sprites, i heard that truing 4 dont support them, so whut do i do to make one, lil help plz, thx
Ravage




PostPosted: Thu Apr 10, 2003 12:27 pm   Post subject: (No subject)

You could always make the plotline into a reboot type game, that's the only way I could think of how to make the plotline about programming.
Catalyst




PostPosted: Thu Apr 10, 2003 2:19 pm   Post subject: (No subject)

could be about a hacker... they deal with computer.programming stuff
Blade




PostPosted: Thu Apr 10, 2003 2:41 pm   Post subject: (No subject)

lol, even though sprites arent supported in turing 4, their help manual has the commands and descriptions on how to use them
Tony




PostPosted: Thu Apr 10, 2003 5:20 pm   Post subject: (No subject)

the real way of actually putting sprites on your screen would be to use picMerge picture mode.

as for RPG, it COULD be about a hacker. Walk around, hack computers Wink. Or fix them and earn money. You can compleat quests to get new programs to use or something Razz

You can fight against viruses and bugs... there's a lot of things you can make up
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
FwuffyTheBunny




PostPosted: Fri Apr 11, 2003 11:26 am   Post subject: (No subject)

So, i actually cant use sprites then?
Tony




PostPosted: Fri Apr 11, 2003 6:23 pm   Post subject: (No subject)

not the same way as you did in v3.

just use regular pictures. If you need transparent background, use picMerge instead of picCopy mod
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: