Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.84k stars 503 forks source link

Design and implement a sunlight system & Photosynthesis #146

Closed jjonj closed 10 years ago

jjonj commented 10 years ago

Initially sunlight could simply always be available, then later a system for day/night cycles could be implemented (consult the game design document http://www.mediafire.com/view/8zmwhit67ffv8fi/Game+Design+Document+-+Microbe+Stage+v1.0.1.docx).

To utilize the sunlight, chloroplast organelles should be made available, utilizing the sunlight for ATP production + CO2 Emitters to enable the process.

TheGuineapig commented 10 years ago

Currently making a chloroplast organelle

TheGuineapig commented 10 years ago

Chloroplast organelle: https://www.mediafire.com/?vddqzxc8z04v1dj this is one of my first models so please criticize.

jjonj commented 10 years ago

My blender straight up crashes when I try to open it, possibly because I'm using blender 2.67 (not the newest version), which is necessary for the exporting to work correctly (I think). I linked a tutorial in the compound models thread that explains some concepts necessary to get things working in-game.

Moopli commented 10 years ago

Press P in editor to place a chloroplast. Adding a GUI button can wait until we have a new GUI that automatically arranges buttons for us. Chloroplast currently eats CO2 and poops free glucose, but there aren't any CO2 sources in the environment. Environmental CO2 will probably wait on the grid (#165).

jjonj commented 10 years ago

It would be really trivial to make emitters for CO2 if you want. Just copy one of the function on line 71 of microbe_stage/setup.lua and change the "oxygen" string to "co2" and at line 274 add spawnSystem:addSpawnType(MyCopiedCo2EmitterFunction, 1/20^2, 30) If you want the emitters to look like co2 just change sceneNode.meshName = "molecule.mesh" to sceneNode.meshName = "co2.mesh"

Moopli commented 10 years ago

yay this is done