-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3670279
commit 2f574d4
Showing
49 changed files
with
16,201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Wed Apr 17 17:05:14 2019 | ||
@author: edoardottt | ||
""" | ||
|
||
class Bomb: | ||
x_m = 0 | ||
y_m = 0 | ||
def __init__(self, x_m, y_m): | ||
self.x_m = x_m | ||
self.y_m = y_m | ||
def paintBomb(self,x,y,image,screen): | ||
screen.blit(image,(x,y)) | ||
def __del__(self): | ||
self.x_m= -400 | ||
self.y_m = -400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Wed Apr 17 15:35:46 2019 | ||
@author: edoardottt | ||
""" | ||
import random | ||
|
||
class Enemy: | ||
x_n = 0 | ||
y_n = 0 | ||
destra = False | ||
def __init__(self, x_n, y_n): | ||
self.x_n = x_n | ||
self.y_n = y_n | ||
intero = random.randint(0,1) | ||
if (intero): | ||
self.destra = True | ||
def paintNemico(self,x,y,image,screen): | ||
screen.blit(image,(x,y)) | ||
def __del__(self): | ||
self.x_n = -400 | ||
self.y_n = -400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Wed Apr 17 15:38:47 2019 | ||
@author: edoardott | ||
""" | ||
|
||
class Missile: | ||
x_m = 0 | ||
y_m = 0 | ||
def __init__(self, x_m, y_m): | ||
self.x_m = x_m | ||
self.y_m = y_m | ||
def paintMissile(self,x,y,image,screen): | ||
screen.blit(image,(x,y)) | ||
def __del__(self): | ||
self.x_m = -400 | ||
self.y_m = -400 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Thu Apr 18 12:38:48 2019 | ||
@author: edoardott | ||
""" | ||
|
||
import sqlite3 | ||
|
||
|
||
conn = sqlite3.connect('result.db') | ||
|
||
c = conn.cursor() | ||
|
||
c.execute("SELECT nemici FROM match") | ||
print(c.fetchall()) | ||
c.execute("SELECT MAX(missili) FROM match") | ||
print("RECORD MISSILI: "+str(c.fetchone())) | ||
|
||
c.execute("SELECT MAX(nemici) FROM match") | ||
print("RECORD NEMICI: "+str(c.fetchone())) | ||
|
||
conn.close() |
Oops, something went wrong.