You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

Flowers! [withdrew from contest] [ti-nspire cx] [PC]

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/PC, Mac & Vintage Computers publicado por u/Strontium April 29, 2015, 11:38:50 PM
NOTICE: There is a git repo available here: https://gitlab.com/Strontium/flowers

I am creating a game where you program a plants DNA to allow it to survive in the given environment. DNA is edited in segments of four, and each segment does a different thing. So a segment dedicated to leaves could allow you to change the type of leave, wether that means its a light leaf, dark leaf, fuzzy leaf, whatever. (Yes, each type of leaf in nature has its pros and cons, they are not just like that to look pretty!)

For each plant you create, there will be some undocumented DNA segments that randomly generate in a different place each time. It is up to you to experiment with the undocumented ones to see what they do & utilize them.

You can see how much water, nutrients, and sunlight your plant it getting (all relative to its size) in the stats screen:

(the white borders are a bug in the emulator :P)

There will also be a screen where you can see your plant, and observe the environment. How much rain? How much sun? How good is the soil? Using what you can see on this screen will help you create your plant.

My TODO list, in order of priority:
-- finish stats screen (complete)
-- finish plant visualizer
-- make DNA editor
-- write the simulation code
-- score & failure screens

After the contest I am going to allow myself to expand into 8x6 or maybe 12x9 so I can add more features in stuff in order to make it more intuitive and fun.
Last Edit: August 10, 2015, 01:00:59 AM by Strontium
Inicia sesión o crea una cuenta para dejar un comentario
u/Strontium April 30, 2015, 12:00:24 AM
Huh. Tested this on a real calc, *some* of the white lines are real. But I have no idea how to fix them or why they are there D:
Edit: Fixed them by rounding the outputs of the functions I used to get the window dimensions. Thanks math.ceil()!

Now all of the extra lines are bugs in the emulator, not in my code:
Last Edit: April 30, 2015, 12:06:53 AM by Strontium
u/Dream of Omnimaga April 30, 2015, 03:43:25 AM
Interesting idea. Will the leaves always have a green color or can they sometimes be represented with something else? What about sun, heat, cold, rain, etc?
u/Strontium April 30, 2015, 03:45:56 AM
On the plant screen, the sun will be in the upper right corner as a single pixel. The brightness represents how much heat and sunlight is being given off.

When it rains, the sun will be blocked by a cloud and blue pixels will fall from the sky.

I could make it so your plant could be different colors, but it would be only for aesthetics. Doing anything more advanced with colors would require more space.
u/Dream of Omnimaga April 30, 2015, 03:49:26 AM
Aah ok thanks for clarifying. Sounds like a better move to put it at the top in a corner, since that's where it normally is. :P. I also like the rain drop idea. Or you could just replace the sun with an invisible pixel when it's cloudy, blue when it's rainy and gray when it's snowing.
u/Strontium April 30, 2015, 03:51:07 AM
But thats lame.

And now I want to include snow, but without being able to make it much more advanced I don't know how to implement it...

something something cold adapted something something surprise global warming something something BURN!
u/Dream of Omnimaga April 30, 2015, 03:55:30 AM
You could maybe focus on the basics for now since after all plants usually can't grow in a snowy environment anyway. The most common conditions are hot, warm, cold, dry, wet, rainy, cloudy and sunny.
u/Unicorn April 30, 2015, 05:51:01 AM
I have a feeling this will be the most original. :P

Anyways, that is a pretty cool idea, blending ed with games.
u/Snektron April 30, 2015, 08:03:39 AM
Very, very cool idea :D
u/Strontium April 30, 2015, 08:56:10 PM
Thank you :walrii:
u/Strontium May 01, 2015, 01:57:27 AM
UPDATE TIME!

I've begun working on the environment viewer screen. So far, the sun varies brightness depending on how much light it should give off, and the quality of the land is displayed in the color of the soil (light green is the best, dark brown is pretty good, light brown starts to suck, and then theres a bunch of different yellows for desert. There are also other colors for the land, those are just some examples).

This part is half-way done, though, because displaying the plant depends on its DNA, which I have not yet implemented. As such, I will begin work on the DNA editor tomorrow. Once the DNA editor is done, I'll be able to finish the plant visualizer.

Once I finish the plant visualizer, I'll begin working on the simulation code.

u/Dream of Omnimaga May 01, 2015, 05:52:30 AM
The layout is much better this way :)
u/Strontium May 01, 2015, 05:55:11 AM
The other screen still exists :P Its kinda necessary so that the player can understand what is going on with the plant. Showing the environment with a image instead of some status bars is a lot more pleasant, which is why I am doing that here.

Unfortunately, the DNA editor wont be very pretty. Once I expand into 8x6 after the contest, though, I have nice plans for it.
u/Snektron May 01, 2015, 09:25:20 AM
I like the sun and the grass. Very clear what's its supposed to be, and looks nice ;)
u/alexgt May 01, 2015, 02:09:23 PM
Air pollution would be a nice touch.
Start a Discussion

b/PC, Mac & Vintage Computers

Computer programming discussion and project showcase

132
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal