there are many examples you can download. there should be also some tutorials. it depends on what kind of library you would like to use and also what kind of games.
I have some games programming tuorials on my youtube channel:
many of my videos are quite old, and not all B4A based, but I do go intom the details of how simple games features like scores, gravity and simple animation works.