OpenGL 2D RPG examples/source code

Hi, I’m making a 2D RPG in OpenGL and I’ve been looking for source code, or simply just code snippets to help myself understand how to develop my own. I’ve not had much luck finding any however, so I’m looking for anything that is related this community might have. Thanks!