Skip to content
Free planNo credit card requiredStart writing

article · 2014

Declarative Game Programming

Henrik Nilsson, Ivan Pérez

Cited by 1Abstract and details only

Abstract

Video games are usually not programmed very declaratively. There are a number of reasons for this, from low-level efficiency concerns, via the nature of commonly employed programming languages, libraries, and frameworks, to the conceptual nature of such games, with state and effects being omnipresent. However, by structuring games in terms of time-varying values and transformations on such values, it is possible to design and implement video games in a more declarative way. This tutorial shows how this can be achieved through Functional Reactive Programming (FRP) by implementing the high-level parts of a 2D game akin to the classical game Breakout. The tutorial uses the Haskell-embedded FRP implementation Yampa and bindings to SDL (Simple DirectMedia Layer) to obtain game play and visual standards typical of the 2D genre; for example, as seen in many currently popular games for smartphones and tablets.

Cite this paper

APA 7

Nilsson, H., & Pérez, I. (2014). Declarative Game Programming. https://doi.org/10.1145/2643135.2643160

MLA 9

Nilsson, Henrik, and Ivan Pérez. “Declarative Game Programming.” 2014, pp. 159–60, https://doi.org/10.1145/2643135.2643160.

Chicago

Nilsson, Henrik, and Ivan Pérez. 2014. “Declarative Game Programming.” https://doi.org/10.1145/2643135.2643160.

Harvard

Nilsson, H. and Pérez, I. (2014) ‘Declarative Game Programming’. Available at: https://doi.org/10.1145/2643135.2643160.

BibTeX
@article{nilsson2014declarative,
  title = {{Declarative Game Programming}},
  author = {Nilsson, Henrik and Pérez, Ivan},
  pages = {159--160},
  year = {2014},
  doi = {10.1145/2643135.2643160}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.

Programs

Heikki Ruskeepää · Elsevier eBooks · 2009

Cited by 0