\select@language {english}
\contentsline {chapter}{\numberline {1}SGE Fundamentals}{1}{chapter.1}
\contentsline {section}{\numberline {1.1}SGE Concepts}{1}{section.1.1}
\contentsline {subsection}{\numberline {1.1.1}Events}{1}{subsection.1.1.1}
\contentsline {subsection}{\numberline {1.1.2}Position}{1}{subsection.1.1.2}
\contentsline {subsection}{\numberline {1.1.3}Z-Axis}{2}{subsection.1.1.3}
\contentsline {subsection}{\numberline {1.1.4}The Game Loop}{2}{subsection.1.1.4}
\contentsline {section}{\numberline {1.2}Global Variables and Constants}{2}{section.1.2}
\contentsline {chapter}{\numberline {2}Tutorial 1: Hello, world!}{5}{chapter.2}
\contentsline {section}{\numberline {2.1}Setting Up a Project}{5}{section.2.1}
\contentsline {subsection}{\numberline {2.1.1}Shebang}{5}{subsection.2.1.1}
\contentsline {subsection}{\numberline {2.1.2}License}{6}{subsection.2.1.2}
\contentsline {subsection}{\numberline {2.1.3}Imports}{6}{subsection.2.1.3}
\contentsline {section}{\numberline {2.2}Adding Game Logic}{6}{section.2.2}
\contentsline {subsection}{\numberline {2.2.1}The Game Class}{6}{subsection.2.2.1}
\contentsline {subsection}{\numberline {2.2.2}The Room Class}{7}{subsection.2.2.2}
\contentsline {section}{\numberline {2.3}Starting the Game}{7}{section.2.3}
\contentsline {section}{\numberline {2.4}The Final Result}{8}{section.2.4}
\contentsline {chapter}{\numberline {3}Tutorial 2: Pong}{11}{chapter.3}
\contentsline {section}{\numberline {3.1}Adding Game Logic}{11}{section.3.1}
\contentsline {subsection}{\numberline {3.1.1}The Game Class}{11}{subsection.3.1.1}
\contentsline {subsection}{\numberline {3.1.2}The Object Classes}{12}{subsection.3.1.2}
\contentsline {subsubsection}{Player}{12}{subsubsection*.51}
\contentsline {subsubsection}{Ball}{14}{subsubsection*.52}
\contentsline {section}{\numberline {3.2}Starting the Game}{16}{section.3.2}
\contentsline {subsection}{\numberline {3.2.1}Loading Sprites}{16}{subsection.3.2.1}
\contentsline {subsection}{\numberline {3.2.2}Loading Backgrounds}{16}{subsection.3.2.2}
\contentsline {subsection}{\numberline {3.2.3}Creating Objects}{17}{subsection.3.2.3}
\contentsline {subsection}{\numberline {3.2.4}Creating Rooms}{17}{subsection.3.2.4}
\contentsline {subsection}{\numberline {3.2.5}Making the Mouse Invisible}{17}{subsection.3.2.5}
\contentsline {subsection}{\numberline {3.2.6}Starting the Game}{17}{subsection.3.2.6}
\contentsline {section}{\numberline {3.3}The Final Result}{17}{section.3.3}
\contentsline {chapter}{\numberline {4}Tutorial 3: Better Pong}{21}{chapter.4}
\contentsline {section}{\numberline {4.1}Adding Scoring}{21}{section.4.1}
\contentsline {subsection}{\numberline {4.1.1}Making Enter Restart the Game}{21}{subsection.4.1.1}
\contentsline {subsection}{\numberline {4.1.2}Giving Points to the Players}{22}{subsection.4.1.2}
\contentsline {subsection}{\numberline {4.1.3}Displaying the Scores}{22}{subsection.4.1.3}
\contentsline {subsubsection}{New Resources}{23}{subsubsection*.71}
\contentsline {subsubsection}{Drawing the HUD}{23}{subsubsection*.72}
\contentsline {subsubsection}{Displaying the HUD}{23}{subsubsection*.73}
\contentsline {subsection}{\numberline {4.1.4}Giving Victory}{24}{subsection.4.1.4}
\contentsline {section}{\numberline {4.2}Adding Sounds}{25}{section.4.2}
\contentsline {subsection}{\numberline {4.2.1}Getting the Sounds}{25}{subsection.4.2.1}
\contentsline {subsection}{\numberline {4.2.2}Loading the Sounds}{25}{subsection.4.2.2}
\contentsline {subsection}{\numberline {4.2.3}Playing the Sounds}{26}{subsection.4.2.3}
\contentsline {section}{\numberline {4.3}Adding Joystick Support}{26}{section.4.3}
\contentsline {subsection}{\numberline {4.3.1}Axis Movement}{26}{subsection.4.3.1}
\contentsline {subsection}{\numberline {4.3.2}Trackball Movement}{26}{subsection.4.3.2}
\contentsline {subsection}{\numberline {4.3.3}Applying the Joystick Controls}{26}{subsection.4.3.3}
\contentsline {section}{\numberline {4.4}The Final Result}{27}{section.4.4}
\contentsline {chapter}{\numberline {5}sge.input}{33}{chapter.5}
\contentsline {section}{\numberline {5.1}Input Event Classes}{33}{section.5.1}
\contentsline {chapter}{\numberline {6}sge.dsp}{39}{chapter.6}
\contentsline {section}{\numberline {6.1}sge.dsp Classes}{39}{section.6.1}
\contentsline {subsection}{\numberline {6.1.1}sge.dsp.Game}{39}{subsection.6.1.1}
\contentsline {subsubsection}{sge.dsp.Game Methods}{41}{subsubsection*.153}
\contentsline {subsubsection}{sge.dsp.Game Event Methods}{44}{subsubsection*.170}
\contentsline {subsection}{\numberline {6.1.2}sge.dsp.Room}{46}{subsection.6.1.2}
\contentsline {subsubsection}{sge.dsp.Room Methods}{48}{subsubsection*.221}
\contentsline {subsubsection}{sge.dsp.Room Event Methods}{51}{subsubsection*.235}
\contentsline {subsection}{\numberline {6.1.3}sge.dsp.View}{53}{subsection.6.1.3}
\contentsline {subsubsection}{sge.dsp.View Methods}{54}{subsubsection*.284}
\contentsline {subsection}{\numberline {6.1.4}sge.dsp.Object}{54}{subsection.6.1.4}
\contentsline {subsubsection}{sge.dsp.Object Methods}{58}{subsubsection*.342}
\contentsline {subsubsection}{sge.dsp.Object Event Methods}{59}{subsubsection*.349}
\contentsline {chapter}{\numberline {7}sge.gfx}{63}{chapter.7}
\contentsline {section}{\numberline {7.1}sge.gfx Classes}{63}{section.7.1}
\contentsline {subsection}{\numberline {7.1.1}sge.gfx.Color}{63}{subsection.7.1.1}
\contentsline {subsection}{\numberline {7.1.2}sge.gfx.Sprite}{64}{subsection.7.1.2}
\contentsline {subsubsection}{sge.gfx.Sprite Methods}{65}{subsubsection*.413}
\contentsline {subsection}{\numberline {7.1.3}sge.gfx.Font}{77}{subsection.7.1.3}
\contentsline {subsubsection}{sge.gfx.Font Methods}{77}{subsubsection*.452}
\contentsline {subsection}{\numberline {7.1.4}sge.gfx.BackgroundLayer}{78}{subsection.7.1.4}
\contentsline {subsubsection}{sge.gfx.BackgroundLayer Methods}{79}{subsubsection*.469}
\contentsline {subsection}{\numberline {7.1.5}sge.gfx.Background}{79}{subsection.7.1.5}
\contentsline {subsubsection}{sge.gfx.Background Methods}{79}{subsubsection*.475}
\contentsline {chapter}{\numberline {8}sge.snd}{81}{chapter.8}
\contentsline {section}{\numberline {8.1}sge.snd Classes}{81}{section.8.1}
\contentsline {subsection}{\numberline {8.1.1}sge.snd.Sound}{81}{subsection.8.1.1}
\contentsline {subsubsection}{sge.snd.Sound Methods}{82}{subsubsection*.494}
\contentsline {subsection}{\numberline {8.1.2}sge.snd.Music}{83}{subsection.8.1.2}
\contentsline {subsubsection}{sge.snd.Music Methods}{83}{subsubsection*.507}
\contentsline {section}{\numberline {8.2}sge.snd Functions}{84}{section.8.2}
\contentsline {subsection}{\numberline {8.2.1}sge.snd.stop\_all}{84}{subsection.8.2.1}
\contentsline {chapter}{\numberline {9}sge.collision}{85}{chapter.9}
\contentsline {section}{\numberline {9.1}sge.collision Functions}{85}{section.9.1}
\contentsline {chapter}{\numberline {10}sge.joystick}{87}{chapter.10}
\contentsline {section}{\numberline {10.1}sge.joystick Functions}{87}{section.10.1}
\contentsline {chapter}{\numberline {11}sge.keyboard}{89}{chapter.11}
\contentsline {section}{\numberline {11.1}sge.keyboard Functions}{89}{section.11.1}
\contentsline {chapter}{\numberline {12}sge.mouse}{91}{chapter.12}
\contentsline {section}{\numberline {12.1}sge.mouse Functions}{91}{section.12.1}
\contentsline {chapter}{\numberline {13}sge.s}{93}{chapter.13}
\contentsline {chapter}{\numberline {14}Indices and tables}{99}{chapter.14}
\contentsline {chapter}{Python Module Index}{101}{section*.745}
\contentsline {chapter}{Index}{103}{section*.746}
