Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XenonLab-Studio/TerraCraft
/ functions
Functions
129 in github.com/XenonLab-Studio/TerraCraft
⨍
Functions
129
◇
Types & classes
16
Method
keys
(self)
game/savemanager.py:118
Method
noise2
2D Perlin simplex noise. Return a floating point value from -1 to 1 for the given x, y coordinate. The same value is always returned
libs/perlin.py:155
Method
noise3
3D Perlin simplex noise. Return a floating point value from -1 to 1 for the given x, y, z coordinate. The same value is always return
libs/perlin.py:210
Method
noise3
Tileable 3D noise. repeat specifies the integer interval in each dimension when the noise pattern repeats. base allows a dif
libs/perlin.py:338
Method
on_draw
Event handler for the Window.on_draw event.
game/scenes.py:185
Method
on_draw
Event handler for the Window.on_draw event. Called by pyglet to draw the canvas.
game/scenes.py:705
Method
on_draw
(self)
game/scenes.py:795
Method
on_key_press
Event handler for the Window.on_key_press event.
game/scenes.py:157
Method
on_key_press
Event handler for the Window.on_key_press event. Called when the player presses a key. See pyglet docs for key mappings. Par
game/scenes.py:603
Method
on_key_press
(self, symbol, modifiers)
game/scenes.py:791
Method
on_key_release
Event handler for the Window.on_key_release event. Called when the player releases a key. See pyglet docs for key mappings.
game/scenes.py:663
Method
on_mouse_motion
Event handler for the Window.on_mouse_motion event. Called when the player moves the mouse. Parameters ---------- x,
game/scenes.py:580
Method
on_mouse_press
Event handler for the Window.on_resize event.
game/scenes.py:174
Method
on_mouse_press
Event handler for the Window.on_mouse_press event. Called when a mouse button is pressed. See pyglet docs for button amd modifier map
game/scenes.py:546
Method
on_resize
Event handler for the Window.on_resize event.
game/scenes.py:178
Method
on_sector_received
Called when a part of the world is returned. This is not executed by the main thread. So the result have to be passed to the main thr
game/world.py:258
Method
play_music
Play a music track, or switch to a new one. :param source: A pyglet audio Source
game/scenes.py:83
Method
process_entire_queue
Process the entire queue with no breaks.
game/world.py:543
Method
remove_block
Remove a block from this sector at the `position`. Returns discarded full faces in case.
game/world.py:166
Method
send_result
(future)
game/genworld.py:152
Method
set_state
(self)
game/graphics.py:94
Method
set_volume
Set the audio volume, as a percentage of 1 to 100. :param percentage: int: The volume, as a percentage.
game/scenes.py:58
Method
unset_state
(self)
game/graphics.py:114
Method
update
Update the currently set Scene. This method should be scheduled to be called repeatedly by the pyglet clock. :param dt: floa
game/scenemanager.py:83
Method
update
(self, dt)
game/scenes.py:108
Method
update
(self, dt)
game/scenes.py:146
Method
update
This method is scheduled to be called repeatedly by the pyglet clock. Parameters ---------- dt : float T
game/scenes.py:376
Method
update
(self, dt)
game/scenes.py:788
Method
update_batch_sector
(self, sector)
game/world.py:396
← previous
101–129 of 129, ranked by callers