This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pygame vs. Pygame-CE API Differences | |
------------------------------------ | |
This document is meant to serve as a reference for pygame developers that use | |
both pygame and pygame-ce. It is not an endorsement of one over the other. | |
Last updated: April 26, 2023 | |
Info was compiled from the repos' release pages and their respective docs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import pygame | |
import random | |
pygame.init() | |
# Params | |
N = 1000 # Number of pendulums | |
L = 10 # Length of pendulum arms | |
M = 1 # Mass of pendulum arms |