Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - runeazn

Pages: 1 [2] 3 4 ... 13
16
Computer Programming / Re: defining a function
« on: March 03, 2012, 07:37:48 pm »
the point of my first method was is to make it versatile,
can be used many more times in the code itself and keeps it short and simple.

17
Computer Programming / defining a function
« on: March 03, 2012, 07:33:40 pm »
ok this is my code with temp fix :

def i_to_c(inches):"
    inches=inches * 2.54
    return inches

def lbs_to_kg(lbs):
    lbs=lbs * 0.45359237
    return lbs

height = i_to_c(height)
weight = lbs_to_kg(weight)"


my first one was :"
def i_to_c(inches):
    inches=inches * 2.54

def lbs_to_kg(lbs):
    lbs=lbs * 0.45359237

i_to_c(height)
lbs_to_kg(weight)"


why doesnt my first code work? it should do fine me thinks.
but it still prints the first definition of that variable
while the function should redefine the variable..

18
News / Re: OS 3.2 blocks Ndless
« on: March 03, 2012, 07:26:53 pm »
norton 360
4 euro a year is fine by me :P

for the curious who havent found it
main menu > settings > firewall > program rules
there you go individual internet access control

19
News / Re: OS 3.2 blocks Ndless
« on: March 03, 2012, 07:25:05 pm »
yes thats quite easy my antivirus can do that :D

20
Other / Re: Deciding on a new laptop!
« on: February 28, 2012, 02:44:35 pm »
Why is everybody into mobile gaming?
I like my desktop way more :P

21
Miscellaneous / Re: When Public Transport Fails/ Public Transit Rants
« on: February 28, 2012, 02:41:09 pm »
we have buses here, though they stop operating after 2 PM

22
and you pay em a buck or something
which you otherwise would've spent it on the items :P

23
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 02:11:33 pm »
little taste as completed one tutorial on python :) http://www.khanacademy.org/
the tutorial wasnt long though, i followed the tutorial on khan academy
, and now i am following the tutorial called "LearnPythonTheHardway" on http://learnpythonthehardway.org haha
any other good tutorials?

24
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 11:47:48 am »
how do you make the bal move?
yes let it draw every frame but how do we let it add the x and y coordinates?

as the spot where the ball hits the uhh stick it will decide the movement the ball will make.

25
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 11:29:53 am »
thats no explanation D:

26
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 11:22:56 am »
lets say pong, how do you let the ball move from direction?

or better said how do you move a object without user input.

27
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 10:56:38 am »
so it calls a img everytime ok.

how does it get continuously the "keys" of movement?

all i have worked up till now is the input command but it will wait till something is inputted and after that it would continue.
This would be no plausible solution to use right?
how do we do it now?

28
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 10:45:45 am »
aha ok,
how do you store the said "picture"

in a variable?


and how can it read the said picture? I dont think it cant read jpg or something can it?

29
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 10:39:35 am »
but how does it detect that a pictures collides with another picture and that the other picture needs to move.

lets say, user, bumps against a box and box needs to move.

what i think you do:
 do you code that if that picture is within this area of this picture than this will happen?

is this true?
and whats maa more efficient way to do this?

30
Computer Programming / Re: How do you make games with coding???
« on: February 25, 2012, 10:32:00 am »
display routine?

Pages: 1 [2] 3 4 ... 13