123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|719|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Recreating SWOS cash display

Mon, 02 Feb 2009, 05:18
LostUser
I'm sure there's loads of people on here who used to play Sensible World of Soccer on the Amiga.

There is one thing on that game that I've been trying to recreate for literally years, but I am still no closer to figuring out how they did it.

For example, instead of outputting $1,000,000 they output $1m
and instead of $1,250,000 they'd do $1.25m.

And it just doesn't restrict itself to big numbers, it handles small numbers incredibly well, ie: $100k or $1k, etc.

Now, I'm sure its not as simple as a big if statement, and I'm not sure if they use a cash formatter like MS excel does.

Did anyone ever recreate the SWOS cash display for Blitz Basic?

Many thanks
Mon, 02 Feb 2009, 05:40
Jayenkai
Nice and easy..
You DO need if's, but you don't need that many..



-=-=-
''Load, Next List!''
Mon, 02 Feb 2009, 06:09
LostUser
That's brilliant!

Thanks a lot!
Thu, 19 Feb 2009, 12:10
Hotshot
Are you making Swos game? I love the song # Super Star Goal Scoring Hero Hero Hero Senible Soccer
Sun, 22 Feb 2009, 03:49
LostUser
No I'm not -- I just wanted to use the code for human readable cash display, and to save on space on the screen.

I can't work on my project at the moment as I'm trying to do a work related project first.

Thanks