Moving Fonts
2016-01-23, post № 101
programming, Pygame, Python, #black, #entities, #entity, #font, #fonts, #get, #get fonts, #hello, #hello world, #moving, #red, #spawn, #world
Experimenting with Pygame’s font functions, I wanted to list every font Pygame could reach with its built-in font.get_fonts()
function. This program does so by letting you spawn in the wonderful sentence ’Hello world.’ and assigns it a font based on the previously mentioned function.
Controls
- Left click spawns in a new sentence at current mouse position,
- ‘Space’ saves a screenshot.
Source code: moving-fonts.py