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

Username:   Password: 
 RegisterRegister   
 [Game] Dodge the Ball
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
Delos




PostPosted: Wed Mar 17, 2004 9:52 pm   Post subject: [Game] Dodge the Ball

Here is a very simple game that I made this evening. I've been stressing over the whole tracker idea for the the last 2 days...and finally got it today after sifting through some of my older files.

Simple idea:
Dodge the ball.
Control using your mouse.
Your mouse is your character.

Note:
For test-purpose's sake, could anyone who tries this post the following:
Position your mouse as close to the middle of the screen as possible.
Allow the ball to hit you without moving.
Try this 3 or 4 times and post the average of the resulting time values.

I.e. If you got "You lasted 1.05 seconds", then 1.07, then 1.06, then 1.06; you'd post "4 tests, average of 1.06"

(You system specs would be great as well.)

This way, you get to enjoy a game, and I get to collect some useful data that could very well be employed by the community as a whole at a later date Smile.
Sponsor
Sponsor
Sponsor
sponsor
jonos




PostPosted: Wed Mar 17, 2004 10:05 pm   Post subject: (No subject)

No problems experienced...

But my specs:
1 gig ram
2.6 ghz processor

I think that's all you need.

It's kindof easy once you get the "secret", all you have to do is move your mouse in a continuous circle and it can't catch up. Very nice and smootj./
guruguru




PostPosted: Wed Mar 17, 2004 10:37 pm   Post subject: (No subject)

Cool program.

Specs (dont know specifics):
-Pentium 3 Processor
-Windows 2000 Professional
-IBM Thinkpad 570E
-Slow + Bad Graphics

Tested 5 times:
[1] 7.69
[2] 7.61
[3] 7.04
[4] 7.99
[5] 7.88
[Average] 7.64

Hope that helps 8) .

PS: Are those times surprisingly slow Confused ?
poly




PostPosted: Wed Mar 17, 2004 11:46 pm   Post subject: (No subject)

runs great....
Duron 1.2ghz
512mb pc133 ram
Delos




PostPosted: Thu Mar 18, 2004 4:21 pm   Post subject: (No subject)

guruguru wrote:
Cool program.

Specs (dont know specifics):
-Pentium 3 Processor
-Windows 2000 Professional
-IBM Thinkpad 570E
-Slow + Bad Graphics

Tested 5 times:
[1] 7.69
[2] 7.61
[3] 7.04
[4] 7.99
[5] 7.88
[Average] 7.64

Hope that helps 8) .

PS: Are those times surprisingly slow Confused ?


Wow. 7.64 average?! That IS slow. And you're on a P3...

Ah well...thanks for the help guys. Perhaps I'll update the game some time...make it a bit more challenging...
recneps




PostPosted: Thu Mar 18, 2004 9:13 pm   Post subject: (No subject)

1.6.66
2.6.66
3.6.53
4.6.72

avg:6.6425
celeron 633mhz
64 mb ram
Windows ME

was real choppy and slow :/

(shut up i know my comp sucks Very Happy)
Cervantes




PostPosted: Fri Mar 19, 2004 7:23 pm   Post subject: (No subject)

Not only a circle jonos! I was doing traingles and squares and all these wierd spins Smile

I always got between 1.5s and 2.0s

1.6ghz (P4)
512 MB ddr ram
the_short1




PostPosted: Sat Mar 20, 2004 6:29 pm   Post subject: (No subject)

a little ez on my peice of SHT comp... pent 1....150MHZ and 64 MB ram and 1.6 Gig hard drive and a 1gig HD... <<<not hooked up rite now tho.,.. :Sad

nice game tho.....
maybe ask the user to enter there PC speed in range of 1-5 5 being FAST
then.,...

for delay..

delay (10*comp) comp being the value entered in question///
... or... better yet,,,
Time.Delay (1000) one real life second
(500) half a real life second
etc etc... then it works on the system clock and shouldn;t be wrong...

hope that helps
Maverick




PostPosted: Sat Mar 20, 2004 7:30 pm   Post subject: (No subject)

Pentum 3 600 mhz
320 mb RAM
32 mb Video Card

Time- Never got caught, extremely slow.
Cervantes




PostPosted: Sat Mar 20, 2004 9:49 pm   Post subject: (No subject)

uhh.. maverick.. about the whole time part.. If you read his post you'd see he asked us to put the mouse in the centre and not move it, and time how long it took for the ball to get there. It was to test how the program related to specific computer speeds.
jawaharyousuf




PostPosted: Sun Mar 21, 2004 10:56 am   Post subject: (No subject)

Nice one delos, you finally made it. remember, i asked for your version of it about 2 months ago (Jan 28th i think), when i sent you mine? Looks quite similar to mine, except yours is a bit hi-tech with the box and everything. But the concept is the same i think.

2.0 GHz, got caught quite fast, there wasn't time to think. but then i got the hang of it, 6 seconds last time i tried.
recneps




PostPosted: Sun Mar 21, 2004 11:26 am   Post subject: (No subject)

How do you make it go to a specific point? (its probably really complicated, or you dont wanna tell us, but anyways....) Do you like make 100 different +x and +y things and check distnce? and see which one is shorter? lol Very Happy
jawaharyousuf




PostPosted: Sun Mar 21, 2004 1:36 pm   Post subject: (No subject)

oh no recneps, thats too slow. sorry delos, i'm letting out the secret (atleast thats how mine works)

you register the x and y values of mouse using mouse where. then using your current position, calculate the angle at which the mouse is located and draw an invisible line throught those points(10th grade geometry). by moving through that line, you'll reach the mouse. now, since the mouse keeps moving, the angle changes everytime and you keep drawing invisible lines. since drawing long lines takes time, you draw lines whose length is only one pixel. that saves processing time. That's how i did it.
Delos




PostPosted: Sun Mar 21, 2004 5:55 pm   Post subject: (No subject)

Took you long enough to spot this thread ydj. And...wait for it...

MUWAHAHAHAHAHAHAAAA. That's NOT how I made mine! I tried it like that at first, as the whole concept of creating lines w/ equations based on the coords of the ball/mouse were theoretically great. Then I started coding and found that to be too tedious...so I used another method instead...

I'll update this thread pretty soon...w/ short1's suggestion, as well as a bunch of other options.

In case you havn't noticed, this entire game is just a look into the wonderfully annoying world of delays.
recneps




PostPosted: Mon Mar 22, 2004 4:08 pm   Post subject: (No subject)

Sounds waaaaaaaaaay too complicated... but i shall figure it out! Very Happy
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  [ 23 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: