The work presented here illustrates, using the heavily utilized free software NetLogo, the main principles of agent-based spatial simulation. It will provide theoretical and conceptual backgrounds as well as algorithmic and technical insights, including code and applets, so that readers can test and re-use most of its content.