Python Enhanced Edition
π Provide the Python community with a fast track to high performance 3D VR multiplayer games installable on phones, tablets, laptops, and desktops as Progressive Web Applications (PWAs). The resultant games are compatible with many popular VR HMD and controller systems such as the Oculus Quest.
π Provide students and teachers with an accompanying introductory level curriculum covering Python programming, computer networks, and application asset design.
π Log into the tech demo with username: computer or science and password: 1234.
π Keyboard Interface:
- Movement: WASD or Arrow Keys
- Chat Mode:
- Toggle On/Off: =
- Submit: Enter
- New Line: Down Arrow
- VRUI Toggle On/Off: Backquote Key
The CS1 Game Engine is currently lacking a clear boundary between itself and the embedded tech demo. I will soon start to pull those apart to establish a clear API boundary layer for the engine. For now I suggest starting with the lessons accompanying the CS1 Python IDE.
π Remix this project.
π Add an ADMIN_KEY in .env, such as:
ADMIN_KEY="myAdminPassword1234"
π Add DATABASE_API_PROPERTIES in .env, separated by spaces such as:
DATABASE_API_PROPERTIES="LED credits"
π Add IOT_API_KEY in .env if you are connecting an IoT device:
IOT_API_KEY="wejvaYi359qM12"
π For the admin account, login with admin and your ADMIN_KEY.
π Add additional accounts through the client console.
CS1.socket.emit('add-user',{key:[ADMIN_KEY],name:[new username],pw:[new user pw]})
π After changing any src/ files, in the server Tools/Console run:
pnpm run build
refresh
π Based upon A-Frame version 0.9.
π Using navigation mesh based pathfinding.
π Integrated with D3.js for data visualization.
- Make examples. (TODO)
π Enables easy use of shaders created with Shader Frog.
- Include the desired shader json file in your build by importing in shader-frog.js
- Declaratively implement the shader-frog component in your HTML.
π JS, CSS, and JSON bundling, minification, and uglifying with Rollup.
π Installable as a Progressive Web App (PWA).
π Heads Up Display (HUD) system including:
- RingDial data visualization widget
- Meter data visualization widget
- GUI Widgets (TODO)
π Collectibiles System
- Offline collection
- Online collection
- Collectibles can be set to respawn
π Items can be declared grabbable, therefore movable by players.
π grabbable items can be launched with the launchable component.
π A-Frame Effects
- bloom
- glitch
- godrays
- fxaa
- JSON particles bundling
π BGM System (named exports)
- via SoundCloud
- bgmlite: simple no UI, no server interaction
- bgm: includes UI and interactive multiplayer interaction (TODO)
π Player Component
- instantiated for all players
- avatars and animation clips can be changed dynamically
π Node Graph Flow Based Editor
- Create with Litegraph. (Early Development)
π Cloud Component
- vertex animation
- custom color
π NPC Component
π Dotrow Component
- Makes it easy to add rows of collectibles.
- Intended to be developer's first look in to editing component source code.
π Database
- uses Lowdb
π IoT Component
- Illustrates basic IoT device integration.
π CS1.scene
π CS1.myPlayer
π CS1.otherPlayers
π CS1.utils
- uuid()
- isEqual(a,b)
- toColor(number)
- randomFromArray(array)
π CS1.cam
π CS1.collectibles
π CS1.grabbables
π CS1.hud
π CS1.say
π CS1.sounds
π CS1.shaderfrog πΈ
- provides easy access to shaders to manipulate uniforms.
π CS1.npc
π CS1.game
π CS1.db
- set({key:'value'} , callbackFunction)
- get('key' , callbackFunction)
π Please post any issues to GitHub.