Difference between revisions of "Pygame"

From Coder Merlin
m (Fixed bullets)
(Fixed links and added page)
Line 1: Line 1:
== What is Pygame? ==
== What is Pygame? ==
Pygame is "is a set of [Python](https://www.codermerlin.academy/wiki/index.php/Python) modules designed for writing video games."
Pygame is "is a set of [https://www.codermerlin.academy/wiki/index.php/Python Python] modules designed for writing video games."
 
== How do I run Pygame in Coder Merlin? ==
See more about that on [https://www.codermerlin.academy/wiki/index.php/Pygame_In_Coder_Merlin this page]


== Pros and Cons ==
== Pros and Cons ==
Pygame is easy to program in because it's in Python. This makes development significantly easier than working with something like [RayLib](https://www.raylib.com) for C#.
Pygame is easy to program in because it's in Python. This makes development significantly easier than working with something like [https://www.raylib.com RayLib] for C#.


=== Pros ===
=== Pros ===
* Easy to develop in
* Easy to develop in
* Some built in sprite management
* Some built in sprite management
* [Able to use web (past Python 3.11+)](https://pygame-web.github.io/wiki/pygbag/)
* [https://pygame-web.github.io/wiki/pygbag/ Able to use web (past Python 3.11+)]


=== Cons ===
=== Cons ===
* [Python is slow](https://stackoverflow.com/questions/3033329/why-are-python-programs-often-slower-than-the-equivalent-program-written-in-c-or)
* [https://stackoverflow.com/questions/3033329/why-are-python-programs-often-slower-than-the-equivalent-program-written-in-c-or Python is slow]
* [It's harder to develop than using a game engine](https://en.wikipedia.org/wiki/Game_engine)
* [https://en.wikipedia.org/wiki/Game_engine It's harder to develop than using a game engine]


== Sources ==
== Sources ==
# [Pygame's website](https://www.pygame.org/wiki/about)
# [https://www.pygame.org/wiki/about Pygame's website]
# [Why Pygame is slow](https://stackoverflow.com/questions/63023350/why-is-pygame-so-much-slower-than-2d-game-engines)
# [https://stackoverflow.com/questions/63023350/why-is-pygame-so-much-slower-than-2d-game-engines Why Pygame is slow]
# [What is a game engine?](https://en.wikipedia.org/wiki/Game_engine)
# [https://en.wikipedia.org/wiki/Game_engine What is a game engine?]

Revision as of 23:09, 13 April 2024

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

What is Pygame?[edit]

Pygame is "is a set of Python modules designed for writing video games."

How do I run Pygame in Coder Merlin?[edit]

See more about that on this page

Pros and Cons[edit]

Pygame is easy to program in because it's in Python. This makes development significantly easier than working with something like RayLib for C#.

Pros[edit]

Cons[edit]

Sources[edit]

  1. Pygame's website
  2. Why Pygame is slow
  3. What is a game engine?