6 ms·
Interesting how the game score counter can't go over 255. Sounds like premature optimization at work.
by davidw 13y ago
Interesting how the game score counter can't go over 255. Sounds like premature optimization at work.
- ijk 13y agoI can sort of see storing the score as an unsigned char, since that's larger than the largest real-world score. I have no idea what's going on with the 266 value, though.
- colmvp 13y ago"Interesting how the game score counter can't go over 255." They just didn't expect anyone to play against the Dallas Cowboys. Rookie mistake.
- mjmahone17 13y agoOr it's from back in the day when Madden used an 8-bit processor, and the code for scoring has just never been updated to use something other than char.
- BlackDeath3 13y agoWasn't Madden 25 recently released? And score is still kept in eight-bit storage? And the Innovative Title of the Year award goes to...
- munificent 13y agoWhen I worked on Madden around 2007 or so, you could still find the original code for updating the score on a touchdown. It had Steve Chiang's[1] initials by it. It's not like the rules for that have changed much over the years, so there's little reason to touch the code. [1] http://company.zynga.com/about/leadership-team/zynga-leadership-team http://company.zynga.com/about/leadership-team/zynga-leaders...
- BlackDeath3 13y agoNo, I get that football doesn't change all that much, and therefore the games don't need to change all that much (so why it's become an annual new release sort of situation is beyond me) so I could understand not redoing all of the game logic, but... eight-bit score storage?
- deleted 13y ago[deleted]
- cube13 13y agoAssuming a 15 minute quarter(though most Madden games have shorter quarters, especially if they're multiplayer), to get 255 points in a quarter, a team would need to score a touchdown + 2 point conversion every 30 seconds. For a full game, that's every 2 minutes. Any given play generally takes 10-20 seconds, and you're going to be running, bare minimum, 2 plays per 8 points(1 for touchdown, 1 for 2 point conversion). So that's about 25 seconds per score. If the teams are remotely well matched(i.e. aren't a Breaking Madden team), they'll take at least 2-3 minutes per possession, since you're most likely going to have 4 downs, which have a play clock of 40 seconds(most teams use around 30/play), so the "average" shortest possession is something like 2 minutes. The point of all this? The Breaking Madden games are really an outlier that you'd have to specifically code for.
- doktrin 13y ago> The point of all this? The Breaking Madden games are really an outlier that you'd have to specifically code for. Rather than coding special exemptions or rules, it seems that using 8 bit storage would have to be a deliberate choice on any modern platform.
- m_myers 13y agoSure, on any modern platform. But you don't change 25-year-old code unless there's a pressing reason.
- sehugg 13y agoIf they went all the way with optimization it would have rolled over back to 0.