Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / What do float, bool.....stand for

Author
Message
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 21st Dec 2008 11:45
Omfg. i am trying to simulate gravity so i try a function

const float(but i am not shure what flooat(or bool,int...) and stuf stands for)
so and way could some one explain to me that
for Gra. i am trying something like this:
i am not shure if it will work


Game.Love
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
sificvoid
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location:
Posted: 21st Dec 2008 13:22
http://msdn.microsoft.com/en-us/beginner/cc305129.aspx

lesson 2
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 21st Dec 2008 16:24


I don't think you'd want to declare gravity as a const. Either it makes it unchangeable in later code (unless it's an automatic variable in a function) or it's totally impractical for something that you use once in a fucntion.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-11-25 09:29:13
Your offset time is: 2024-11-25 09:29:13