This Week
I started work on landing and taking off. During this process I realized that we need to define a scale for the map, so that the runway lengths and the size of the map will be reasonable. For the plane to be able to land, it needs to be within a certain angle and area and below a certain altitude (this will eventually depend on the airplane's distance from the runway, but right now these values are constants). Today I added the first step: when a runway is selected, the game calculates if the airplane is within an angle of 10 degrees from the heading of the runway:
Notice the status bar says that the upper right airplane is about 5 degrees off from the runway's heading.
I also worked on merging Guy's work on the menu branch with master. Now, the code has been reorganized so the main class only controls the screen and the UI state.
Completed Asana Tasks
- Clean up code in PIScreen
- Decide on fixed turn rate
Next Week
I will continue to work on landing constraints and procedures. I need to add an altitude and heading constraint, and then start working on an AI to automatically land the airplane.
Current Asana Tasks
- Add airplane controls
- Add airplane constraints
- Add landing capabilities

No comments:
Post a Comment