
-----------------------------------
DarkHelmet
Wed Apr 09, 2003 3:43 pm

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.

-----------------------------------
Asok
Wed Apr 09, 2003 4:44 pm


-----------------------------------
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 :)

-----------------------------------
DarkHelmet
Wed Apr 09, 2003 5:19 pm


-----------------------------------
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
Wed Apr 09, 2003 5:23 pm


-----------------------------------
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
Wed Apr 09, 2003 5:31 pm


-----------------------------------
RPG sounds good. i'll give that a shot. thanks for the ideas.

-----------------------------------
Tony
Wed Apr 09, 2003 6:44 pm


-----------------------------------
make sure to read azndragon's tutorial :wink: A lot of useful info :D

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

-----------------------------------
DarkHelmet
Wed Apr 09, 2003 8:07 pm


-----------------------------------
how exactly would I go about making the plot about programming?

-----------------------------------
FwuffyTheBunny
Thu Apr 10, 2003 12:22 pm


-----------------------------------
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
Thu Apr 10, 2003 12:27 pm


-----------------------------------
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
Thu Apr 10, 2003 2:19 pm


-----------------------------------
could be about a hacker... they deal with computer.programming stuff

-----------------------------------
Blade
Thu Apr 10, 2003 2:41 pm


-----------------------------------
lol, even though sprites arent supported in turing 4, their help manual has the commands and descriptions on how to use them

-----------------------------------
Tony
Thu Apr 10, 2003 5:20 pm


-----------------------------------
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 :P

You can fight against viruses and bugs... there's a lot of things you can make up

-----------------------------------
FwuffyTheBunny
Fri Apr 11, 2003 11:26 am


-----------------------------------
So, i actually cant use sprites then?

-----------------------------------
Tony
Fri Apr 11, 2003 6:23 pm


-----------------------------------
not the same way as you did in v3.

just use regular pictures. If you need transparent background, use picMerge instead of picCopy mod
