Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ship.cpp
00001 #include "ship.h" 00002 00003 00004 void ship::set_ship(int a,int b, N5110 &lcd){ 00005 lcd.drawRect(b,a,5,3,FILL_BLACK); 00006 lcd.drawRect(b-3,a,3,1,FILL_BLACK); 00007 lcd.setPixel(b+3,a+1,false); 00008 lcd.setPixel(b+4,a,false); 00009 lcd.setPixel(b,a+2,false); 00010 lcd.drawRect(b-3,a-1,2,1,FILL_BLACK); 00011 00012 } 00013 00014 00015 int ship::open_fire(int x,int y,int v, N5110 &lcd) { 00016 lcd.drawCircle(x+v, y, 1, FILL_BLACK); 00017 x = x+v; 00018 return x; 00019 }
Generated on Fri Jul 15 2022 11:33:55 by
