I am not entirely sure but I did some research beforehand: reading some code comments from a different programming language I never used and method description of the method
From what I can legitimately gather this is what I can sum up based on my research:
1) Games run in real time. Different from procedural programming.
2) Games run in a time based tick.
3) Games run in frames per second.
It is a totally a different realm of programming from what I did in my introduction to java course in college.
So I have a question:
The game codebase is in Java and it contains no comments.
It declare a variable that keeps track of the current time in the game constructor(where all game objects are created beforehand)
So the question comes up: why exactly does this time based tick work? The method description from what I gather although it explains it in technical detail makes a statement about an operating system having an internal clock.
Why does an operating system have an internal clock and why do game use the OS internal clock to keep track of time? Why keep track of current time in the game constructor and update that time during the game loop? The idea is still foreign and fuzzy to me.
Edited by warnexus, 16 April 2013 - 09:20 PM.