by yoyooyo » Sun Mar 07, 2010 11:11 am
Well, since I couldn't find the source .fla-file anywhere, I decided to decompile it instead. I'll attach it below. While there are no hidden scenes or anything else really interesting, I enjoyed messing around with the game speed, health, damage, etc.
I couldn't quite wrap my head around the system used for enemies. He makes use of global variables for storing their health (BG11health, BG12health, etc), and access them using some sort of array (?). The global variables f, ff, g, gg, h, hh seem to be used to identify which enemies are present on the scene, which means the maximum number of enemies on any one scene is hard-coded to six. This all makes it rather non-trivial to add more/different enemies. (There goes my plan to surround Krystal with a small army...)
The code is reasonably well-structured for a beginners project, but it could use better variable names, and more comments to explain it's structure. It could also be optimized and simplified quite a bit if loops were used. Being used to object-oriented programming, I can't say I fancy the use of global variables, either. I don't know how common it is to use classes in flash, but surely it would be a better alternative than using global arrays and variables to store object data?
Also, "I challenge you to sexual combat". Best. Pick-up line. Ever.
You do not have the required permissions to view the files attached to this post.