Game
Caverns And Dryads

3 years ago

For those who program and those who don't, I thought you may find interesting how the process of programming works when doing a game and in general. Your comments are very welcome! If you use some different process, tell it! :)
Read the article below! :)


I've illustrated the process with a circle, with 5 phases: think, plan, code, debug, and optimize.
Programming always starts with an idea. Never rush to code in the fist step. The first move should be thinking in what your game should have, how that features will work, and what data do you need to use for that.
This is the moment in which you have to use pen and paper, or a notes app, or a mind mapping app. You create the abstract concept of the game or the feature.

You don't need to have everything perfectly planned. Just the basic part. Once you go into the next phases, you can make the idea cleaner.

The next phase that I called Plan, is what I use to do this way: you go to your code editor, and write comments that break in small steps what is needed to do something. I go from a general concept to the small steps. So for example, I can add this comment:
// the heroine fights the monster
and then break it in parts:
// the heroine attacks

// monster defends

and then re-examine the steps and break into smaller steps:

// random number is lesser than heroine.attack = success

Once the steps are small enough, is the real moment in which I actually begin to code. I translate those tasks into the particular language I am programming in.

As you can see, there is actually 2 non-programming phases (think and plan), and one of coding, and two (debug and optimize) that are fixing the code.

Once it works, I have to play my own game or program, and note down all the things that don't work as they should (bugs), fix them (I'll write another article about how to find bugs), and replay again until all seems to work good.

Then comes the last part of the circle, that is optimizing. Now that it works, we have to make it work better. This is the moment for cleaning the code of things that are not needed or used, or for simplifying code that is unnecessarily complex or uses too much resources, make the program run faster, or make it use less resources.

Why do we do this? We do it to make it use less computer resources, and be less prone to errors, and to make it easy to modify or extend in the future.

And finally, that is why this is a circle. You have freed resources and made the code more extendable. Now, you can add more features! So you think and plan another feature and the circle starts again, with the same steps.

A game or a program can improve and add features endlessly until the programmer dies or someone kills them :)

Again, your comments are very welcome! Share how you work, or any idea you have! :) Follow for more!



0 comments

Loading...

Next up

Another of #mygamefeatures. Spell casting. There are 7 types of spells, and 12 realms of magic. Some magic works against some kind of monsters. They have visual effects,and sound. The wizard can turn a though situation into a success if you are strategic

Hi! :) I've updated the cover art and the splash screen and fixed some bugs. There's a new release 1.0.5

I'm also working on the Windows version. I'll post news about it as soon as I finish the decorations and UI of that one.

And this is a screenshot of how it is looking for the upcoming Windows version. I remade the UI so it fits big screens and added decorations so there's no excessive empty space. They also add to immersion and more artistic look.

#screenshotsaturday

Quests inspired by @WhitethornGames ' Spray Paint Simulator entered your quest log!

Bring color to the world! Restore worn-out surfaces with a fresh coat of paint & watch them come back to life.

Play the free demo to get started: https://bit.ly/spraypaintsimdemo

New version for Android! And upcoming version for Windows! See screenshots and what's next on my blog: http://www.beautifulfantasy.art/2025/04/upcoming-windows-version…

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

I changed the art of the splash screen video, and the cover. The heroine in the old one was not matching the style of the rest of the illustration, and light was not coherent.

I'm developing the logic on the relationship between the warrioress and the wizard. Here's an early screenshot. Also, wrote a related post on the blog.

@WhalesAndGames is a Jolter to Watch and an indie studio who creates positive, polished games and art brimming with whalistic personality! Follow @WhalesAndGames before the quest ends on May 20 and you'll get Coins!

Did a forum for my game. It's all new now, but hope some will use it. If not, it just helps me to track featured easier.

Feel free to come and ask things, or if you played, there's a lot for you. cavernsanddryads.foroactivo.com

#roguelike #rpg