Computer Science Canada

hey newby to turing Some of my work

Author:  duelpoint [ Thu Jan 26, 2006 10:59 pm ]
Post subject:  hey newby to turing Some of my work

hey guys my first cs class in like 2 weeks i am in grade 10 and i thought i would get a head start cuz i 2 hard subjects nex sem so it would help me alot if u can see some of my work and see and point out my errors
i did around 5 projects and heres the codes
this is my latest one i was bored i think i should have used the loop but not sure
code:
var name : string
var text2 : string
var text : string
put "Hello, whats your name ?"
get name
put "Hello ", name ,"do you like music? y/n"
get text
if text = "y" then
put "Here's my music and tell me if its good? okay"
play ("<+A")
        play (">8fdyjasgf")
        play ("<<1-a-b-c-d")
        play (">8sldyhlashdlkjashdasdkkkk")
        play ("<>8adcgagggb-b-a")
        play ("<>8asasjkjslkajsghdsksgadhkasdgfghdsfkkjashgdsgadhgkshfhgsfdhgkjas>jgasdasfdjhdgasdkashgdjgasdgklkasfdgaskd")
 
    put "could you tell me if it was good or bad? by saying good/bad? i get confused when you use big words :P"
    get text2
    if text2 = "good" then
    put "Thank you very much ", name," i am sure u are a good music composer too we should write a duet some time"
    end if
    if text2 = "bad" then
    put "well i bet you dont even know how to read music pshh what would a loser like you know about music"
    end if
    else
    put "I asked if my music is good or bad not if it was amazing or horrible... dont be a smarty pants and use big words"             
    end if
 


this was the first program i wrote Razz ( was so happy)

code:
var name : string
put "What is your name?"
get name
put "Hello ", name , "!"
var age : string
put "How old are you"
get age
put"I dont care how old you are ", name,"!"
var Placewhereyoustudy : string
put "Where do you study ", name,"."
get Placewhereyoustudy
put "A smarty pants eh well i dont care if your smarter than me ", name, " You cant be that smart because you are talking to a computer"


this is one of the projetc i did in the middle oh for this one how come the view.set() didnt work?
code:
var x,y :int
x := 100
y := 100

loop

var chars : array char of boolean
    Input.KeyDown (chars)
    if chars (KEY_DOWN_ARROW) then
        y := y-5
    end if
    if chars (KEY_UP_ARROW) then
        y := y+5
    end if 
    if chars (KEY_RIGHT_ARROW) then
        x := x+5
    end if
    if chars (KEY_LEFT_ARROW) then
        x := x-5
    end if   
    drawoval(x,y,10,10,green)
    drawfilloval(x,y,10,10,green)
    delay (5)

cls
end loop


yup theres most of my projects the rest are pretty similar so if u guys can point out on my improvements that would be much appreciated Smile

Author:  Tony [ Thu Jan 26, 2006 11:07 pm ]
Post subject: 

two generic advices are to follow the Turing Walkthrough, and to see if you can make sence of all the [Turing Source Code] submissions Wink

Author:  Clayton [ Thu Jan 26, 2006 11:17 pm ]
Post subject: 

eventually youll learn to compress your code a bit, but i mean, if this is just the beginning for you then wat else can be expected right? i also agree w/ tony, check the walkthrough, and go to the tutorial forum here and check it out. this is an extremely helpful thread and is normally explained decently well for beginners

Author:  duelpoint [ Fri Jan 27, 2006 3:51 pm ]
Post subject: 

thanks guys

Author:  Rasta Fella [ Fri Jan 27, 2006 4:26 pm ]
Post subject: 

Yeah, your code lines could get shorter...but it's your first time so that good then.

Author:  duelpoint [ Sat Jan 28, 2006 12:36 pm ]
Post subject: 

thanks rasta

Author:  skootles [ Sun Jan 29, 2006 12:14 am ]
Post subject: 

When I say I don't like music (obviously a lie, haha), it tells me not to use big words Sad

But those are pretty good for first tries Cool

Author:  bgmrk [ Sun Jan 29, 2006 12:41 am ]
Post subject: 

when i type my name.... nd it says hello, there is no space between the name and "do".

Author:  duelpoint [ Sun Jan 29, 2006 10:23 am ]
Post subject: 

skootles wrote:
When I say I don't like music (obviously a lie, haha), it tells me not to use big words Sad
Cool



lol


code:
when i type my name.... nd it says hello, there is no space between the name and "do".


Yea i forgot to put one between the " and the name...


THanks on the comment guys

Author:  duelpoint [ Sun Jan 29, 2006 10:34 am ]
Post subject: 

Umm hey guys i have a question i just didnt want to start a new thread soi thought i might post it here k any way i use 3d max photoshop and other programs and i make newby commercials in adobe premier for my tech class so could you insert any of these into turing ? like for example import 3d bats and ball and make 3d ping pong or volyball or brick ? many other games so if you can is it the same command as normal pictures?

like hers one of my pic made in 3d max

Posted Image, might have been reduced in size. Click Image to view fullscreen.

so i if i could i can make a maze game like zoom in and etc...

Author:  Delos [ Sun Jan 29, 2006 11:17 am ]
Post subject: 

That's a nice picture you have there.

And in answer to your questions, yes all of that is possible. Now don't get too excited. Turing is notorious for being utterly terrible at 3D-type graphics. Why? Because it involves such a huge amount of processing and, well, Turing can only do so much.
I'm sure there are more technicaly reasons, but I neither know them nor would want to.

This is quite likely the single greatest 3D engine written in Turing. A fellow by the name of Catalyst also did some amazing work a while back.

If you can look at any given section of that code and intuitively know what zylum was trying to say - then you're using the wrong programming language.
Go teach yourself Ruby or something, Turing is far too limiting.
I should really take my own advice sometimes. This is actually a great idea! Yeah, Ruby!

Author:  duelpoint [ Sun Jan 29, 2006 9:49 pm ]
Post subject: 

thanks delos i will check it out but one thing it isnt running when i press run ? so how do i make it work? sorry for the newby question but like how do u run a hige game that has a diff rent engine like rpg games and this one thanks

Author:  Delos [ Sun Jan 29, 2006 9:53 pm ]
Post subject: 

Uh, what are you trying to run...and with what? Please be a little more specifc. Contrary to popular belief, I'm only partly clairvoyent.
As for your second question... Question is about all I can say Very Happy.

Author:  [Gandalf] [ Mon Jan 30, 2006 3:47 am ]
Post subject: 

It's not running when you press "run" because you have to tell the framework that zylum made to do something. You'll have to read up on classes and how to use them to utilize zylum's engine. But, before you do that, read up on the Turing Walkthrough.

Ha! So much for clairvoyency!

Author:  duelpoint [ Mon Jan 30, 2006 7:31 am ]
Post subject: 

kk Thanks guys!
Thanks anyways delos, but gandalf answered the question.
I shoud be a little more specific Razz from next time.

Author:  MihaiG [ Mon Jan 30, 2006 10:26 am ]
Post subject: 

first of all..

zyums 3d engine models were made in blender(an awesome 3d software its open sourced)

you need a special converter to convert different files to just the 3d points needed for the engine.

make sure your model is made interily out of triangles....thats how it works from what i know ....u cna always pm zylum
]

im currently working on an awesome blender project.. Twisted Evil

Author:  duelpoint [ Mon Jan 30, 2006 2:34 pm ]
Post subject: 

Nice i heard blender is good
I work on 3d max yea i know what you mean its polygons and have to ave les segments because turing cant cope with a tone of segments and i dont even have enough memory to run more the 5 segments (Dont know if segments is what it calls but thats what i call it till i can know what its called lol Razz )

Author:  Mr. T [ Mon Jan 30, 2006 10:33 pm ]
Post subject:  Alex's Opinion

Delos wrote:
This is quite likely the single greatest 3D engine written in Turing. A fellow by the name of Catalyst also did some amazing work a while back.

Zylum you mean.

Author:  Andy [ Mon Jan 30, 2006 11:09 pm ]
Post subject: 

read what he wrote...
Quote:
A fellow by the name of Catalyst also did some amazing work a while back.

Author:  Delos [ Mon Jan 30, 2006 11:53 pm ]
Post subject:  Re: Alex's Opinion

Pwned wrote:
Zylum you mean.


And it's "zylum"...Very Happy


: