
-----------------------------------
DifinityRJ
Mon Jan 08, 2007 8:09 pm

My take on Mario
-----------------------------------
Hi, im in grade 10 and for my ISU i making a Mario game. This is my first year in programming, and Turing is my first language. Yes, it isn't exactly like Mario, i know. Also it isn't completely done, but i would like some constructive comments on how the game feels, and its fun factor for you. You move with arrow keys and jump with Space.

Note: This isn't a sidescroller, its basically rooms.

-----------------------------------
CodeMonkey2000
Mon Jan 08, 2007 8:38 pm

RE:My take on Mario
-----------------------------------
Thats pretty good. There are some problems with collisons though. Cant wait to see more updates.

-----------------------------------
DifinityRJ
Mon Jan 08, 2007 8:41 pm

Re: My take on Mario
-----------------------------------
im using Math.Distance for my collision, is there any better way to do it?

-----------------------------------
CodeMonkey2000
Mon Jan 08, 2007 8:48 pm

RE:My take on Mario
-----------------------------------
Well I used my own collision function on my mario game(it's an updated verson of my program here) that checks if two images are colliding. The same function is used for level and enemy collision.

-----------------------------------
DifinityRJ
Mon Jan 08, 2007 8:57 pm

Re: My take on Mario
-----------------------------------
I havent learnt record or functions or .floor, i dont even know what that is. Pretty much the code doesn't make any sense to me.

-----------------------------------
Clayton
Mon Jan 08, 2007 9:03 pm

Re: My take on Mario
-----------------------------------
then take a look through the Turing Walkthrough at all of the great tutorials :D a quick runthrough:

Records:

records are collections of data, meaning you can make them hold anything you want, ie:


var foo : 
    record :
        x, y :int
        name : string
    end record

foo.x := 5
foo.y := 10
foo.name := "bob"


Functions:

Functions are methods that compute new values from arguments passed to it, and return that value, ie:


function foo (num, num2 : int) : int
    return num + num2
end foo

put foo (5, 5)


-----------------------------------
CodeMonkey2000
Mon Jan 08, 2007 9:03 pm

RE:My take on Mario
-----------------------------------
you can look at the turing tutorials for info on functions,records and Mario.floor is just a variable (it shows up as a predefied function at school for some reason). I dont get how you are using Math.Distance though. I would just use x,y comparison.

-----------------------------------
Clayton
Mon Jan 08, 2007 9:06 pm

Re: My take on Mario
-----------------------------------
sorry, my function code should have been as follows:


function foo (num, num2 : int) : int
    result num + num2
end foo

put foo (5, 5)


sorry for the confusion

-----------------------------------
DifinityRJ
Mon Jan 08, 2007 9:11 pm

Re: My take on Mario
-----------------------------------
Here is if Mario hits goomba, gy1 being goomba's y position and gx1 being his x position, and "x" being mario's x position, and "y" being Mario's y position.

 if y - 5 > gy1 and Math.Distance (x, y, gx1, gy1) 