This is a repository with the source code for the first part of my friend's birthday gift - hosted here through GitHub Pages. If you see any errors or want to help, feel free to open an issue, fork this repository and start a pull request, or just email me here - [email protected]!
Logic (How the website works):
This website used a three dimenstional rendering software called "THREE.js". This software allows the user to add Javascript commands in their code to render different objects to your scene, and I have used this software to render the word that you move around in. You can read more about THREE.js here.
This website also uses some standard HTML elements such as <p>
and the <h4>
elements to convey information to the user, and these elements are updated using the .innerHTML
syntax to respond to user input, along with <button>
elements and <a>
elements to gain input and advance users to the next site.
On top of this, within all the .html
files, I also include Internal CSS, that, in combination with some Javascript, allows for me to make elements appear and disappear using properties like the display: block
property or display: flex
. I also use CSS to add backgrounds (background-color:#87ceeb;
), and more.
Along with these, I also use many other code elements, and I am always looking to add more to improve the user experience.
Files and Documentation:
This repository contains 2 main .html
files, that both use Internal CSS and Javascript for easy readability. It also contains some other files. I have outlined the purpose of each of these files below, along with a higherarchy of importance. If you have something to add, feel free to shoot me a PR or an Issue.
-
File one (index.html):
- This is the default landing page for the website and serves as the introduction page
- Uses Internal CSS and Javascript
- It contains a tutorial written using THREE.js, HTML, CSS and Javascript
- Within this tutorial, you complete three quests to learn how to move around in the three.js world
- Upon competition, it leads you to the next page for the main quest
- You can view this file here
-
File two (pt2.html)
- This is the Main Quest and is only accessible by going to the link directly, or by completing the tutorial (index.html)
- Uses Internal CSS and Javascript
- Within this main quest, your goal is to find all seven dragon eggs that are scattered around this world.
- Upon completion, it says "Happy Birthday", and ends the game
- You can view this file here
- I could use a lot of help completing this before February 27, 2024, so if you see something you think you can help with, I would be very grateful!
-
Other files (not .HTML)
- These files are used to help improve the content provided in the main files, or as GitHub files
- For example, CONTRIBUTING.md, tells GitHub what contributing guidelines I have included
- Another example is favicon.png, as it adds the favicon to both .html pages
- Please ignore the files in .idea, my main editor, Android Studio for Windows, added them and I don't know why. If you know, feel free to shoot me an email.
- These files are used to help improve the content provided in the main files, or as GitHub files
-
Other files (.HTML)
- eggsTesting.html
- testing.html
- Just holding some testing code.
- html.html
- Also Just holding some testing code.
Credits:
Credit to Yugam Dhuriya (@pizza3) for inspo.