r/CoopGameMaking • • May 08 '15

Submission Styling the stats

12 Upvotes

I was messing around to make it a bit more obvious and easier to click when there are stat points available to spend. Also, to align them all. Also to make it obvious when you can and can't spend stats.

Here is what it is right now

Proposed:

No points state

Points to spend

I don't want to send a pull request just yet as you might have some changes you want. Also if we're not doing style changes, I don't want to waste sending a pull request.

Let me know what you think. It's simple now, but can be worked on! :)

I was thinking with the health bar that may eventually appear, the health bar will go above the stats (below the level) as it appears in this thread but the health100will still be there. Just not the trailing/...` for example:

Health: 100 +10

Let me know what you think!

EDIT:


Done with the health bar

Full Health

Damaged


r/CoopGameMaking • • May 08 '15

Submission Add this as a placeholder image for MyCharacter. It'll be funny.

11 Upvotes

http://i.imgur.com/c0ydqZL.png

I made this image for the game.


r/CoopGameMaking • • May 06 '15

Idea Community peace of mind/"legal" stuff

9 Upvotes

I would like to propose that we have a standing agreement that the game is, in full, CC BY 4.0 licensed.

This would include any assets that are created for or submitted to the project.

Making this clear up front both in this sub and on the game's page itself will attract people because they know exactly how their assets and work will be used.

I'm not a lawyer, though, so I'm not sure how this would work with a community-owned/created venture.


r/CoopGameMaking • • May 12 '15

Thoughts on the new mascot

Post image
8 Upvotes

r/CoopGameMaking • • May 06 '15

Suggestions Coding style

8 Upvotes

There needs to be some kind of unified coding style for this project.

For example in the CSS file, there is a mix of snake_case and this-case for selectors. It is also indented using tabs, where spaces are usually preferred. There are also random tabs after some lines.

All in the CSS file.


r/CoopGameMaking • • May 08 '15

Submission Health Bar Addition

7 Upvotes

Image Links

http://imgur.com/9i77eIx

http://imgur.com/u8xGH1o

Source Code / Pull Request

Source

Description

Added a basic health bar with graphical representation of health. Created functions that allow the modification of the health bar allowing for something like a fight to directly impact health.


r/CoopGameMaking • • May 07 '15

Patch Patch 0.01 - Q.O.L Updates and Details

7 Upvotes

With the initial release, there was of course going to be things that probably could have been done better. Because these have no real impact on the game, these types of quality of life updates will be added whenever they are needed.

Contributors For This Patch

What was changed?

  • Cursor is now a pointer when hovering over stats

  • Fixed issue with page being < 800px

  • Made stat text unelectable

  • Added a JSFiddle with server functions removed

  • Added a chat room where people can discuss their ideas or what they are working on.

Coding Standards

Due to messiness of initial release code, we have decided to come up with a very basic procedure in terms of naming variables and the way the code should be written.

  • Game mechanic variables should be named like this <game_variable>

  • Variables relating to saves or server data should be named like this <serverVariable>

  • HTML elements (IDs and classes) should be named like this <page-id>

  • Code should also use tabs(4) and not spaces.

Thanks you in advance.

Todo: Put into text form to be available wherever

Additional Information

As stated above, these QOL updates will be added whenever we can add them as long as they have no major impact on the game. This thread will be updated throughout the day for any new QOL updates and still be under the same version.

We are currently looking for a name. If you have any suggestions, please head over to this thread and leave your ideas.


r/CoopGameMaking • • May 12 '15

Submission Event queuing and hours of days added #27

6 Upvotes
  1. Added a queue for events and a Game.Event.Type to represent a Game.Event type.

  2. Whole bunch of js/event.js clean up based around queuing and event type restructure

  3. Added basic border style per Game.Event.Type

  4. Added concept of hours and days (calculated in main game loop after elapsed is incremented)


r/CoopGameMaking • • May 08 '15

Submission Added Start / Pause / Resume functionality and cleaned up the footer: Pull Request #20

6 Upvotes

Mainly effected game.js. Please review and let me know if everything looks in order.

https://github.com/AnotherIndieDevStudio/Coopgamemaking-01/pull/20

edit: added another change to allow stat updates while paused. Same pull request. Please review and comment.


r/CoopGameMaking • • May 14 '15

Submission Added wounds #28

5 Upvotes

Added Game.Wound, which given a {character: {Game.Character}} will inflict damage on the assign Character until either the Character dies or the Wound heals.

A Wound has a {size: {number}} value that is clamped to the range [0, 1]. The default size is 0.3, which is also the larger size a self-healing Wound can be.

Any size over 0.3 and under 0.7 will remain the same size, and any size over 0.7 will grow larger to the maximum of 1.

At size 1, the current math should bring a Characters health from 100 to 0 in one Game day.

For example, running the following from your browsers JavaScript console while the Game is running will create a Wound on the player Character that is just over the self-heal threshold. An unhealed Wound of this size will kill you in about three Game days.

Game.Wound({ character: Game.player, size: 0.301 });

You can also experiment with inflicting lots of little self-healing Wounds on yourself, and watch your health decline faster the more small Wounds you have. If you stop inflicting small Wounds, the ones you've already applied will eventual heal and your loss of health should slow down and eventual stop.

Game.Wound({ character: Game.player });
Game.Wound({ character: Game.player });
Game.Wound({ character: Game.player });
Game.Wound({ character: Game.player });
Game.Wound({ character: Game.player });

Oh, there was one other thing that is unrelated but snuck into this pull request. That is that sunset and sunrise Events now fired at 5am and 7pm every day, instead of at random times.

Anyone's welcome that change these times, I just thought it allows for a slightly longer daylight if we choose to style the page or base other Events on whether it is dark or light.

UPDATE: OK so I got bored while waiting for feedback. I've now also added the concept of Locations. Characters now have a location property. Locations contain a list of Characters, meaning Characters can share the same Location with other Characters.

I've defined two locations so far, Game.Location.THEVOID is the default location for all Characters that get created without an initial location. Game.Location.TOWNCENTRE is what I move Game.player into at startup.

I've expanded on the rat encounter in the random events list to now have it create Rat characters using Game.Character.from_template('Rat') and moving them into the players location. At the moment, that's all that happens. But I'm heading towards the concept that Game.Location.update() looks for locations that contain an "un-agreeable" mix of Characters that want to fight each other and initiates fighting Events.


r/CoopGameMaking • • May 13 '15

Updating Site

5 Upvotes

Over the next few days, some changes to the main site will be made.

First off, the game will no longer be found at the index of http://coopgamemaking.com but will now be found at http://coopgamemaking.com/game.

The index page is being replaced by documentation and some very simple guides assisting people in getting involved in the project. We understand that looking at others code is daunting and that is why we are making sure that every bit of code is understandable to our fullest extent. We believe that when people understand what is going on with the code, they will be able to easily modify what they feel needs to be changed. It is also a learning mechanism as it builds your development knowledge. On top of these, it will also allow experienced developers to quickly find things they need to modify and make changes as they please without reading all the code.

We plan on releasing documentation on all the functions under the categories of the pages they are found under. Every function that is mentioned on a page should be linked to the function description. All source code will be found on the function pages.

This documentation will take a while to process and fully update however when done, it will look something like this http://i.imgur.com/Bczy5Sc.png

The page will also act as a blog for updates but reddit will still be our priority community site.

We will be using Wordpress for this project and our yet undecided on community permissions.


r/CoopGameMaking • • May 09 '15

Patch Patch 0.03 - Clean up (pull #22)

5 Upvotes

Clean-up of Patch 0.03

  1. Folded js/monsters.js properties like id, name, type and concept of Character templates into js/character.js

  2. Removed js/monsters.js

  3. Fixed max_health copy bug in Character(obj)

  4. Added id, name and type to saves and loads. id replaces userID response from loadgame.php (development server updated)

  5. js/developmentServer.js updated to deal with id, name and type

  6. js/developmentServer.js bug fixed where savegame.php &need_id= param was being ignored

  7. Renamed meaningless image name c0ydqZL.png to mascot.png

  8. Moved UUID to js/math.js

See pull request #22


r/CoopGameMaking • • May 09 '15

Reaching out and sharing this idea

5 Upvotes

Upon initially releasing this project, we advertised to a few subreddits (that's probably how you heard of it) and managed to capture a small community of active developers which is awesome! However, we would like to make this community bigger.

A bigger community means more submissions, more ideas and just more everything. We can do a lot more with a bigger community. If you have anywhere you would like to share this project, please feel free to do so.

We insist that you do not spam other places. Simply leave a link to this subreddit in an appropriate place or send it to a friend.

Thank you to every who helps spread the project.


r/CoopGameMaking • • May 07 '15

Idea The game should involve dragons, like their whole life cycle and mating. Zodiac signs can be included, and you should be able to do whatever you want like an open world rpg. I've never programmed before, but trust me, this is going to happen

5 Upvotes

r/CoopGameMaking • • May 07 '15

Submission Save Game Locally

5 Upvotes

Created a Git pull request to save the game locally, preventing data being lost if you forget save code as well as making it simpler to continue playing.

Data is stored using HTML LocalStorage so it can be a bit of a pain to delete. Intended for use in main game as testing with this is quite annoying.


r/CoopGameMaking • • May 06 '15

Submission Add Node Capability to Server

5 Upvotes

Add node server capability close #1 (pr#3) (Link to pull request on Github)

This adds the possibility for running the server with the usage of node.js. Adds the app.js file (the server itself) and the package.json file, which manages dependencies. Getting the server running on a local machine is as easy as five lines in a Linux terminal. This is useful for people who want to set up the server on their own computer, to test changes to the code.

These changes shouldn't affect how the server is running currently, and therefore shouldn't have any effect on CoopGameMaking.com, however it will make the testing process easier for those familiar with node.


r/CoopGameMaking • • May 06 '15

Suggestions Work Flow for Coding the Game

5 Upvotes

In the sidebar, there are guidelines for submitting, making ideas, writing code, etc. wouldn't it make more sense to submit issues for things we need to fix, assign issues for who's working on them, and submit pull requests for changing code? The project is on Github, and that is what the site is for, after all.

Issues can still be linked here, and pull requests made visible on the sub, but reddit is not a version control software for code.

Similarly, in /r/Ubuntu, they ask that questions are posted to stack overflow, then linked to on the subreddit, and I suggest that this is the method we follow here.

Use the software that's designed for version control, and use reddit to share and bring attention to what's happening in the git repo.


r/CoopGameMaking • • May 06 '15

The Game

Thumbnail coopgamemaking.com
5 Upvotes

r/CoopGameMaking • • May 06 '15

Idea A few suggestions!

5 Upvotes

Obviously there isn't really much to this game so here's a few suggestions of mine:

  • Have an enemy to battle where your stats determine how fast you kill it and how much damage it does to you, award experience reasonably.

  • Have this enemy drop items, this would mean implementing an inventory system which wouldn't be too hard.

  • A splash of colour wouldn't hurt too :)

Edit: Also I'm not sure what type of game your going for but at the moment it seems like you are heading towards some form of idle game due to the experience going up slowly?

Edit 2: If this game is done purely in Javascript which by looks of it is, I could help develop systems and stuff.


r/CoopGameMaking • • May 15 '15

Patch Patch 0.06 - Added Inventory and Defence Stat

4 Upvotes

Contributors:

What has changed?

  • Added Inventory

  • Added Wounds

  • Added Locations

  • Added Defence Stat

  • Changed Game Page Title

Reminder

Still working on the documentation. We have plans on having it complete by Sunday. If you are interested in giving a hand, please leave a comment below.


r/CoopGameMaking • • May 13 '15

Suggestions What are the mechanics of an attack?

4 Upvotes

Now we have basic Characters, Events and Items, I was thinking of having a go at putting the first attack mechanic into the game.

Looking at the what we currently have for Character stats, I think we are crucially missing attributes specifically to resolve attacks.

The current stats are:

health
max_health
strength
intellect
dexterity
level

Besides health, these seem to all be stats that would restrict Item usage and do not have any direct input to resolving an attack between two Characters.

I think we need to add the following two attributes, which are directly involved in the resolution of an attack.

attack
defense

If Character A was attacking Character B, the math would be something like the following...

if A.attack > B.defense then
    
    Create a Wound on B equal to A.attack - B.defense

end if

An attack never directly affects health, instead it creates a new thing called a Wound that is attached to the the Character took a hit. Wounds would then directly affect health per Game.elapsed tick. The larger the Wound, the more health is lost per tick.

No idea what the real numbers would be, but say a Wound could be a maximum value of 10. Then Wounds 0 to 5 heal per tick on top of also applying -health.

i.e. A single Wound update would do the following

character.health -= wound.size

--wound.size

if wound.size === 0 then

    remove would from character

end if

attack and defense attributes are not manually adjusted by the user like health, strength, etc... but instead only Items on the Character affect the amount of attack and defense a Character has.

Where strength, intellect, dexterity and level come in to play is that they restrict what Items you can use on your character. So for example you can't pick up the best shield in the Game if your strength is too low.

A Characters of the same type would have a equal amount of base attack and defense.

What does everyone think about this sort of mechanic?


r/CoopGameMaking • • May 12 '15

Patch Patch 0.04 - Events and Items

4 Upvotes

Finally some game play updates! (sort of)

Contributors

What's changed?

We have added a new event system that randomly generates events and displays them on the side of the screen. We have also added items to the game. Each of these updates don't impact gameplay currently but will hopefully give developers something to work on. It also points the game in a general direction although that shouldn't stop people adding what they feel is needed (or what people want) to the game.


r/CoopGameMaking • • May 11 '15

Added items to the game (Pull #25)

4 Upvotes

Source

I have added the ability to add items to the game. These items modify the stats of the player allowing them to directly impact the game.

I have not added the ability to add items to the player or an inventory system however.


r/CoopGameMaking • • May 08 '15

Patch Reminder

4 Upvotes

In ~24 hours, the first additions for the game play/graphics aspects will be chosen.

We will personally choose the ideas based on community reactions and upvotes to the submissions. Once we have chosen, we will notify you guys of what is being added and then start working on integrating everything.

Remember, don't worry if your ideas weren't favoured by the community. That is part of the project. People will dislike things and people will love other things. Keep working on your idea and try to make something allot of people will enjoy.


r/CoopGameMaking • • May 08 '15

Question Do the changes have to be major?

4 Upvotes

Hi guys, I really want to contribute to this project but unsure on if the changes need to be majorly 'game changing' or if they can be tiny little additions here and there?

This will be my first project that i'd have contributed to and so i'm not entirely sure how to do a lot of things (I only found out how to make a pull request a few minutes ago) so please forgive me, but I hope I end up helping shape this game up into something really cool with everyone :)