mirror of
https://github.com/LingDong-/Hermit.git
synced 2026-02-06 10:56:44 +00:00
added comments
This commit is contained in:
parent
17ef6d1a70
commit
9aafaf9876
15
src/main.py
15
src/main.py
@ -1,3 +1,8 @@
|
||||
""" by Lingdong Huang
|
||||
"""
|
||||
|
||||
# import modules
|
||||
|
||||
import pygame
|
||||
import sys
|
||||
import math
|
||||
@ -21,11 +26,11 @@ import pygame._view
|
||||
|
||||
import settings
|
||||
|
||||
# initialization
|
||||
pygame.init()
|
||||
settings.init()
|
||||
|
||||
|
||||
|
||||
# setting up variables
|
||||
size = width, height = 1280, 320
|
||||
buff = 200
|
||||
screen = pygame.display.set_mode([width/2,height+50])#,pygame.FULLSCREEN )
|
||||
@ -183,14 +188,8 @@ man.color = (140,140,140)
|
||||
man.arrows = arrows
|
||||
man.walk()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
pctrl = particle.ParticleCtrl()
|
||||
|
||||
|
||||
|
||||
def makeBirds(n):
|
||||
global birds
|
||||
for i in range(0,n):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user