Submit Search
Upload
pygame sharing pyhug
•
Download as KEY, PDF
•
0 likes
•
1,800 views
Tim (文昌)
Follow
What I share in pyhug about pygame. it is suitable for beginer
Read less
Read more
Technology
Business
Report
Share
Report
Share
1 of 25
Download now
Recommended
Pygame presentation
Pygame presentation
Felix Z. Hoffmann
PyGame Tutorial | PyGame Python Tutorial For Beginners | Python Certification...
PyGame Tutorial | PyGame Python Tutorial For Beginners | Python Certification...
Edureka!
Game Development with Pygame
Game Development with Pygame
Framgia Vietnam
Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1
Abhishek Mishra
Game Development With Python and Pygame
Game Development With Python and Pygame
Chariza Pladin
The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 51 of 189
The Ring programming language version 1.6 book - Part 51 of 189
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 50 of 196
The Ring programming language version 1.7 book - Part 50 of 196
Mahmoud Samir Fayed
Recommended
Pygame presentation
Pygame presentation
Felix Z. Hoffmann
PyGame Tutorial | PyGame Python Tutorial For Beginners | Python Certification...
PyGame Tutorial | PyGame Python Tutorial For Beginners | Python Certification...
Edureka!
Game Development with Pygame
Game Development with Pygame
Framgia Vietnam
Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1
Abhishek Mishra
Game Development With Python and Pygame
Game Development With Python and Pygame
Chariza Pladin
The Ring programming language version 1.7 book - Part 53 of 196
The Ring programming language version 1.7 book - Part 53 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 51 of 189
The Ring programming language version 1.6 book - Part 51 of 189
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 50 of 196
The Ring programming language version 1.7 book - Part 50 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185
Mahmoud Samir Fayed
The Ring programming language version 1.3 book - Part 39 of 88
The Ring programming language version 1.3 book - Part 39 of 88
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 59 of 210
The Ring programming language version 1.9 book - Part 59 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.5.1 book - Part 48 of 180
The Ring programming language version 1.5.1 book - Part 48 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.5.2 book - Part 48 of 181
The Ring programming language version 1.5.2 book - Part 48 of 181
Mahmoud Samir Fayed
The Ring programming language version 1.5.4 book - Part 50 of 185
The Ring programming language version 1.5.4 book - Part 50 of 185
Mahmoud Samir Fayed
The Ring programming language version 1.5.3 book - Part 49 of 184
The Ring programming language version 1.5.3 book - Part 49 of 184
Mahmoud Samir Fayed
The Ring programming language version 1.5.1 book - Part 47 of 180
The Ring programming language version 1.5.1 book - Part 47 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 52 of 189
The Ring programming language version 1.6 book - Part 52 of 189
Mahmoud Samir Fayed
Snake report ROHIT MALAV
Snake report ROHIT MALAV
Rohit malav
Game maker objects
Game maker objects
Chaffey College
Introduction to Computer Science Using Python and Pygame
Introduction to Computer Science Using Python and Pygame
Daniel Francisco Tamayo
Introduction to Python
Introduction to Python
Sway Wang
Python (práctica 4)
Python (práctica 4)
Fernando Salamero
Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)
Luigi De Russis
Raspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
yeokm1
Image Processing with OpenCV
Image Processing with OpenCV
debayanin
OpenCV Introduction
OpenCV Introduction
Zachary Blair
Raspberry pi 3
Raspberry pi 3
Inocentshuja Ahmad
Vanmathy python
Vanmathy python
PriyadharshiniVS
Денис Ковалев «Python в игровой индустрии»
Денис Ковалев «Python в игровой индустрии»
DataArt
More Related Content
What's hot
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185
Mahmoud Samir Fayed
The Ring programming language version 1.3 book - Part 39 of 88
The Ring programming language version 1.3 book - Part 39 of 88
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 59 of 210
The Ring programming language version 1.9 book - Part 59 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.5.1 book - Part 48 of 180
The Ring programming language version 1.5.1 book - Part 48 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.5.2 book - Part 48 of 181
The Ring programming language version 1.5.2 book - Part 48 of 181
Mahmoud Samir Fayed
The Ring programming language version 1.5.4 book - Part 50 of 185
The Ring programming language version 1.5.4 book - Part 50 of 185
Mahmoud Samir Fayed
The Ring programming language version 1.5.3 book - Part 49 of 184
The Ring programming language version 1.5.3 book - Part 49 of 184
Mahmoud Samir Fayed
The Ring programming language version 1.5.1 book - Part 47 of 180
The Ring programming language version 1.5.1 book - Part 47 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 52 of 189
The Ring programming language version 1.6 book - Part 52 of 189
Mahmoud Samir Fayed
Snake report ROHIT MALAV
Snake report ROHIT MALAV
Rohit malav
Game maker objects
Game maker objects
Chaffey College
What's hot
(12)
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.3 book - Part 39 of 88
The Ring programming language version 1.3 book - Part 39 of 88
The Ring programming language version 1.9 book - Part 59 of 210
The Ring programming language version 1.9 book - Part 59 of 210
The Ring programming language version 1.5.1 book - Part 48 of 180
The Ring programming language version 1.5.1 book - Part 48 of 180
The Ring programming language version 1.5.2 book - Part 48 of 181
The Ring programming language version 1.5.2 book - Part 48 of 181
The Ring programming language version 1.5.4 book - Part 50 of 185
The Ring programming language version 1.5.4 book - Part 50 of 185
The Ring programming language version 1.5.3 book - Part 49 of 184
The Ring programming language version 1.5.3 book - Part 49 of 184
The Ring programming language version 1.5.1 book - Part 47 of 180
The Ring programming language version 1.5.1 book - Part 47 of 180
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.6 book - Part 52 of 189
The Ring programming language version 1.6 book - Part 52 of 189
Snake report ROHIT MALAV
Snake report ROHIT MALAV
Game maker objects
Game maker objects
Viewers also liked
Introduction to Computer Science Using Python and Pygame
Introduction to Computer Science Using Python and Pygame
Daniel Francisco Tamayo
Introduction to Python
Introduction to Python
Sway Wang
Python (práctica 4)
Python (práctica 4)
Fernando Salamero
Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)
Luigi De Russis
Raspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
yeokm1
Image Processing with OpenCV
Image Processing with OpenCV
debayanin
OpenCV Introduction
OpenCV Introduction
Zachary Blair
Raspberry pi 3
Raspberry pi 3
Inocentshuja Ahmad
Viewers also liked
(8)
Introduction to Computer Science Using Python and Pygame
Introduction to Computer Science Using Python and Pygame
Introduction to Python
Introduction to Python
Python (práctica 4)
Python (práctica 4)
Introduction to OpenCV (with Java)
Introduction to OpenCV (with Java)
Raspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
Image Processing with OpenCV
Image Processing with OpenCV
OpenCV Introduction
OpenCV Introduction
Raspberry pi 3
Raspberry pi 3
Similar to pygame sharing pyhug
Vanmathy python
Vanmathy python
PriyadharshiniVS
Денис Ковалев «Python в игровой индустрии»
Денис Ковалев «Python в игровой индустрии»
DataArt
Let's make a game for the Playdate
Let's make a game for the Playdate
Giorgio Pomettini
The Ring programming language version 1.10 book - Part 71 of 212
The Ring programming language version 1.10 book - Part 71 of 212
Mahmoud Samir Fayed
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon run
Maja Kraljič
L08 Using Frameworks
L08 Using Frameworks
Ólafur Andri Ragnarsson
The Ring programming language version 1.2 book - Part 37 of 84
The Ring programming language version 1.2 book - Part 37 of 84
Mahmoud Samir Fayed
Teaching Python to 9 Year Old Girl - map mover
Teaching Python to 9 Year Old Girl - map mover
Craig Oda
The following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdf
arihantsherwani
The Ring programming language version 1.3 book - Part 52 of 88
The Ring programming language version 1.3 book - Part 52 of 88
Mahmoud Samir Fayed
Seaborn graphing present
Seaborn graphing present
Yilin Zeng
The Ring programming language version 1.8 book - Part 56 of 202
The Ring programming language version 1.8 book - Part 56 of 202
Mahmoud Samir Fayed
Java term project final report
Java term project final report
Jiwon Han
The Ring programming language version 1.5 book - Part 9 of 31
The Ring programming language version 1.5 book - Part 9 of 31
Mahmoud Samir Fayed
L10 Using Frameworks
L10 Using Frameworks
Ólafur Andri Ragnarsson
The Ring programming language version 1.5.3 book - Part 79 of 184
The Ring programming language version 1.5.3 book - Part 79 of 184
Mahmoud Samir Fayed
Similar to pygame sharing pyhug
(16)
Vanmathy python
Vanmathy python
Денис Ковалев «Python в игровой индустрии»
Денис Ковалев «Python в игровой индустрии»
Let's make a game for the Playdate
Let's make a game for the Playdate
The Ring programming language version 1.10 book - Part 71 of 212
The Ring programming language version 1.10 book - Part 71 of 212
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon run
L08 Using Frameworks
L08 Using Frameworks
The Ring programming language version 1.2 book - Part 37 of 84
The Ring programming language version 1.2 book - Part 37 of 84
Teaching Python to 9 Year Old Girl - map mover
Teaching Python to 9 Year Old Girl - map mover
The following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdf
The Ring programming language version 1.3 book - Part 52 of 88
The Ring programming language version 1.3 book - Part 52 of 88
Seaborn graphing present
Seaborn graphing present
The Ring programming language version 1.8 book - Part 56 of 202
The Ring programming language version 1.8 book - Part 56 of 202
Java term project final report
Java term project final report
The Ring programming language version 1.5 book - Part 9 of 31
The Ring programming language version 1.5 book - Part 9 of 31
L10 Using Frameworks
L10 Using Frameworks
The Ring programming language version 1.5.3 book - Part 79 of 184
The Ring programming language version 1.5.3 book - Part 79 of 184
More from Tim (文昌)
Python的50道陰影
Python的50道陰影
Tim (文昌)
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
Tim (文昌)
Profile django
Profile django
Tim (文昌)
Introduction to protocol buffer
Introduction to protocol buffer
Tim (文昌)
I18n
I18n
Tim (文昌)
Mock Introduction
Mock Introduction
Tim (文昌)
Ml weka
Ml weka
Tim (文昌)
Tainan.py, Experience about package
Tainan.py, Experience about package
Tim (文昌)
Performance Enhancement Tips
Performance Enhancement Tips
Tim (文昌)
More from Tim (文昌)
(9)
Python的50道陰影
Python的50道陰影
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
Profile django
Profile django
Introduction to protocol buffer
Introduction to protocol buffer
I18n
I18n
Mock Introduction
Mock Introduction
Ml weka
Ml weka
Tainan.py, Experience about package
Tainan.py, Experience about package
Performance Enhancement Tips
Performance Enhancement Tips
Recently uploaded
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Roshan Dwivedi
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Recently uploaded
(20)
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
pygame sharing pyhug
1.
Email tim.yellow@gmail.com
tim hsu
2.
Game in my
mind n 機械工業強的地方,才有 汽車工業 n 資 工業強的地方,才有 遊戲工業
3.
Examples
n http://goo.gl/2qNU2
4.
Introduction PyGame n
Game Engine!! n All we love feature of python
5.
跨平台!
6.
PyGame 為你做什麼
7.
PyGame 為你做什麼
8.
PyGame 為你做什麼
9.
PyGame 為你做什麼
10.
PyGame 為你做什麼
11.
PyGame 為你做什麼
12.
Main Flow of
Game Main Loop initial prepare input simulate draw end
13.
pygame_base_template
na static ball on the screen
14.
Initial Pygame nimport
pygame npygame.init() nclock=pygame.time.Clock()
15.
Prepare Screen, Ball screen=pygame.display.set_mode([700,500]) ball
= pygame.image.load("ball.gif") ballrect = ball.get_rect() ballrect.left, ballrect.top = 300,300
16.
Main Loop done=False while done==False:
input Draw
17.
Input
for event in pygame.event.get(): if event.type == pygame.QUIT: done=True
18.
Draw
screen 是代表整個畫布 screen.fill(black) screen.blit(ball, ballrect) ball 是圖像 clock.tick(20) ball rect 是座標
19.
Simulate
IF you don’t draw screen.fill(black) background first.... screen.blit(ball, ballrect) clock.tick(20)
20.
Simulate screen.fill(black) screen.blit(ball, ballrect) clock.tick(20)
21.
A Moving Ball n
ball_move.py n ball = pygame.image.load("ball.gif") n ballrect = ball.get_rect() n ballrect = ballrect.move(speed)
22.
pygame_input.py
23.
Dive In!! n
Screen, Font, Pictures are all called Surface. n Rect represent a coordination of a surface n Sprite, ( combination of Picture and Rect n Group !! control a lot of Sprite together!
24.
Distribute Your Game n
Py2Exe !! n
25.
Reference n
特訓99 https://bitbucket.org/timtan/my99 n PyGame http://www.pygame.org n PGU http://www.imitationpickles.org/pgu n PyGame for Android http://pygame.renpy.org/ android-packaging.html
Editor's Notes
\n
\n
\n
\n
\n
input gamepad, keyboard, mouse\ncollision. overlap\ndrawing of surface, coordinate system, fonts\ntimer, sounds...\n
input gamepad, keyboard, mouse\ncollision. overlap\ndrawing of surface, coordinate system, fonts\ntimer, sounds...\n
input gamepad, keyboard, mouse\ncollision. overlap\ndrawing of surface, coordinate system, fonts\ntimer, sounds...\n
input gamepad, keyboard, mouse\ncollision. overlap\ndrawing of surface, coordinate system, fonts\ntimer, sounds...\n
input gamepad, keyboard, mouse\ncollision. overlap\ndrawing of surface, coordinate system, fonts\ntimer, sounds...\n
\n
\n
all the facilities is in pygame module. \nexplicitly, \n
\n
\n
pygame 的event model, \n
\n
\n
\n
\n
\n
\n
\n
\n
Download now