GithubHelp home page GithubHelp logo

pdybowski / village-defense Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 21.05 MB

Home Page: https://pdybowski.github.io/village-defense/

TypeScript 73.38% CSS 18.62% HTML 4.18% JavaScript 3.82%
coderscamp coderscamp2020 coderscamp2020-dzial-3

village-defense's People

Contributors

aleksandraj036 avatar bartoszbialecki avatar gorajakub avatar hoolek77 avatar ibednorz avatar pdybowski avatar

Watchers

 avatar

Forkers

ibednorz

village-defense's Issues

settings

settings content should be add to popup that was created by Szymon and Irek. Popup with this content should be run when users click SETTINGS button/

There should be two buttons to allow ser to save settings or to back to the main manu

'Save', 'Cancel'

UI:

image

Home Page UI improvements

  1. Improve Home Page interface
    https://cdn.discordapp.com/attachments/802949481552150548/802972305839226910/unknown.png
    Background idea:
    Gradient - white circle inside and then darkgreen

  2. Buttons should change bottom border color after hover (only suggestion)
    https://cdn.discordapp.com/attachments/802949481552150548/802972938029760512/unknown.png
    Button examples: (suggestion, for now it just looks bad)
    https://codepen.io/topic/buttons/picks

  3. Also change GLOBAL font. You Can use google fonts.

popup improvement

need to change html forwarding because addeventlistener is not working

quit btn

when users click quit button it should open popup and ask user 'Do you really want to quit the game?'
'You wont be able to get back'

buttons:
Yes Cancel

top - materials

Above village image add three resources:
gold, wood, stone as an icon

next to gold/wood/stone icon add current value (can be hard coded by now - fixed value)

on the left - buildings, on rhe right - units

ON THE LEFT FROM VILLAGE IMAGE:

Add buildings names with '+' btn next to it
when '+' is hovered show how much will it cost to upgrade this buiding:
cost be hard coded

buildings:
town hall (+),
baracks,
warehouse,
house,
wall,
gold mine,
quarry,
sawmill

ON THE RIGHT FROM VILLAGE IMAGE:
On the right side of the vaillage image add how man units do we currently have.

we have one unit for now so it can look like below:

image

progress bar

under the village image add progress bar that is counting down. You can use bootstrap. But remember to dawnload bootstrap.min.css and add it to assets/css

add method that will create html element

should include:

  1. type
  2. id (optional)
  3. classes (optional)
  4. value (optional, lets say we want to create p tag/button/h3 etc... when we create div value can be added but should be IGNORED during component rendering)

example:
createElement('div', 'example-id', ['test-class', 'test-class-2', 'Hello, its me div value']

game page improvements

improve game page interface (background, other styles - make it cool)

change button name to: 'Quit the game' etc..
when we click it we should show popup with warning 'Do you really want to exit? Game progres will be lost.'
two button in this popup: 'exit', 'cancel'

wall logic

zwiększyć poziom obrony o x-wiecej
1lvl +10
2lvl +13
...

warehause logic

connect warehouse class to '+' button
Add Logic that will handle resizing resource storage

town hall logic

Add TownHall class
Connect some function to '+' button on game page
Build town hall and reduce other buildings build time

Game losing terms

  • add game losing terms - population equal to 0

  • add info to show user that they lost the game:

    • how many waves did they survived
    • game time
  • move to home page screen

on right units

On the right side of the vaillage image add how man units do we currently have.

we have one unit for now so it can look like below:

image

house logic

zwiększyć liczbę ludzi o x-więcej
1lvl: +100
2lvl: +140
...

effects during battle

when battle starts add gif at the center (few seconds) with two swords fighting

change music to battle sound

show number of enemies

add mobile interfaces

dostosować font size dla media queries:

  • 0 -359
  • 360 - 767

start page

    • Remove class image container
    • info popup - remove author icons - just show listed authors

game page

    • min width 768px
      image
    • max-width 767px
      image
  • dodatkowo: sprawdzić progress bar na splash page

info after battle

pokazać na rodku zamiast timera

  • who won
  • how many resources was stolen
  • how many soldires died
  • new population amount

baracks logic

Add possibily to upgrade barracks. The higher level is the shorter time to recruit new units should be. Add something to enable recruit new units- can be plu button (like in budilings container). It can be shown on the Right side of a game page - close to the unit image

units amount shouldnt be higher then population

ecruiting them shouldnt reduce population

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.