Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Gavaruba/Game
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenAbra committed Oct 27, 2023
2 parents 3dda87b + 3fdc6ab commit a82f05d
Show file tree
Hide file tree
Showing 194 changed files with 17,963 additions and 353 deletions.
1 change: 1 addition & 0 deletions 2DGame/Game.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ permalink: /Game
this.radius = 10; // Pac-Man's radius
this.mouthAngle = 0; // Angle to control Pac-Man's mouth opening\
}
if (player.position.x >=)
draw() {
ctx.fillStyle = 'yellow';
ctx.beginPath();
Expand Down
25 changes: 25 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
permalink: /404.html
layout: base
search_exclude: true
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
6 changes: 6 additions & 0 deletions AA_blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: home
title: Blogs
search_exclude: true
permalink: /blogs/
---
7 changes: 7 additions & 0 deletions AD_compsci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: scheduleStudent
title: Time Box
units: "1,2"
course: compsci
permalink: /compsci/
---
18 changes: 18 additions & 0 deletions BB_search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: base
title: Search
search_exclude: true
permalink: /search/
---

<!-- adapted from https://github.com/pmarsceill/just-the-docs -->
<script type="text/javascript" src="{{ '/assets/js/search.js' | relative_url }}"></script>
<script type="text/javascript" src="{{ '/assets/js/vendor/lunr.min.js' | relative_url }}"></script>

<div class="search">
<div class="search-input-wrap">
<input type="text" class="js-search-input search-input input-block form-control" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
</div>
<br>
<div class="js-search-results search-results-wrap"></div>
</div>
36 changes: 36 additions & 0 deletions BC_tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: categories
title: Tags
search_exclude: true
permalink: /tags/
---

{% if site.categories.size > 0 %}
<h2>Contents</h2>

{% assign categories = "" | split:"" %}
{% for c in site.categories %}
{% assign categories = categories | push: c[0] %}
{% endfor %}
{% assign categories = categories | sort_natural %}

<ul>
{% for category in categories %}
<li><a href="#{{ category }}">{{ category }}</a></li>
{% endfor %}
</ul>

{% for category in categories %}
<h3 id ="{{ category }}"><i class="fas fa-tags category-tags-icon"></i></i> {{ category }}</h3>
<a name="{{ category | slugize }}"></a>
{% for post in site.categories[category] %}
{% if post.hide != true %}
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<article class="archive-item">
<p class="post-meta post-meta-title"><a class="page-meta" href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a> • {{ post.date | date: date_format }}</p>
</article>
{% endif %}
{% endfor %}
{% endfor %}

{% endif %}
7 changes: 7 additions & 0 deletions BD_about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: page
title: About Us
permalink: /about/
---

Creators of Alien World
5 changes: 5 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The following files in the _includes directory have been modified from the source, fastpages, and they do not contain any liability or other damages, indirect or direct.

All work is provided on an as is basis without warranties or conditions of any kind. We are not responsable for any risks associated, either expressed or implied.

We as NIGHTHAWK-Pages developers distribute all copyright, patent, trademark, and attribution notices from the source form of the work, fastpages.
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ description: "August 2023 to June 2024"
owner_name: nighthawkcoders/student
github_username: Gavaruba
baseurl: "/Game"
remote_theme: pages-themes/[email protected]
remote_theme: jekyll/minima
minima:
social_links:
- {platform: github, user_url: https://github.com/Gavaruba/Game.git}
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
Expand Down
11 changes: 11 additions & 0 deletions _data/compsci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CSP course meta data
Unit1:
title: Game Project and Experiments
description: Build team repository. Discover assets for project. Brain write. Perform a sketch of ideas.
start: 0
end: 1
Unit2:
title: Start Coding
description: Start Agile development process. Move planning to GitHub Issues and Projects.
start: 2
end: 2
4 changes: 4 additions & 0 deletions _includes/alert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="Toast Toast--warning googoo">
<span class="Toast-icon">{% octicon alert %}</span>
<span class="Toast-content">{{include.text}}</span>
</div>
63 changes: 63 additions & 0 deletions _includes/custom-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% comment %}
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:

1. Head over to https://realfavicongenerator.net/ to add your own favicons.
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
{% endcomment %}


{%- include favicons.html -%}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Primer/15.2.0/primer.css" integrity="sha512-xTz2ys4coGAOz8vuV1NcQBkgVmKhsSEtjbqyMJbBHRplFuvKIUo6xhLHpAyPt9mfR6twHJgn9OgVLuqOvjeBhg==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog==" crossorigin="anonymous" />

{%- if site.annotations -%}
<script src="https://hypothes.is/embed.js" async></script>
{%- endif -%}

{% if site.use_math %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" integrity="sha512-h7nl+xz8wgDlNM4NqKEM4F1NkIRS17M9+uJwIGwuo8vGqIl4BhuCKdxjWEINm+xyrUjNCnK5dCrhM0sj+wTIXw==" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.js" integrity="sha512-/CMIhXiDA3m2c9kzRyd97MTb3MC6OVnx4TElQ7fkkoRghwDf6gi41gaT1PwF270W6+J60uTmwgeRpNpJdRV6sg==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/contrib/auto-render.min.js" integrity="sha512-Do7uJAaHZm5OLrIv/yN4w0iG1dbu01kzdMNnFfu/mAqgUk6Nniv2JYHcwH+cNwjqgLcqcuBBk+JRvprLVI8azg==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha512-0doc9hKxR3PYwso42RD1p5ySZpzzuDiOwMrdCEh2WdJZCjcmFKc/wEnL+z8fBQrnHoiNWbo+3fiGkOYXBdQp4A==" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement( document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "[%", right: "%]", display: true},
{left: "$", right: "$", display: false}
]}
);
});
</script>
{% endif %}

<script>
function wrap_img(fn) {
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") {
var elements = document.querySelectorAll(".post img");
Array.prototype.forEach.call(elements, function(el, i) {
if (el.getAttribute("title") && (el.className != "emoji")) {
const caption = document.createElement('figcaption');
var node = document.createTextNode(el.getAttribute("title"));
caption.appendChild(node);
const wrapper = document.createElement('figure');
wrapper.className = 'image';
el.parentNode.insertBefore(wrapper, el);
el.parentNode.removeChild(el);
wrapper.appendChild(el);
wrapper.appendChild(caption);
}
});
} else { document.addEventListener('DOMContentLoaded', fn); }
}
window.onload = wrap_img;
</script>

<script>
document.addEventListener("DOMContentLoaded", function(){
// add link icon to anchor tags
var elem = document.querySelectorAll(".anchor-link")
elem.forEach(e => (e.innerHTML = '<i class="fas fa-link fa-xs"></i>'));
});
</script>
15 changes: 15 additions & 0 deletions _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- the google_analytics_id gets auto inserted from the config file -->

{% if site.google_analytics %}

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.google_analytics}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{site.google_analytics}}');
</script>

{% endif %}
30 changes: 11 additions & 19 deletions _includes/head.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="twitter:card" content="summary_large_image" />
{%- seo -%}
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}

{% seo %}
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
{% if site.remote_theme contains 'midnight' %}
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
{% elsif site.remote_theme contains 'dinky' %}
<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script>
{% elsif site.remote_theme contains 'time-machine' %}
<script src="{{ '/assets/js/script.js' | relative_url }}"></script>
{% elsif site.remote_theme contains 'cayman' %}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
<meta name="theme-color" content="#157878">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
{% endif %}

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
{% include head-custom.html %}
</head>
{%- include custom-head.html -%}

</head>
12 changes: 0 additions & 12 deletions _includes/header.html

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/help_list.html

This file was deleted.

11 changes: 11 additions & 0 deletions _includes/image-r
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<figure style="float: right;">
<img class="image" width="{{ include.w }}" src="/images/{{ include.url }}"
{% if include.caption %}
alt="{{ include.caption }}"
{% endif %}
>
{% if include.caption %}
<figcaption class="image-caption">{{ include.caption }}</figcaption>
{% endif %}
</figure>

8 changes: 8 additions & 0 deletions _includes/image.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<figure>
{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}" rel="noopener noreferrer">{% endif %}
<img class="docimage" src="{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />
{% if {{include.url}} %}</a>{% endif %}
{% if {{include.caption}} %}
<figcaption>{{include.caption}}</figcaption>
{% endif %}
</figure>
4 changes: 4 additions & 0 deletions _includes/important.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="flash flash-warn">
{% octicon zap %}
<strong>Important: </strong>{{ include.content }}
</div>
4 changes: 4 additions & 0 deletions _includes/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="Toast">
<span class="Toast-icon">{% octicon info %}</span>
<span class="Toast-content">{{include.text}}</span>
</div>
3 changes: 3 additions & 0 deletions _includes/modication-notice.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The following files in the _includes directory have been modified from the source, Fastpages, and they do not contain any liability or other damages, indirect or direct.

All work is provided on an as is basis without warranties or conditions of any kind. We are not responsible for any risks associated, either expressed or implied.
4 changes: 4 additions & 0 deletions _includes/note.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="flash">
{% octicon info %}
<strong>Note: </strong>{{ include.content }}
</div>
5 changes: 5 additions & 0 deletions _includes/notebook_binder_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="px-2">
<a href="https://mybinder.org/v2/gh/{{site.github_username}}/{{site.github_repo | default: site.baseurl | remove: "/" }}/{{page.branch | default: "master"}}?filepath={{page.nb_path | url_encode }}" target="_blank">
<img class="notebook-badge-image" src="{{ "assets/badges/binder.svg" | relative_url }}" alt="Open In Binder"/>
</a>
</div>
5 changes: 5 additions & 0 deletions _includes/notebook_colab_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="px-2">
<a href="https://colab.research.google.com/github/{{site.github_username}}/{{site.github_repo | default: site.baseurl | remove: "/" }}/blob/{{page.branch | default: "master"}}/{{page.nb_path}}" target="_blank">
<img class="notebook-badge-image" src="{{ "assets/badges/colab.svg" | relative_url }}" alt="Open In Colab"/>
</a>
</div>
5 changes: 5 additions & 0 deletions _includes/notebook_deepnote_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="px-2">
<a href="https://deepnote.com/launch?url=https%3A%2F%2Fgithub.com%2F{{site.github_username}}%2F{{site.github_repo | default: site.baseurl | remove: "/" }}%2Fblob%2F{{page.branch | default: "master"}}%2F{{page.nb_path | cgi_escape}}" target="_blank">
<img class="notebook-badge-image" src="{{ "assets/badges/deepnote.svg" | relative_url }}" alt="Launch in Deepnote"/>
</a>
</div>
9 changes: 9 additions & 0 deletions _includes/notebook_github_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="px-2">
{% if page.layout == 'notebook' %}
<a href="https://github.com/{{site.github_username}}/{{site.github_repo | default: site.baseurl | remove: "/" }}/tree/{{page.branch | default: "master" }}/{{page.nb_path}}" role="button" target="_blank">
{% elsif page.layout == 'post' %}
<a href="https://github.com/{{site.github_username}}/{{site.github_repo | default: site.baseurl | remove: "/" }}/tree/{{page.branch | default: "master" }}/{{page.path}}" role="button" target="_blank">
{% endif -%}
<img class="notebook-badge-image" src="{{ "assets/badges/github.svg" | relative_url }}" alt="View On GitHub">
</a>
</div>
9 changes: 9 additions & 0 deletions _includes/post_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_description and post.description -%}
<p class="post-meta-description">{{ post.description }}</p>
{%- endif -%}
<p class="post-meta">{{ post.date | date: date_format }}</p>
16 changes: 16 additions & 0 deletions _includes/post_list_image_card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="Box box-shadow-medium rounded-1 col-12">
{%- if post.image -%}
<div class="col-4 d-table-cell p-3 v-align-middle">
<img class="image-preview " src="{{ post.image | relative_url }}" />
</div>
{%- endif -%}
<div class="col-8 d-table-cell p-3">
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
<p class="post-meta-description">{{ post.description }}</p>
<p class="post-meta">{{ post.date | date: date_format }}</p>
</div>
</div>
8 changes: 8 additions & 0 deletions _includes/reading_time.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<span class="read-time" title="Estimated read time">
{% assign words = content | strip_html | number_of_words %}
{% if words < 360 %}
1 min read
{% else %}
{{ words | divided_by:180 }} min read
{% endif %}
</span>
Loading

0 comments on commit a82f05d

Please sign in to comment.