Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson5_diy1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e677492b
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3b2dc050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
bj.png
hl.png
YXZZ.PY → hulingchuanqi.py
bj.png
View file @
e677492b
1.48 KB
|
W:
|
H:
1.69 KB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
hl.png
View file @
e677492b
1.39 KB
|
W:
|
H:
1.37 KB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
YXZZ.PY
→
hulingchuanqi.py
View file @
e677492b
import
pygame
from
pygame
import
locals
pygame
.
init
()
screen
=
pygame
.
display
.
set_mode
((
500
,
400
))
bj
=
pygame
.
image
.
load
(
'bj.png'
)
hl
=
pygame
.
image
.
load
(
'hl.png'
)
while
True
:
screen
.
blit
(
bj
,
(
0
,
0
))
screen
.
blit
(
hl
,
(
85
,
25
))
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
screen
.
blit
(
bj
,
(
0
,
0
))
# 填充背景
screen
.
blit
(
hl
,
(
210
,
232
))
pygame
.
display
.
update
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment