pdybowski / village-defense Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://pdybowski.github.io/village-defense/
Home Page: https://pdybowski.github.io/village-defense/
add game container dynamically
maybe we can set some progress bar for a while
you can do it!
Improve Home Page interface
https://cdn.discordapp.com/attachments/802949481552150548/802972305839226910/unknown.png
Background idea:
Gradient - white circle inside and then darkgreen
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
Also change GLOBAL font. You Can use google fonts.
need to change html forwarding because addeventlistener is not working
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
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 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:
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
should include:
example:
createElement('div', 'example-id', ['test-class', 'test-class-2', 'Hello, its me div value']
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'
unit test
files structure
Depends of user class prferences add proper village image
human:
https://i.pinimg.com/originals/2c/1b/c2/2c1bc2d5b0c2095a77bc9079aa530efd.jpg
clean types to screens after Bartek's branch is done
zwiększyć poziom obrony o x-wiecej
1lvl +10
2lvl +13
...
connect warehouse class to '+' button
Add Logic that will handle resizing resource storage
only on production
Add TownHall class
Connect some function to '+' button on game page
Build town hall and reduce other buildings build time
add game losing terms - population equal to 0
add info to show user that they lost the game:
move to home page screen
zwiększyć liczbę ludzi o x-więcej
1lvl: +100
2lvl: +140
...
title: 'Defend Your Village!'
when battle starts add gif at the center (few seconds) with two swords fighting
change music to battle sound
show number of enemies
stone
wood
pokazać na rodku zamiast timera
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.