draft tutorial revisions
This commit is contained in:
parent
838da4571d
commit
48359b5a48
70 changed files with 6216 additions and 28 deletions
|
|
@ -29,13 +29,11 @@ texture = mcrfpy.Texture("assets/kenney_tinydungeon.png", 16, 16)
|
|||
grid = mcrfpy.Grid(
|
||||
pos=(100, 80), # Position on screen (pixels)
|
||||
size=(640, 480), # Display size (pixels)
|
||||
zoom = 2.0,
|
||||
grid_size=(GRID_WIDTH, GRID_HEIGHT), # Size in tiles
|
||||
texture=texture
|
||||
)
|
||||
|
||||
# Set the zoom level for better visibility
|
||||
grid.zoom = 2.0
|
||||
|
||||
# Fill the grid with floor tiles
|
||||
for y in range(GRID_HEIGHT):
|
||||
for x in range(GRID_WIDTH):
|
||||
|
|
@ -118,4 +116,4 @@ scene.on_key = handle_keys
|
|||
# Activate the scene
|
||||
scene.activate()
|
||||
|
||||
print("Part 1 loaded! Use WASD or Arrow keys to move.")
|
||||
print("Part 1 loaded! Use WASD or Arrow keys to move.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue