Coder Social home page Coder Social logo

connwars's People

Contributors

irapha avatar mobyvb avatar nadkarni avatar sylvia43 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connwars's Issues

Mobile browser support

For this we need (on mobile only):

  • fewer planets
  • bigger planets
  • to fix transform origin (is not working on iOS Safari)

Planet population

Each planet should have a set population. When two planets of the same side are linked, the population should equalize between the planets (or go at a linear rate. We haven't completely decided yet). When two planets of opposite sides are linked, the population of each should gradually decrease until one's is completely depleted.

Two way arrows

when two planets have connections open to each other, the arrows are currently overlapping, so only the top one is visible. They should instead appear alongside each other like this
screen shot 2014-08-23 at 9 02 39 pm

Delete leftover connections

after a planet turns color, the connection that planet had remains for a while.. This usually happens when the planet had a connection and multiple enemy planets are trying to take over it.

Menus

Have a starting menu with instructions.
Planets and portals should have hover menus that show details like distance from selected planet and population transferred per second, respectively.

Unselect planets when they change colors

look at this bug:

  1. select a blue planet that is about to be converted to red
  2. wait for it to be converted to red
  3. select another planet (a red connection is created)

chaos bug on ai

multiple blue planets connected to red planet. red planet goes on chaos but its pop does not go down.

May have nothing to do with the blue planets' connection because, in multiplayer, some chaotic planets are not having their pop go down either...

Change Planet Scaling Function

The current scaling function is too linear. Planets grow too little in small population numbers. The scaling factor should grow according to a percentage of newPopAdded/totalPopOfPlanet

Resetting Population after a closed connection

If you're fast enough, a planet with 0 < pop < 1 will not change its color, but will continue to grow its pop, making the planet have a pop, but not have any color (which also makes it impossible to change its color at any other point in the game)

MULTIPLE TRANSFERS BUG

to reproduce:

  1. select starter planet
  2. draw connection starter > grey planet (1)
  3. draw connection new blue planet (1) > grey planet (2)
  4. draw connection starter > new new blue planet (2)

notice how pop s decreasing from starter planet, but it is not being transferred to new new blue planet (2). The only pop being transferred to new new blue planet (2) is coming from new blue planet (1).

TL;DR: FIX MULTIPLE CONNECTIONS' TRANSFER

change planet scaling

  1. Planets are too small.
  2. Planet sizes should vary more in low populations
  3. there shouls be a standard size for planets with pop1. It should be visually visible that planets of pop < 1 are, in fact, < 1 and it should be clear how close they are to reaching pop 1. (0.2, 0.4, 0.7..... 1)

Planet selection

When a planet is clicked, it should be selected. If a planet is already selected, both planets should become selected, and an appropriately colored line should be drawn from one to the other. There should be a JS handler that deals with the planets' interaction until the link is broken.

display more red connections

Display red connections to grey planets that also have a connection from a blue planet. This will mean that, if a planet is in a standoff (grey because transfer from red and blue are canceling out), we will know that it is in a standoff. Otherwise, we will only see our blue connection and the planet simply. won't. turn. grey.

vanishing population

red connects to grey
grey pop < 1
blue connection to grey disappears and grey's pop resets.

Can't deselect a planet

When I have a planet selected and I click on empty space, the planet should be deselected

drag to connect

dragging from planet A to planet B should connect the planets and should display the connection being created following the user's mouse. dragging into limbo should not create the connection

Planet offset

Borders are taken into account when the top and left css attributes are set, so when planets are selected (and borders are set), they move slightly down and to the right.
Possibly fix this by having an internal or :after element with a border, which wouldn't affect positioning.

Use offset grid for random planets

Right now planet positioning is purely random (but symmetrical). Instead, planets should each spawn at a random point within a cell that is part of a grid.

Chaos mode

When a planet reaches maximum population, it goes into "chaos mode" indicated by a red border or darker background or something. At this point, the planet's population will decrease until it reaches a minimum population (roughly 2/3 of max pop).

Grey planets not being taken over

When trying to take over grey planets, it will sometimes not work until the AI takes them over. This would happen without red trying to take over the same planet simultaneously.

Don't delete ALL connections on entering Chaos

When a planet enters chaos mode, all connections TO it are deleted. However, we want connections from planets of different color to remain, because they don't add population to the receiving planet.

Multiple Connections bug

  1. click on small population planet
  2. click on grey planet
  3. before grey planet turns blue, create connection from big pop planet to that grey planet
  4. the last connection created does not have any effect on grey planet... why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.