Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NITDgpOS/AirHockey
/ functions
Functions
41 in github.com/NITDgpOS/AirHockey
⨍
Functions
41
◇
Types & classes
3
↓ 12 callers
Function
button_circle
(screen, butt_color, button_pos, text, text_size, text_color, text_pos)
startScreen.py:20
↓ 9 callers
Function
disp_text
(screen, text, center, font_and_size, color)
startScreen.py:31
↓ 9 callers
Method
get_pos
(self)
puck.py:124
↓ 7 callers
Method
reset
(self, speed, player)
puck.py:106
↓ 6 callers
Function
reset_game
(speed, player)
main.py:240
↓ 3 callers
Method
draw
(self, screen)
puck.py:121
↓ 3 callers
Method
move
(self, time_delta)
puck.py:16
↓ 2 callers
Method
add_vectors
(self, (angle1, length1), (angle2, length2))
puck.py:43
↓ 2 callers
Method
check_vertical_bounds
(self, height)
paddle.py:15
↓ 2 callers
Method
collision_paddle
Checks collision between circles using the distance formula: distance = sqrt(dx**2 + dy**2)
puck.py:51
↓ 2 callers
Method
draw
(self, screen, x, y)
startScreen.py:56
↓ 2 callers
Function
end
(option, speed)
main.py:51
↓ 2 callers
Function
game_end
(screen, clock, background_color, player_name)
endScreen.py:9
↓ 2 callers
Function
game_loop
(speed, player1_color, player2_color, background_color, player_1_name, player_2_name)
main.py:256
↓ 2 callers
Function
hits_pause_area
Returns True if the mouse is clicked within the pause area
main.py:207
↓ 2 callers
Function
init
()
main.py:18
↓ 2 callers
Function
inside_goal
Returns true if puck is within goal boundary
main.py:246
↓ 2 callers
Method
move_left
(self)
startScreen.py:48
↓ 2 callers
Method
move_right
(self)
startScreen.py:52
↓ 2 callers
Function
notify_round_change
()
main.py:73
↓ 2 callers
Function
resetround
(player)
main.py:234
↓ 2 callers
Function
show_pause_screen
()
main.py:113
↓ 2 callers
Function
text_obj
(text, font, color)
startScreen.py:12
↓ 1 callers
Function
air_hockey_start
(screen, clock, scr_width, scr_height, mute)
startScreen.py:122
↓ 1 callers
Method
check_boundary
(self, width, height)
puck.py:22
↓ 1 callers
Method
check_left_boundary
(self, width)
paddle.py:23
↓ 1 callers
Method
check_right_boundary
(self, width)
paddle.py:29
↓ 1 callers
Method
end_reset
(self, speed)
puck.py:115
↓ 1 callers
Function
render_field
(background_color)
main.py:214
↓ 1 callers
Method
round_reset
(self, player)
puck.py:97
↓ 1 callers
Function
rounds
(rounds_p1, rounds_p2, round_no)
main.py:46
↓ 1 callers
Function
score
(score1, score2, player_1_name, player_2_name)
main.py:38
↓ 1 callers
Function
show_info
(screen, scr_width, clock)
startScreen.py:65
↓ 1 callers
Function
theme_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
Method
draw
(self, screen, color)
paddle.py:45
Method
get_pos
(self)
paddle.py:53
Method
move
(self, up, down, left, right, time_delta)
paddle.py:35
Method
reset
(self, start_x, start_y)
paddle.py:56