The game you are thinking of is Liero, a real-time artillery duel that originally appeared on Mac and was later ported to Windows as OpenLiero.
Its popularity spawned a tougher fan variant, LieroXtreme, which in turn got an open-source Windows release known as OpenLieroXtreme or OpenLX. OpenLX has the better graphics, while OpenLiero is the one to pick if you prefer the old 8-bit look.