README Updated to try to reflect current state
Controls and Current Features added listing Working, Partial, Not Working/Implementated. Key bindings was added in the last commit Current Features of Readme is incomplete and isn't fully reflecting what works and doesn't.
This commit is contained in:
parent
b9a280208b
commit
33404edcc1
33
README.md
33
README.md
@ -1,7 +1,32 @@
|
|||||||
# Falling Sand Simulation Concept in Python
|
# ***Falling Sand Simulation Concept in Python***
|
||||||
|
|
||||||
## mostly a concept in python for falling sand simulation
|
mostly a concept in python for falling sand simulation
|
||||||
|
i guess the goal is to make a python version of the powder toy which is a falling sand sim
|
||||||
|
the code is not finished yet, but i will update it as i go.
|
||||||
|
|
||||||
## i guess the goald is to make a python version of the powder toy which is a falling sand sim
|
## **Current Features**
|
||||||
|
|
||||||
## the code is not finished yet, but i will update it as i go
|
| **Working** | **Partial** | **Not Working/Implemented** |
|
||||||
|
| ----------------- | ----------------------------- | --------------------------- |
|
||||||
|
| Gravity | Gas | Zoom |
|
||||||
|
| Liquid/Solid | Liquid | Pause |
|
||||||
|
| Particle Data | Fire/Flame | Pressure |
|
||||||
|
| Brush Sizes | Particle Basic Interactions | explosiveness |
|
||||||
|
| Debugging Info | Particle Heat interactions | conductiveness |
|
||||||
|
| Menus and Buttons | Ambient Heat | |
|
||||||
|
| | Wind | |
|
||||||
|
| | Core Physics and Interactions | |
|
||||||
|
| | Core Rendering System | |
|
||||||
|
|
||||||
|
### **Controls**
|
||||||
|
|
||||||
|
| Key | Action |
|
||||||
|
| ------------------- | ------------------------------ |
|
||||||
|
| Z | Zoom window |
|
||||||
|
| ESC | Exit Program |
|
||||||
|
| C | Clear Screen |
|
||||||
|
| Space | Pause Simulation |
|
||||||
|
| Mouse 1 {Left} | Spawn Particle with brush size |
|
||||||
|
| Mouse 3 {Right} | Erase Particles at cursor |
|
||||||
|
| Mouse 2 {Middle} | Spawn Particle at cursor |
|
||||||
|
| Mouse Wheel Up/Down | Change Brush size |
|
||||||
|
|||||||
@ -75,6 +75,7 @@ def main(): # Main function to run the program
|
|||||||
|
|
||||||
if rendering.settings_button.collidepoint(event.pos):
|
if rendering.settings_button.collidepoint(event.pos):
|
||||||
settings_visible = not settings_visible
|
settings_visible = not settings_visible
|
||||||
|
|
||||||
elif settings_visible:
|
elif settings_visible:
|
||||||
# Handle settings toggles
|
# Handle settings toggles
|
||||||
mouse_pos = pygame.mouse.get_pos()
|
mouse_pos = pygame.mouse.get_pos()
|
||||||
@ -100,23 +101,26 @@ def main(): # Main function to run the program
|
|||||||
mouse_down_right = False
|
mouse_down_right = False
|
||||||
elif event.type == pygame.MOUSEBUTTONUP and event.button == 2:
|
elif event.type == pygame.MOUSEBUTTONUP and event.button == 2:
|
||||||
mouse_down_middle = False
|
mouse_down_middle = False
|
||||||
|
|
||||||
elif event.type == pygame.KEYDOWN:
|
elif event.type == pygame.KEYDOWN:
|
||||||
if event.key == pygame.K_ESCAPE:
|
if event.key == pygame.K_ESCAPE:
|
||||||
print("Escape button pressed")
|
print("Escape button pressed")
|
||||||
print(f"Exiting Program {__file__}")
|
print(f"Exiting Program {__file__}")
|
||||||
running = False
|
running = False
|
||||||
|
|
||||||
elif event.key == pygame.K_SPACE:
|
elif event.key == pygame.K_SPACE:
|
||||||
print(f"Pause button pressed but not functional 'Space'")
|
print(f"Pause button pressed but not functional 'Space'")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
elif event.key == pygame.K_c:
|
elif event.key == pygame.K_c:
|
||||||
rendering.clear_screen(sim)
|
rendering.clear_screen(sim)
|
||||||
|
|
||||||
elif event.key == pygame.K_z:
|
elif event.key == pygame.K_z:
|
||||||
zoom_active = not zoom_active
|
zoom_active = not zoom_active
|
||||||
if zoom_active:
|
if zoom_active:
|
||||||
zoom_locked = False
|
zoom_locked = False
|
||||||
zoom_pos = pygame.mouse.get_pos()
|
zoom_pos = pygame.mouse.get_pos()
|
||||||
|
|
||||||
|
|
||||||
elif event.type == pygame.QUIT:
|
elif event.type == pygame.QUIT:
|
||||||
running = False
|
running = False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user