Latest Featured Articles
I asked else where on other websites for this and never got answers, I am struggling to know how to do a design pattern for abilities that you can swap in and out that affect the given object's stats.
Lets take a weapon like a gun as an example. Of which can have a number of attachments that affect its aim, fire rate, magazine count etc. You can add/remove the attachments.
I can setup something like that pretty easily (although its very tedious) by creating each attachment and setting its data to what it affects. But then i ran into problems for putting restrictions in place, because then i need a unique one for each weapon they are restricted to. For example:
Scope A only attaches to gun A , C, D
Magazine A attaches only to gun B , C
When i have these specific restrictions - my tedious approach of hard writing it kinda falls apart. So i need a design pattern where this will work easily.
What is the correct way to design this in C# ? I can't figure out a clean system for this at all.
As a hobby programmer I am slowly working my way up project by project to make a game. However I am currently stumped on what to do with what I call the communication layer.
To explain: you have an ability, a technology or a building first you need to communicate to anyone effected to apply the effects. Also abilities might need to know when a certain activity is started or ended to trigger or alter their effects.
Events are a tool to handle this, but:
1) You still need an effective filter, so only those recipient are called that fulfill certain requirements(nationalities, race, class, locality etc)
2) You need to know/write beforehand what method needs to trigger an event.
I would be thankful for any advice on these two points, is there any way to elegantly append a methodcall with another methodcall?
I mean I could write some kind of wrapper containing a delegate of a method and then only call the wrapper, having the wrapper contain a list of additional method calls and their inputs to be executed?
My name is Spencer Goold Executive Director of The AGIF, a startup nonprofit with the mission of advancing the missions of other nonprofits (aka NGOs: Non-Governmental Organizations) worldwide and to connect changemakers for a better world. We're developing a mobile game app to help raise awareness on global issues and to create more funding opportunities for smaller nonprofits around the world. This will be a 16-bit strategy-based, city building game in the artistic style of the SNES title, “Zelda: A Link to the Past” or the SNES “Final Fantasy” series.
You play as a customizable avatar from an alien, yet familiar world, where your community is deeply impoverished. Your character receives an educational scholarship and, upon completing their education and making valuable connections, decides to return home and apply their knowledge to help their community thrive.
You’ll begin with building a small education center where you can offer further education to the local youth. From there, they can begin contributing in new ways to the economy. As your resources grow, you can build new facilities such as sanitation, water, and medical structures. Once your population begins to stabilize and grow, you can upgrade your facilities to accommodate a larger populous.
As the gameplay progresses, you’ll begin to deal with new issues such as the spread of disease, famine, and natural disasters, to name a few. Once this begins, you’ll need to reach out to your friends who are also playing for resources and volunteers to help tackle the issues together.
The hope is that we can do this in a way that will educate players on some of the more prevalent issues that we face in the world while inspiring the spirit of giving and volunteerism. The game will be free-to-play with in-app purchases, where the money will go to charity to help people in real life.
I am now seeking game designer for my new team who can help me develop a 10 – 15 minute gameplay demo with one complete level. So far, we have a fully fleshed-out game doc with concept art, but would be open to interpretations and new concepts.
If you're interested, please comment to this post below or send me a PM. Thanks, everyone, for taking the time to read through this.