Submit Search
Upload
pygame sharing pyhug
•
Download as KEY, PDF
•
0 likes
•
1,798 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
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Fwdays
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Databarracks
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
Recently uploaded
(20)
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
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