This is "Attack of the Flarb" - a sample source code from Ralph Barbagallo's book "Wireless Game Development in C/C++ with BREW" - as far as I know, the one and only published book on the matter.
As the author wrote, "This is a mobile version of a really bad arcade action game that I created as a Java applet back in 1995." But it does the trick for all the basics you need to write a game for BREW.
Despite being written for the original BREW 1.0.1 I did not have any problems compiling it in the latest BREW MP SDK (well some paths had to be changed).
Ralph Barbagallo "Wireless Game Development in C/C++ with BREW" - Wordware Publishing, 2003, ISBN 978-1556229053 (387 pages)
Music used from Youtube Audio Library:
Tuff Data by Vans in Japan