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

Username:   Password: 
 RegisterRegister   
 Break Breaker Turing help URGENT
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gibbit612




PostPosted: Mon Jan 03, 2011 9:28 pm   Post subject: Break Breaker Turing help URGENT

What is it you are trying to achieve?
<Hi im in Gr.10 and im trying to create break breaker but im struggling<>>


What is the problem you are having?
<placing ball, move box you control, bounce ball off your box, delete box that ball hits>

Turing:


<var q, w, q1, w1, x, y : int
var fullName, answer : string

q := 200
w := 0
q1 := 310
w1 := 20
x := 10
y := 360

View.Set ("graphics:800;500")

put " Hello welcome to the brick breaker game! "

delay (1000)

put " Please Enter your full name in brackets: " ..
get fullName

cls

put " Hello ", fullName, " Welcome! Would you now like to play? (y/n)" ..
get answer

if answer = "y" then
    cls
    put " Loading..."
    delay (2000)

else
   
    put " Program Complete!"
    delay (5000)
end if


cls
for a : 1 .. 5
    for b : 1 .. 9
        drawfillbox (x, y, x + 60, y + 15, 7)
        x := x + 70
    end for
    x := 10
    y := y - 30
end for

drawfillbox (q, w, q1, w1, green)
>



Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jan 03, 2011 9:53 pm   Post subject: RE:Break Breaker Turing help URGENT

Follow the Turing Walkthrough to get yourself familiar with keyboard input (Input.KeyDown variety) and arrays
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: