Abstract
Pygame is a Python wrapper for the popular SDL multimedia library. It is suitable for tasks involving 2D graphics, sound, keyboard, etc. Pygame is not designed to build psychological experiments, but it offers a lightweight solution appealing to some researchers. This chapter will give a brief overview of the various modules of Pygame and use the essential features of Pygame to create a functioning script for the Posner cueing task.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
For an overview of Pygame, see https://www.pygame.org/docs/tut/PygameIntro.html.
- 2.
TrueType is a font standard developed by Apple and Microsoft in the late 1980s. It is the most common font format on macOS and Windows.
References
D. Bridges, A. Pitiot, M.R. MacAskill, J.W. Peirce, The timing mega-study: comparing a range of experiment generators, both lab-based and online. PeerJ 8, e9414 (2020). https://doi.org/10.7717/peerj.9414
W. Fu, J. Zhao, Y. Ding, Z. Wang, Dyslexic children are sluggish in disengaging spatial attention. Dyslexia 25(2), 158–172 (2019). https://doi.org/10.1002/dys.1609
M.I. Posner, Orienting of attention. Q. J. Exp. Psychol. 32(1), 3–25 (1980)
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Wang, Z. (2021). Building Experiments with Pygame. In: Eye-Tracking with Python and Pylink. Springer, Cham. https://doi.org/10.1007/978-3-030-82635-2_3
Download citation
DOI: https://doi.org/10.1007/978-3-030-82635-2_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-82634-5
Online ISBN: 978-3-030-82635-2
eBook Packages: Behavioral Science and PsychologyBehavioral Science and Psychology (R0)