Closed pongstylin closed 5 years ago
Here is "Ray Casting" at work. All highlighted tiles represent tiles that were checked to see if they were intersected by the line. It demonstrates my attempt to only check tiles that have a chance of being hit as an optimization. Darker tiles were checked first, lighter tiles were checked after. This demonstrates that I'm searching the tiles in order from closest to furthest so that I have a choice of stopping the search with the first hit. Green tiles did not get hit, red tiles did get hit. The bottom scout got the correct LOS result. The top scout hit too many tiles since my hit area is the full size of the tile.
I got the desired result by shrinking the tile size only a little. This image serves as a bit of a cheat sheet on how to aim the arrow such that it hits the unit you desire.
The Scout is now available on the classic app. Moving on to the final unit to complete the set: Witch.
Met my goal of completing the default gray set app by end of November. Now I'll focus on bug fixes, polish, and code architecture for December with the intent to release the new app to TAO Rankings for Christmas so that people can play with it.
I'm closing out this issue. I created a new issue to represent the effort to implement the Lightning Ward.
The original game had a lot of different kinds of units that each have their own images, animations, and sound effects. The images can be obtained by extracting them from the original game's flash files, but it is harder to string them together into their animations. This is a list of all of the animations for a given unit:
Each frame of each animation typically consists of 3 images: uncolored, colored, and shadow. These 3 images are overlapped to create a complete picture, but must be kept separate since the game is expected to apply a team color to one of them. Ideally, the images should be placed on a spritesheet with a data file that describes how the images should be rendered to reproduce the animations. Rendering information may include the position of each image within the frame or other effects that should be applied to the image (such as rotation, scale, and/or color effects).
If you would like to try to extract this information, please email tactics@dollardns.net so that I can send you the flash files.
This issue will be resolved once we've identified an efficient strategy for extracting animation data.