MCPcopy Create free account

hub / github.com/NITDgpOS/AirHockey / functions

Functions41 in github.com/NITDgpOS/AirHockey

↓ 12 callersFunctionbutton_circle
(screen, butt_color, button_pos, text, text_size, text_color, text_pos)
startScreen.py:20
↓ 9 callersFunctiondisp_text
(screen, text, center, font_and_size, color)
startScreen.py:31
↓ 9 callersMethodget_pos
(self)
puck.py:124
↓ 7 callersMethodreset
(self, speed, player)
puck.py:106
↓ 6 callersFunctionreset_game
(speed, player)
main.py:240
↓ 3 callersMethoddraw
(self, screen)
puck.py:121
↓ 3 callersMethodmove
(self, time_delta)
puck.py:16
↓ 2 callersMethodadd_vectors
(self, (angle1, length1), (angle2, length2))
puck.py:43
↓ 2 callersMethodcheck_vertical_bounds
(self, height)
paddle.py:15
↓ 2 callersMethodcollision_paddle
Checks collision between circles using the distance formula: distance = sqrt(dx**2 + dy**2)
puck.py:51
↓ 2 callersMethoddraw
(self, screen, x, y)
startScreen.py:56
↓ 2 callersFunctionend
(option, speed)
main.py:51
↓ 2 callersFunctiongame_end
(screen, clock, background_color, player_name)
endScreen.py:9
↓ 2 callersFunctiongame_loop
(speed, player1_color, player2_color, background_color, player_1_name, player_2_name)
main.py:256
↓ 2 callersFunctionhits_pause_area
Returns True if the mouse is clicked within the pause area
main.py:207
↓ 2 callersFunctioninit
()
main.py:18
↓ 2 callersFunctioninside_goal
Returns true if puck is within goal boundary
main.py:246
↓ 2 callersMethodmove_left
(self)
startScreen.py:48
↓ 2 callersMethodmove_right
(self)
startScreen.py:52
↓ 2 callersFunctionnotify_round_change
()
main.py:73
↓ 2 callersFunctionresetround
(player)
main.py:234
↓ 2 callersFunctionshow_pause_screen
()
main.py:113
↓ 2 callersFunctiontext_obj
(text, font, color)
startScreen.py:12
↓ 1 callersFunctionair_hockey_start
(screen, clock, scr_width, scr_height, mute)
startScreen.py:122
↓ 1 callersMethodcheck_boundary
(self, width, height)
puck.py:22
↓ 1 callersMethodcheck_left_boundary
(self, width)
paddle.py:23
↓ 1 callersMethodcheck_right_boundary
(self, width)
paddle.py:29
↓ 1 callersMethodend_reset
(self, speed)
puck.py:115
↓ 1 callersFunctionrender_field
(background_color)
main.py:214
↓ 1 callersMethodround_reset
(self, player)
puck.py:97
↓ 1 callersFunctionrounds
(rounds_p1, rounds_p2, round_no)
main.py:46
↓ 1 callersFunctionscore
(score1, score2, player_1_name, player_2_name)
main.py:38
↓ 1 callersFunctionshow_info
(screen, scr_width, clock)
startScreen.py:65
↓ 1 callersFunctiontheme_screen
(screen, clock, scr_width, scr_height, music_paused)
themeScreen.py:8
Method__init__
(self, x, y)
puck.py:8
Method__init__
(self, pid, grid_position)
startScreen.py:41
Method__init__
(self, x, y)
paddle.py:7
Methoddraw
(self, screen, color)
paddle.py:45
Methodget_pos
(self)
paddle.py:53
Methodmove
(self, up, down, left, right, time_delta)
paddle.py:35
Methodreset
(self, start_x, start_y)
paddle.py:56