Skip to main content

Timeline for What is "game logic code?"

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Jan 29, 2016 at 13:17 comment added Pharap speed should technically be named velocity assuming both position and velocity are both Vector2s.
Jan 27, 2016 at 1:09 comment added DrZ214 Fascinating I never would have guessed that. Never had any need for such a thing in seconds, because I personally use my own variable called iii that i manually increment every update, because I don't want it in seconds, i want steps or frames. I can see that your way is a valid way of soft-coding things though.
Jan 27, 2016 at 1:05 comment added Shyy Guy Aha, it's since the last update. gamedev.stackexchange.com/questions/67968/…
Jan 27, 2016 at 1:03 comment added DrZ214 I thought gt.ElapsedGameTime.TotalSeconds is the number of seconds elapsed from starting the program (game). If you're multiplying your speed by that, then after 5 seconds of playing, your speed will be 5 times faster (except the special case where speed is set to 0). Not sure what else you could have that would make that untrue, but I'm intrigued.
Jan 27, 2016 at 0:57 comment added Shyy Guy I have code that looks like 'position += direction * speed * ...TotalSeconds' and that works very well. I may have mistyped something, but position = speed would assign it every update. Your way may work, but I have my code working like this. (Note that direction is normalized)
Jan 27, 2016 at 0:47 comment added DrZ214 I think you meant position = speed * ...TotalSeconds. Notice it's = not +=. If it were += just as you typed, then your position would fly off the screen almost instantaneously.
Jan 26, 2016 at 16:40 history edited user1430 CC BY-SA 3.0
edited title
Jan 26, 2016 at 12:51 answer added Thomas timeline score: 26
Jan 26, 2016 at 12:05 review Suggested edits
Jan 26, 2016 at 13:26
Jan 26, 2016 at 3:35 answer added Frames Catherine White timeline score: 8
Jan 25, 2016 at 20:39 history tweeted twitter.com/StackGameDev/status/691722124990550016
Jan 25, 2016 at 20:06 vote accept Shyy Guy
Jan 25, 2016 at 18:06 history edited Vaillancourt CC BY-SA 3.0
Updated the tags: framework is not relevent in this case.
Jan 25, 2016 at 17:56 answer added Nils Ole Timm timeline score: 103
Jan 25, 2016 at 17:52 history asked Shyy Guy CC BY-SA 3.0