Computer Science Canada Gravity attempt |
Author: | lil_mickey [ Tue Jun 28, 2005 10:06 pm ] |
Post subject: | Gravity attempt |
here is my attempt at a 2d mario/sonic type gravity engine. Its quite primitive right now, but i would like to get some suggestion/ tips as to how you think i could improve..thanks in advance! [Edit: if this is in the wrong section, please feel free to move the thread to the appropriate section, Mods.} |
Author: | Delos [ Tue Jun 28, 2005 11:08 pm ] |
Post subject: | |
Not a bad first attempt. A few pointers: 1) F2 2) Look up the Tutorials on types and records, it will save you having to declare so many needless variables. 3) A little glitch (feature?): The first jump is always about twice as high as all subsequent jumps. 4) Add some restrictions so that the object cannot leave the screen (something like 'if obj.pX < maxx then...' + bits |
Author: | Shyfire [ Wed Jun 29, 2005 1:17 am ] |
Post subject: | |
ya im making a game using gravity heres a sample warning it is still unfinished |
Author: | lil_mickey [ Wed Jun 29, 2005 9:49 am ] |
Post subject: | |
yea that first jump thing really bewilders me...ill look into it. As for the Mario game, it looks good so far...the jumping looks good, may i see the code for it? but anyways, thanks for the tips (and the bits), ill go work on it some more. |
Author: | Shyfire [ Wed Jun 29, 2005 9:43 pm ] |
Post subject: | |
sure ill pm it to you just dont show it to the whole world k |
Author: | lil_mickey [ Wed Jun 29, 2005 10:07 pm ] |
Post subject: | |
alright, thanks man, really appreciate it. |