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

Username:   Password: 
 RegisterRegister   
 target game
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rsknights0




PostPosted: Mon Jan 07, 2008 4:41 pm   Post subject: target game

this is the game i made, im new to turing and i need some suggestions on how to improve it it doesnt do mutch just shoot at a target

var radconversion, theta : real
var x, y, font1,easy : int
var v, angle : real
font1 := Font.New ("serif:45")
radconversion := .017453293
colourback(brightblue) cls

put "pick your difficulty 1-Easy 2- Hard"
get easy

%Draw Basketball Player
drawoval (100, 180, 15, 15, black)
drawline (100, 165, 100, 100, black)
drawline (100, 140, 150, 160, black)
drawline (100, 140, 50, 160, black)
drawline (100, 100, 50, 60, black)
drawline (100, 100, 160, 50, black)

%Draw Target
if easy=1 then
drawfilloval (maxx-15,100,30,30,red)
drawfilloval (maxx-15,100,5,5,white)
elsif easy=2 then
drawfilloval (maxx-15,50,10,10,red)
drawfilloval (maxx-15,50,2,2,white)
else
put "Entered Wrong You Fail"
end if
colour(white)
put "Enter the initial velocity (1 - 25): " ..
get v
put "Enter the starting angle (0 -90): " ..
get angle
theta := angle * radconversion

x := 150
y := 150
for t : 1 .. 50
drawfilloval (round (x), round (y), 10, 10, grey)
drawfilloval (round (x), round (y), 10, 10, brightblue)
x := 150 + round (v * t * cos (theta))
y := 150 + round (v * t * sin (theta) - 0.5 * t * t)
drawfilloval (round (x), round (y), 10, 10, grey)
delay (50)
end for
Sponsor
Sponsor
Sponsor
sponsor
shakin cookie




PostPosted: Mon Jan 07, 2008 5:36 pm   Post subject: RE:target game

i do not understand the game, maybe you should include instructions. Also, change the blue background to something easier on the eyes. Finally, please use sprites, because that stick figure does not look at all professional .
TokenHerbz




PostPosted: Mon Jan 07, 2008 6:22 pm   Post subject: RE:target game

http://compsci.ca/v3/viewtopic.php?t=16370
Zren




PostPosted: Mon Jan 07, 2008 10:55 pm   Post subject: Re: target game

You also might wanta do some sort of collision detection with um...the backetball net, to show "SCORE" or "2 Points!" or whatever.

Also, no one would understand what the game true is without saying the title or something at the begining. Just because you insert the name in the comment files won't help the players any.
code:
%Draw Basketball Player
petree08




PostPosted: Tue Jan 08, 2008 9:54 am   Post subject: RE:target game

Also not many people want to play A game that requires them to manually enter force and vectors, mouse and key inputs would make it fun, also yeah stick ppl are only cool if they are animated but sprites are always better.
rsknights0




PostPosted: Tue Jan 08, 2008 4:31 pm   Post subject: Re: target game

my teacher made me do it like that lol
yesyes222




PostPosted: Thu Jan 10, 2008 11:15 am   Post subject: RE:target game

cool
TokenHerbz




PostPosted: Sun Jan 20, 2008 12:20 pm   Post subject: RE:target game

if i can enter in any number i want aside from what your program says, at least make it so i can complete the level if i hit the target.

An example would be....

difficulty: --> 2 (hard)
initial velocity --> 100
angle --> -10

As you see the ball goes right threw the target!
Sponsor
Sponsor
Sponsor
sponsor
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 1  [ 8 Posts ]
Jump to:   


Style:  
Search: