-
Notifications
You must be signed in to change notification settings - Fork 50
Commit README first draft #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
charlimxm
wants to merge
18
commits into
wdi-sg:master
Choose a base branch
from
charlimxm:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8ee8c90
Commit README first draft
4094d75
Commit 2nd changes
6e6eaf9
Commit 3rd changes
9e23931
Commit 4th changes
cfb41b6
Update assets link
2c543e6
Commit assets link
9267f0d
Commit assets link
5dfec1b
Commit assets link
2d1cf97
Commit assets link
8e36927
Commit assets link
763df75
Commit assets link
c123941
Commit assets link
f88be75
commit assets link
e9c31e3
Commit game final
24c4f83
commit readme.md final
cd410d8
added start and end screen + css
charlimxm 112324f
Fixed start game bug and changed map
charlimxm d92ade9
edited css
charlimxm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,96 +1,31 @@ | ||
| # Project Name (Start editing here) | ||
| # Help Halimah Make Yishun Great Again | ||
| <!--- | ||
| Read Me Contents | ||
| --> | ||
|
|
||
| #  Project #1: The Game | ||
|
|
||
| ### Overview | ||
| In the recent spate of bad news, Yishun was named home to one of Singapore's most dystopian societies. Not all is bad when it was revealed that newly elected President, Mdm Halimah Yacob is a Yishunite (short for people who resides in Yishun). | ||
|
|
||
| Let's start out with something fun - **a game!** | ||
| Can you help Halimah help to reclaim Yishun’s disastrous reputation? | ||
|
|
||
| Everyone will get a chance to **be creative**, and work through some really **tough programming challenges** – since you've already gotten your feet wet with Tic Tac Toe, it's up to you to come up with a fun and interesting game to build. | ||
| ### Game Mechanics and Logic | ||
|
|
||
| **You will be working individually for this project**, but we'll be guiding you along the process and helping as you go. Show us what you've got! | ||
| <img src="/assets/img/game-preview.png" width="500"> | ||
|
|
||
| <img src="/assets/img/game-flowchart.png" width="450"> | ||
|
|
||
| --- | ||
| ### Built With | ||
| * HTML | ||
| * CSS | ||
| * JavaScript | ||
| * Jquery | ||
|
|
||
| ### Technical Requirements | ||
| ### Timeline | ||
| * | ||
| * | ||
|
|
||
| Your app must: | ||
|
|
||
| * **Render a game in the browser** | ||
| * **Any number of players** will be okay, switch turns will be great | ||
| * **Design logic for winning** & **visually display which player won** | ||
| * **Include separate HTML / CSS / JavaScript files** | ||
| * Stick with **KISS (Keep It Simple Stupid)** and **DRY (Don't Repeat Yourself)** principles | ||
| * Use **Javascript** for **DOM manipulation**, jQuery is not compulsory | ||
| * **Deploy your game online**, where the rest of the world can access it | ||
| * Use **semantic markup** for HTML and CSS (adhere to best practices) | ||
| * **No canvas** project will be accepted, only HTML5 + CSS3 + JS please | ||
|
|
||
| --- | ||
|
|
||
| ### Necessary Deliverables | ||
|
|
||
| * A **working game, built by you**, hosted somewhere on the internet | ||
| * A **link to your hosted working game** in the URL section of your GitHub repo | ||
| * A **git repository hosted on GitHub**, with a link to your hosted game, and frequent commits dating back to the very beginning of the project | ||
| * **A ``readme.md`` file** with explanations of the technologies used, the approach taken, installation instructions, unsolved problems, etc. | ||
|
|
||
| --- | ||
|
|
||
| ### Suggested Ways to Get Started | ||
|
|
||
| * **Break the project down into different components** (data, presentation, views, style, DOM manipulation) and brainstorm each component individually. Use whiteboards! | ||
| * **Use your Development Tools** (console.log, inspector, alert statements, etc) to debug and solve problems | ||
| * Work through the lessons in class & ask questions when you need to! Think about adding relevant code to your game each night, instead of, you know... _procrastinating_. | ||
| * **Commit early, commit often.** Don’t be afraid to break something because you can always go back in time to a previous version. | ||
| * **Consult documentation resources** (MDN, jQuery, etc.) at home to better understand what you’ll be getting into. | ||
| * **Don’t be afraid to write code that you know you will have to remove later.** Create temporary elements (buttons, links, etc) that trigger events if real data is not available. For example, if you’re trying to figure out how to change some text when the game is over but you haven’t solved the win/lose game logic, you can create a button to simulate that until then. | ||
|
|
||
| --- | ||
|
|
||
| ### Potential Project Ideas | ||
|
|
||
| ##### Blackjack | ||
| Make a one player game where people down on their luck can lose all their money by guessing which card the computer will deal next! | ||
|
|
||
| ##### Self-scoring Trivia | ||
| Test your wits & knowledge with whatever-the-heck you know about (so you can actually win). Guess answers, have the computer tell you how right you are! | ||
|
|
||
| --- | ||
|
|
||
| ### Useful Resources | ||
|
|
||
| * **[MDN Javascript Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript)** _(a great reference for all things Vanilla Javascript)_ | ||
| * **[jQuery Docs](http://api.jquery.com)** _(if you're using jQuery)_ | ||
| * **[GitHub Pages](https://pages.github.com)** _(for hosting your game)_ | ||
| * **[How to write readme - Markdown CheatSheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)** _(for editing this readme)_ | ||
| * **[How to write a good readme for github repo!](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2)** _(to make it better)_ | ||
|
|
||
| --- | ||
|
|
||
| ### Project Feedback + Evaluation | ||
|
|
||
| * __Project Workflow__: Did you complete the user stories, wireframes, task tracking, and/or ERDs, as specified above? Did you use source control as expected for the phase of the program you’re in (detailed above)? | ||
|
|
||
| * __Technical Requirements__: Did you deliver a project that met all the technical requirements? Given what the class has covered so far, did you build something that was reasonably complex? | ||
|
|
||
| * __Creativity__: Did you add a personal spin or creative element into your project submission? Did you deliver something of value to the end user (not just a login button and an index page)? | ||
|
|
||
| * __Code Quality__: Did you follow code style guidance and best practices covered in class, such as spacing, modularity, and semantic naming? Did you comment your code as your instructors have in class? | ||
|
|
||
| * __Deployment__: Did you deploy your application to a public url using GitHub Pages? | ||
|
|
||
| * __Total__: Your instructors will give you a total score on your project between: | ||
|
|
||
| Score | Expectations | ||
| ----- | ------------ | ||
| **0** | _Incomplete._ | ||
| **1** | _Does not meet expectations._ | ||
| **2** | _Meets expectations, good job!_ | ||
| **3** | _Exceeds expectations, you wonderful creature, you!_ | ||
|
|
||
| This will serve as a helpful overall gauge of whether you met the project goals, but __the more important scores are the individual ones__ above, which can help you identify where to focus your efforts for the next project! | ||
| ### Acknowledgments | ||
| * | ||
| * |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| .body { | ||
| height: 100%; | ||
| width: 100%; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .container { | ||
| /*border: 1px solid blue;*/ | ||
| width: 100%; | ||
| height: 850px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| h1 { | ||
| text-align: center; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .instruction { | ||
| border: 1px solid black; | ||
| width: 18%; | ||
| height: 93%; | ||
| float: left; | ||
| background-color: #06D6A0; | ||
| } | ||
|
|
||
| .arrow-keys { | ||
| width: 100px; | ||
| margin: 0 auto; | ||
| display: block; | ||
| } | ||
|
|
||
| p { | ||
| padding: 12px; | ||
| text-align: justify; | ||
| } | ||
|
|
||
| #p2 { | ||
| padding: 10px; | ||
| text-align: justify; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .icon { | ||
| padding: 0; | ||
| margin: 0; | ||
| } | ||
|
|
||
| #p3 { | ||
| padding: 1px; | ||
| text-align: justify; | ||
| margin-bottom: 5px; | ||
| margin-left: 20px; | ||
| margin-right: 10px; | ||
| } | ||
|
|
||
| .game-column { | ||
| border: 1px solid black; | ||
| width: 63%; | ||
| height: 93%; | ||
| float: left; | ||
| position: relative; | ||
| background-image: url(/assets/img/yishun-map-no-bg.png); | ||
| background-size: 70%; | ||
| background-repeat: no-repeat; | ||
| background-position: 50% 0; | ||
| } | ||
|
|
||
| .badPeople { | ||
| width: 50px; | ||
| position: absolute; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .heart { | ||
| height: 19px; | ||
| width: 19px; | ||
| margin: 0 10px; | ||
| bottom: 30px; | ||
| left: 505px; | ||
| position: absolute; | ||
| background-color: red; | ||
| display: inline-block; | ||
| transform: rotate(-45deg); | ||
| } | ||
|
|
||
| .heart:before, | ||
| .heart:after { | ||
| content: ""; | ||
| height: 19px; | ||
| width: 19px; | ||
| position: absolute; | ||
| background-color: red; | ||
| border-radius: 50%; | ||
| } | ||
|
|
||
| .heart:before { | ||
| top: -11px; | ||
| left: 0; | ||
| } | ||
|
|
||
| .heart:after { | ||
| left: 11px; | ||
| top: 0; | ||
| } | ||
|
|
||
| .paddle { | ||
| /*border: 1px solid blue;*/ | ||
| width: 150px; | ||
| height: 25px; | ||
| left: 450px; | ||
| bottom: 0px; | ||
| position: absolute; | ||
| background-color: black; | ||
| } | ||
|
|
||
| .results { | ||
| border: 1px solid black; | ||
| width: 18%; | ||
| height: 93%; | ||
| float: left; | ||
| background-color: #FFD166; | ||
| } | ||
|
|
||
| .level, .mission, .lives, .score { | ||
| font-size: 25px; | ||
| margin-left: 10px; | ||
| margin-right: 15px; | ||
| } | ||
|
|
||
| .start-screen, .finish-screen { | ||
| width: 63.1%; | ||
| height: 93.3%; | ||
| /*bottom: 5px;*/ | ||
| left: 18.15%; | ||
| position: relative; | ||
| font-size: 40px; | ||
| text-align: center; | ||
| color: white; | ||
| background-color: black; | ||
| } | ||
|
|
||
| .finish-screen h1 { | ||
| font-size: 70px; | ||
| color: white; | ||
| top: 35px; | ||
| left: 30%; | ||
| padding: 10px; | ||
| position: absolute; | ||
| display: block; | ||
| } | ||
|
|
||
| .finish-screen p { | ||
| font-size: 50px; | ||
| color: white; | ||
| top: 90px; | ||
| left: 30%; | ||
| padding: 10px; | ||
| position: absolute; | ||
| display: block; | ||
| } | ||
|
|
||
| .start-btn { | ||
| padding: 50px; | ||
| font-size: 35px; | ||
| color: black; | ||
| background-color: white; | ||
| top: 300px; | ||
| left: 38%; | ||
| /*margin: 15px auto;*/ | ||
| position: absolute; | ||
| } | ||
Empty file.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi