Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LanKuDot/MLGame
/ functions
Functions
255 in github.com/LanKuDot/MLGame
⨍
Functions
255
◇
Types & classes
57
Method
get_keyboard_command
Get the command according to the pressed keys
games/pingpong/game/pingpong.py:104
Method
get_player_scene_info
Get the scene information to be sent to the player
games/arkanoid/game/arkanoid.py:57
Method
get_player_scene_info
Get the scene information to be sent to the player
games/pingpong/game/pingpong.py:97
Method
get_pressed_commands
Check the pressed keys and return the corresponding commands @return A list of commands of which corresponding keys are pressed
mlgame/gamedev/generic.py:33
Method
get_send_end_names
Get the name of all registered communication objects used for sending @return A dictionary view objects containing the key of `_send
mlgame/communication.py:65
Method
head_pos
(self)
games/snake/game/gameobject.py:74
Function
main
mlgame/crosslang/compile/cpp/include/base_main.cpp:5
Method
move
(self, move_action: PlatformAction)
games/arkanoid/game/gameobject.py:85
Method
move
(self, move_action: PlatformAction)
games/pingpong/game/gameobject.py:56
Method
move
(self)
games/pingpong/game/gameobject.py:92
Function
moving_collide_or_contact
Check if the moving sprite collides or contacts another sprite. @param moving_sprite The sprite that moves in the scene. It must
mlgame/gamedev/physics.py:23
Method
poll
(self)
mlgame/communication.py:161
Method
pos
(self)
games/snake/game/gameobject.py:23
Method
pos
(self)
games/snake/game/gameobject.py:45
Method
pos
(self)
games/arkanoid/game/gameobject.py:27
Method
pos
(self)
games/arkanoid/game/gameobject.py:79
Method
pos
(self)
games/arkanoid/game/gameobject.py:120
Method
pos
(self)
games/pingpong/game/gameobject.py:50
Method
pos
(self)
games/pingpong/game/gameobject.py:85
Method
pos
(self)
games/pingpong/game/gameobject.py:125
Function
positive_int
(string)
games/pingpong/config.py:5
Method
record
(self, scene_info, commands)
mlgame/recorder.py:104
Function
rect_break_or_contact_box
Determine if the `rect` breaks the `box` or it contacts the border of `box` @param rect The Rect of the target rectangle @param box The
mlgame/gamedev/physics.py:122
Method
recv
(self)
mlgame/communication.py:164
Method
recv_all
Receive objects from all communication object registered for receiving If `to_wait` is True, it will wait for the object one by one.
mlgame/communication.py:95
Method
reset
Reset the game This function is invoked when the executor receives the reset signal
games/snake/game/snake.py:60
Method
reset
(self)
games/snake/game/gamecore.py:58
Method
reset
Reset the status if needed
games/snake/ml/ml_play_template.py:31
Method
reset
(self)
games/arkanoid/game/gameobject.py:82
Method
reset
(self)
games/arkanoid/game/gameobject.py:123
Method
reset
Reset the game
games/arkanoid/game/arkanoid.py:51
Method
reset
(self)
games/arkanoid/game/gamecore.py:66
Method
reset
Reset the status
games/arkanoid/ml/ml_play_template.py:29
Method
reset
(self)
games/pingpong/game/gameobject.py:53
Method
reset
(self)
games/pingpong/game/gameobject.py:88
Method
reset
Reset the ball status
games/pingpong/game/gameobject.py:132
Method
reset
Reset the game
games/pingpong/game/pingpong.py:91
Method
reset
(self)
games/pingpong/game/gamecore.py:53
Method
reset
(self)
games/pingpong/ml/ml_play_manual.py:37
Method
reset
Reset the status
games/pingpong/ml/ml_play_template.py:29
Method
send
(self, obj)
mlgame/communication.py:167
Method
send_to_all_ml
Send the object to all ml process
mlgame/communication.py:196
Method
set_function
Set the target function to the function delegate @param func A function or a callable object
mlgame/utils/delegate.py:17
Method
speed
(self)
games/pingpong/game/gameobject.py:129
Function
trim_callstack
Shorten the call stack to the starting point of the user script
mlgame/exceptions.py:28
Method
update
Update the game
games/snake/game/snake.py:27
Method
update
Update the scene @param action The action for controlling the movement of the snake
games/snake/game/gamecore.py:74
Method
update
Generate the command according to the received scene information
games/snake/ml/ml_play_template.py:12
Method
update
Update the game
games/arkanoid/game/arkanoid.py:22
Method
update
(self, platform_action: PlatformAction)
games/arkanoid/game/gamecore.py:80
Method
update
Generate the command according to the received `scene_info`.
games/arkanoid/ml/ml_play_template.py:12
Method
update
(self, command)
games/pingpong/game/pingpong.py:25
Method
update
(self, move_action_1P: PlatformAction, move_action_2P: PlatformAction)
games/pingpong/game/gamecore.py:66
Method
update
(self, scene_info)
games/pingpong/ml/ml_play_manual.py:18
Method
update
Generate the command according to the received scene information
games/pingpong/ml/ml_play_template.py:16
← previous
201–255 of 255, ranked by callers