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

Username:   Password: 
 RegisterRegister   
 Wormy !
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
fishtastic




PostPosted: Sat Jan 05, 2008 3:29 pm   Post subject: Wormy !

I was bored ..Mr. Green
If someone already submitted something like this before, then sorry about that.
Have fun!

Turing:



% Wormy by fishtastic.
% you can also hold mouse button to give wormy a little speed boost

var total := 1
var x : array 1 .. 200 of real
var y : array 1 .. 200 of real
var sx, sy := 0.0
var mx, my, mc : int
var r := 0
var ix, iy := 50

View.Set ("offscreenonly")
colorback (black)
color (white)
var temp := 1 / total * 0.5
for i : 1 .. 200
    x (i) := 100.0
    y (i) := 100.0
end for


loop
    put total, "/200"
    drawfilloval (ix, iy, 10, 10, total + 1)
    drawoval (ix, iy, 10, 10, Rand.Int(1,255))

    for i : 1 .. total
        r := round (10 + (maxx - y (i)) / 100)
        drawfilloval (round (x (i)), round (y (i)), r, r, i)
    end for


    mousewhere (mx, my, mc)
    if mc = 1 then
        sx += (mx - x (1)) / 200
        sy += (my - y (1)) / 200
    end if

    if Math.Distance (x (1), y (1), ix, iy) < 15 then
        total += 1
        ix := Rand.Int (1, maxx)
        iy := Rand.Int (1, maxy)
        if total = 200 then
            cls
            put "you win!!"
            View.Update
            exit
        end if
    end if

    sx += (mx - x (1)) / 2000
    sy += (my - y (1)) / 2000
    x (1) += sx
    y (1) += sy

    for i : 2 .. total
        x (i) := (x (i) + x (i - 1)) / 2
        y (i) := (y (i) + y (i - 1)) / 2
    end for

    sx *= 0.99
    sy *= 0.99

    delay (10)
    View.Update
    cls
end loop


Sponsor
Sponsor
Sponsor
sponsor
shakin cookie




PostPosted: Sat Jan 05, 2008 5:33 pm   Post subject: RE:Wormy !

is there a way to lose? That is one of the points of Worm.

Other than that, i like the 3D-ish feel.

Very good job
Gackt




PostPosted: Sat Jan 05, 2008 6:20 pm   Post subject: RE:Wormy !

That Is Pretty Awesome!
fishtastic




PostPosted: Sat Jan 05, 2008 8:39 pm   Post subject: Re: RE:Wormy !

Gackt @ Sat Jan 05, 2008 5:20 pm wrote:
That Is Pretty Awesome!

thank!
shakin cookie @ Sat Jan 05, 2008 4:33 pm wrote:
is there a way to lose? That is one of the points of worm.

no there is no way to lose.
you are probably thinking about snake game.
DIIST




PostPosted: Sat Jan 05, 2008 10:08 pm   Post subject: Re: Wormy !

pretty cool. You should look into the RGB module. It could probbly make you worm look a lot cooler.

Wink
petree08




PostPosted: Wed Jan 16, 2008 11:32 am   Post subject: RE:Wormy !

Um i just did a quick glance at the code, its pretty clean and easy to understand, I knew what it was going to do before i excecuted it good job!

This would be sweet if there was random enimies rolling around and if you hit one you shrink (or some other enemey v.s player mechanics) the AI could be tricky but it would be worth it

keep up the clean code
yeah 100th post lol
Mr. Green
fishtastic




PostPosted: Wed Jan 16, 2008 6:39 pm   Post subject: Re: RE:Wormy !

petree08 @ Wed Jan 16, 2008 10:32 am wrote:
Um i just did a quick glance at the code, its pretty clean and easy to understand,
keep up the clean code
yeah 100th post lol
Mr. Green

congrats for 100 th post.
my code is very confusing in the game that I am working right now.
yusong




PostPosted: Thu Jan 24, 2008 8:05 pm   Post subject: RE:Wormy !

It was a cool game, it kept me occupied for like 15 minutes in Computer Sciences Club, right Fishtastic?
I think adding enemies would be a good idea because it gets boring after a while.
Sponsor
Sponsor
Sponsor
sponsor
Nyrd




PostPosted: Sun Feb 10, 2008 10:18 pm   Post subject: RE:Wormy !

I must admit that at first the game looks lame, but when the worm starts growing it actually looks pretty cool. Because of this I'd give your worm a longer starting length. Also, some enemies and such would be interesting.

Apart from that, your worm is pretty trippy!
Michael516




PostPosted: Thu Mar 13, 2008 10:26 am   Post subject: Re: Wormy !

nice game. the 3d effect was really neat.
A.J




PostPosted: Thu Mar 13, 2008 10:38 am   Post subject: Re: Wormy !

hey fishtastic!
good game, and see if you can add the A* again for this game in adding enemies.
I'll see if I can do it, but I am not that good with A* implementation myself Very Happy
fishtastic




PostPosted: Thu Mar 13, 2008 12:47 pm   Post subject: Re: Wormy !

Michael516 @ Thu Mar 13, 2008 9:26 am wrote:
nice game. the 3d effect was really neat.
thanks.

A.J @ Thu Mar 13, 2008 9:38 am wrote:
hey fishtastic!
good game, and see if you can add the A* again for this game in adding enemies.
I'll see if I can do it, but I am not that good with A* implementation myself Very Happy
no..... A.J...... You don't need A* for everything. Shocked Confused
there is no need for A* because there are no obstacles and the map is not really gird based.

If you want the enemy to follow you, all you need to do is to let them move and the angle toward you using simple trig. Mr. Green

but I did use A* in my Turing TD. Wink
A.J




PostPosted: Thu Mar 13, 2008 12:50 pm   Post subject: Re: Wormy !

I know that u don't need A*, but at first I thought your wormy game was like snake....
but after reading the other comments.....i found out that i screwed up..
anyways, i'll try adding A* to my crude snake game Very Happy

A.J
Doug101




PostPosted: Wed Apr 02, 2008 8:31 am   Post subject: Re: Wormy !

kick ass game loved it
repsoccer16




PostPosted: Fri Apr 04, 2008 7:45 am   Post subject: RE:Wormy !

amazing game and the 3d effect is pretty trippy.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 20 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: