import streamlit as st # Set wide layout st.set_page_config(layout="wide", page_title="Galaxian 3D Evolution", initial_sidebar_state="expanded") # Sidebar instructions st.sidebar.markdown("## Galaxian 3D Evolution Controls") st.sidebar.markdown(""" - **Controls:** - **WASD:** Move camera (forward, left, back, right) - **QE:** Rotate camera up/down - **Mouse:** Orbit camera (click and drag) - **Arrow Keys:** Direct snake (Up, Down, Left, Right) - **R:** Reset game - **Features:** - 3D snake navigates a space grid. - Eat alien food (👾) to grow and trigger L-system growth. - Creatures exchange quine messages (hover to see). - Avoid walls and self-collision. Enjoy the 3D Galaxian experience! """) # Three.js HTML/JavaScript code html_code = r""" Galaxian 3D Evolution """ st.components.v1.html(html_code, height=700, scrolling=False)