Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This changes everything for me about coding games

A topic by TheBargainBedDev created 16 days ago Views: 161 Replies: 2
Viewing posts 1 to 3
(+1)

SOOOO

I always wanted to make games and I know pretty much how to code roughly but still found coding to be a huge barrier both in terms of time and how frustrating it can be.

WELLLL

I recently had an idea and I bet some people will call this cheating or say that it is taking the easy way out or even that it is inefficient or wrong. But it allows me to make games without having to code nearly as much and I feel like I can now develop on my own time and have fun doing it

so here it is.

I realized I can basically just create a script "Template" that basically contains the functionality for almost anything I would ever need an object to do.  Handling time, collision, or input events. Comparing values. Modifying properties. And even some built in actions like spawning objects.

And then I can copy and paste this template into any object I have to make, set it up by deleting sections, copying sections, Setting values that were placeholders.

And now pretty much 90% of the object script is done.

I can still of course add any custom code I want but now I have saved a ton of time. Is it necessarily the most efficient code, no! But it does what I needed it to do and now I saved a lot of time.

So yeah that is just my way of doing things now, maybe this helps someone, maybe it doesn't idk.

use OOP instead of copy and paste, and thats how most companies likely do it

A framework?

https://www.freecodecamp.org/news/what-is-a-framework-software-frameworks-definition/