GSoC Limited play area: Difference between revisions

From Spring
Jump to navigationJump to search
Koshi (talk | contribs)
Abma (talk | contribs)
No edit summary
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Limited play area =
= GSoC idea: Limited play area =


== Why ==
== Why ==
so the mappers can define which part of the map is designed for gameplay and which for the looks
Current spring map formats have a hardcoded rectangle geometry. They also provide very limited support for defining aesthetics of the surrounding environment outside the play area.


== Background ==
== What ==
Current spring map formats have a harcoded rectangle geometry. They also provide very limited support for defining aesthetics of the surrounding environment outside the play area.<br/>
The new system should allow the map to restrict the playable area to a subset of the global area, possibly adding support for multiple shapes and/or non-rectangular shape restrictions.
The new system should allow the map to restrict the playable area to a subset of the global area, possibly adding support for multiple shapes and/or non rectangular shape restrictions.<br/>
 
The restriction shapes should be readable and changeable mid-game trough the engine's Lua API. Proper handling of units which are suddenly off-map needs to be implemented.<br/>
The restriction shapes should be readable and changeable mid-game through the engine's Lua API. Proper handling of units which are suddenly off-map needs to be implemented.


== Required skills ==
== Required skills ==
* grep
* Knowledge of C++
* C++ and Lua/C api
* Knowledge of Lua/C API bindings
 
== Difficulty ==
Estimated: medium
 
== Technical details ==
 
Most of the current code is based on the assumption that the map's top left is always at (0, 0) and bottom right at (width, height). The most difficult part will be identifying all places that check for point-in-map condition and determining whether they should be converted to the new limited map area or left as-is (e.g. for drawing).


[http://www.example.com FORUMLINK]
[[Category:GSoC]]

Latest revision as of 18:55, 2 March 2012

GSoC idea: Limited play area

Why

Current spring map formats have a hardcoded rectangle geometry. They also provide very limited support for defining aesthetics of the surrounding environment outside the play area.

What

The new system should allow the map to restrict the playable area to a subset of the global area, possibly adding support for multiple shapes and/or non-rectangular shape restrictions.

The restriction shapes should be readable and changeable mid-game through the engine's Lua API. Proper handling of units which are suddenly off-map needs to be implemented.

Required skills

  • Knowledge of C++
  • Knowledge of Lua/C API bindings

Difficulty

Estimated: medium

Technical details

Most of the current code is based on the assumption that the map's top left is always at (0, 0) and bottom right at (width, height). The most difficult part will be identifying all places that check for point-in-map condition and determining whether they should be converted to the new limited map area or left as-is (e.g. for drawing).