The U8g2 library for monochrome LCDs contains nice example with game called: SpaceTrash. Below there is source code of this example: /*
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, firstname.lastname@example.org
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of so ...