Assuming you had a nav stored as a variable with both:
$nav.addClass( 'color--red' );
Yup. It was that easy. But at the time, a StackOverflow made me worry about support and I resorted to use small pre-written functions for this project.
It was a text-based game
The core-idea of this project was to create a text-based game with ambient visuals. As the end goal was for something to be displayed on a phone, I realized screen real-estate should be devoted to the text and any visuals should be second in nature to a user.
Looking back, there’s a ton of things that I could have done better, but that’s the ongoing issue with development:
There’s always something that can be done better, but do you have the time or knowledge to make it better?
Two struggles were precedent throughout the project.
- Writing a decent story and mapping out choice logic.
Here are some screenshots of the latter:
Here’s a little sneak peak
Below 👇🏾 is a preview of a little redesign of the project that I’m working through. Let me know if you wish to see the original code and I can push it up to Github sometime.