Computer Science Canada

[Game] Dodge the Ball

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

Author:  jonos [ Wed Mar 17, 2004 10:05 pm ]
Post 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./

Author:  guruguru [ Wed Mar 17, 2004 10:37 pm ]
Post 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 ?

Author:  poly [ Wed Mar 17, 2004 11:46 pm ]
Post subject: 

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

Author:  Delos [ Thu Mar 18, 2004 4:21 pm ]
Post 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...

Author:  recneps [ Thu Mar 18, 2004 9:13 pm ]
Post 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)

Author:  Cervantes [ Fri Mar 19, 2004 7:23 pm ]
Post 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

Author:  the_short1 [ Sat Mar 20, 2004 6:29 pm ]
Post 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

Author:  Maverick [ Sat Mar 20, 2004 7:30 pm ]
Post subject: 

Pentum 3 600 mhz
320 mb RAM
32 mb Video Card

Time- Never got caught, extremely slow.

Author:  Cervantes [ Sat Mar 20, 2004 9:49 pm ]
Post 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.

Author:  jawaharyousuf [ Sun Mar 21, 2004 10:56 am ]
Post 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.

Author:  recneps [ Sun Mar 21, 2004 11:26 am ]
Post 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

Author:  jawaharyousuf [ Sun Mar 21, 2004 1:36 pm ]
Post 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.

Author:  Delos [ Sun Mar 21, 2004 5:55 pm ]
Post 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.

Author:  recneps [ Mon Mar 22, 2004 4:08 pm ]
Post subject: 

Sounds waaaaaaaaaay too complicated... but i shall figure it out! Very Happy

Author:  Martin [ Fri Mar 26, 2004 3:53 am ]
Post subject: 

xp 2000+
512 ram
128 vid

lasted 20 or so seconds.

Author:  Deshwitat [ Mon Apr 19, 2004 5:47 pm ]
Post subject: 

My Specs:
P4 3.0 GHz
1 Gig Ram
Windows XP Home
128mb GeForce 4 Ti 4600

Time Lasted: (Tested 3 times)
1. 10.67
2. 26.31
3. 41.78
Average: 26.25

Nice programming and pretty easy to play. Overall runs nicely and smoothly.

Author:  WhatAmIDoing [ Tue Apr 20, 2004 9:21 am ]
Post subject: 

i got
1. 0.68
2. 0.73
3. 0.92
4. 0.93

and i got shitty school comps. p4 and 64 mg RAM win XP

Author:  valor [ Thu Apr 22, 2004 11:04 pm ]
Post subject: 

1.7 ghz
512 ram
im not sure if this helps but i got a Radeon 7500

times:
1.07
1.05
1.06
0.87
average? im to lazy + it is 3 in the mornin

Author:  Andy [ Fri Apr 23, 2004 10:36 am ]
Post subject: 

juss twirl ur mouse in a circle

Author:  the_short1 [ Fri Apr 23, 2004 4:45 pm ]
Post subject: 

yea... except compsci reported that u posted that at 11PM heheheahahhaahah...


unless ur time zone settings are way off.....


either way.... i dont think video card has anything to do....
dam u and ur wicked VIDEO card... **at least compared to my peice of crap Wink

anyways..... i like how the AI moves... it works very well...

Author:  metropolitan_man [ Tue Apr 27, 2004 4:59 pm ]
Post subject: 

pentium 4 3.0 ghz
1024mb ram
256 meg geforce xfs graphics card
4x dvd rw
dvd rom
logitech z540
audigy 2 sound card

and that was all for 1600 bux..can u beleave that...these chineese strores WOW...and all original too... Surprised Very Happy Question Exclamation

Author:  LiquidDragon [ Mon May 03, 2004 2:03 pm ]
Post subject: 

21.44 seconds Laughing

penitum 4 1.4 Ghz
512 mb ram
nvidia gforce2


: