Computer Science Canada

I'm bored.

Author:  DarkHelmet [ 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.

Author:  Asok [ Wed Apr 09, 2003 4:44 pm ]
Post 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

Author:  DarkHelmet [ Wed Apr 09, 2003 5:19 pm ]
Post 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

Author:  Catalyst [ Wed Apr 09, 2003 5:23 pm ]
Post 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)

Author:  DarkHelmet [ Wed Apr 09, 2003 5:31 pm ]
Post subject: 

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

Author:  Tony [ Wed Apr 09, 2003 6:44 pm ]
Post 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

Author:  DarkHelmet [ Wed Apr 09, 2003 8:07 pm ]
Post subject: 

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

Author:  FwuffyTheBunny [ Thu Apr 10, 2003 12:22 pm ]
Post 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

Author:  Ravage [ Thu Apr 10, 2003 12:27 pm ]
Post 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.

Author:  Catalyst [ Thu Apr 10, 2003 2:19 pm ]
Post subject: 

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

Author:  Blade [ Thu Apr 10, 2003 2:41 pm ]
Post subject: 

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

Author:  Tony [ Thu Apr 10, 2003 5:20 pm ]
Post 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

Author:  FwuffyTheBunny [ Fri Apr 11, 2003 11:26 am ]
Post subject: 

So, i actually cant use sprites then?

Author:  Tony [ Fri Apr 11, 2003 6:23 pm ]
Post 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


: