Monday, February 29, 2016

Pygame Joystick Function

I am curious in using the logitech joysticks the school has and trying to make them work with the Pygame joystick module. This would allow a new way to control some of the games that we are testing in class and open the door of new styles of games.

A usage of the joystick function in python

Pygame and Mouse functions

When using pygame, I discovered the ability of controlling the mouse visibility

The command to enable the visibility of the mouse



This feature allows the hiding of the mouse in games such as first person shooters and keyboard based games.

Audio and Pygame

When viewing the pygame documentation, I discovered the pygame audio mixer. The mixer unlocks a world of potential in audio.

Command to initialize the Audio mixer function.
The Audio module allows the use of multiple audio channels for individual control. This can be used in situations such as having many different sound effects and background music.
Utilizing channels in pygame

Pygame and Mac

Unfortunately at this point, pygame does not want to work on my Mac. While it is installed on my home desktop, the requirements of xquarts and many other modules did not want to cooperate on my computer. This is leading to me writing many of the bits of code on google docs and testing at home.