Hacking V2.6
Displaying 1-9 of 9 total.
1
Pikachu14
|
I have successfully added a function found in V2.7 to 2.6, namely control over the MOD's position. Now, this may sound lame, but I suck at C, so I kinda impressed myself.
Now, I thought about Verge2 using four bytes per variable. I'm sure you'd agree that nobody would ever use a number THAT big!
My question is: Can I hack V2.6 so that it only uses two bytes, halfing the memory required?
Posted on 2001-07-19 13:18:37
|
choris
|
If you're going to hack verge do something useful, like adding support for floats/doubles. =]
- choris
wri2555@yahoo.com
Posted on 2001-07-19 13:28:10
|
Pikachu14
|
I'm also thinking about porting the Linear Motion Battle System (from Tales of Phantasia) to Verge.
Should I just use ToP images, or is someone feeling lucky?
Posted on 2001-07-19 13:38:16
|
Pikachu14
|
I always fell asleep during math class.
Posted on 2001-07-19 13:39:37
|
Pikachu14
|
I added a li'l counter (with the ScreenX var?) and hexed it to count ModPosition instead. Y'see, I could compile VCC with VC, only in Watcom or DJGPP, whom I just got the last parts of...erk...
Moral of the story: Hexing rules!
Posted on 2001-07-19 13:44:57
|
Miggle
|
ngjhj
Posted on 2001-07-19 13:58:55
|
JL
|
No offense, but what you're proposing sounds like a lot of work for nothing. The memory used by VC variables is not a problem, since VC's memory consumption is negligible compared to that used by graphics. And while it's unlikely that anyone would use a number in the billions, it is conceiveable that they would want to use a number greater than 64K (two bytes), since things like scores and numeric passwords can easily run into the millions. Also, it turns out that modern processors can access 32-bit aligned addresses much faster than others; the difference is so significant that many programs store booleans -- a single bit of information -- in a 32-bit variable.
I suspect your time could be better spent elsewhere. :)
Posted on 2001-07-19 16:21:05
|
Khross
|
A floating point value contains decimal places (guaranteed at least 6 digits of percision). A double is an extended, more accurate float. (at least 10 digits of percision)
Also, all floating point constants are handled by the compiler as doubles, unless explicity told to do otherwise. (Add "F" at the end of a value to do so)
Posted on 2001-07-19 20:15:24
|
ashground
|
The point is to go, "HA! I tweaked Verge! I tackled source code! I CAN PROGRAM! HAHAHAHAHAHAHA! HAHAHA! Ha. Ha." It's about the journey, not the destination. Unless the journey sucked. In which case the destination must rock or else I'll take the life of the nearest cow.
Don't listen to me.
Posted on 2001-07-19 21:51:08
|