Skip to content

Commit

Permalink
Improved Readme Remove redundant HTML and JS files
Browse files Browse the repository at this point in the history
Deleted the redundant HTML and JavaScript files related to the game board. These files were removed due to the refactoring of code which made these files obsolete.
  • Loading branch information
Pristar4 committed Jul 12, 2023
1 parent ae8dff2 commit 93aa7ac
Show file tree
Hide file tree
Showing 139 changed files with 5,120 additions and 3,775 deletions.
25 changes: 12 additions & 13 deletions Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ PROJECT_NUMBER = v0.1.0
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.

PROJECT_BRIEF = "Snake AI Game in Unity"
PROJECT_BRIEF = "Snake Game - AI Edition"

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO = C:/Users/felix/SnakeGame/docs/images/logo.png
PROJECT_LOGO = ./logo.svg

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY = ../
OUTPUT_DIRECTORY = docs

# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
# sub-directories (in 2 levels) under the output directory of each output format
Expand Down Expand Up @@ -1097,8 +1097,7 @@ EXAMPLE_RECURSIVE = NO
# \image command).

IMAGE_PATH = images \
docs/images

docs/img
# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
# by executing (via popen()) the command:
Expand Down Expand Up @@ -1397,10 +1396,10 @@ HTML_STYLESHEET =
# documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_EXTRA_STYLESHEET = doxygen-custom/doxygen-awesome.css \
HTML_EXTRA_STYLESHEET = doxygen-awesome.css \
doxygen-custom/custom.css \
doxygen-custom/doxygen-awesome-sidebar-only.css \
doxygen-custom/doxygen-awesome-sidebar-only-darkmode-toggle.css \
doxygen-awesome-sidebar-only.css \
doxygen-awesome-sidebar-only-darkmode-toggle.css \
doxygen-custom/custom-alternative.css

# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
Expand All @@ -1411,12 +1410,12 @@ HTML_EXTRA_STYLESHEET = doxygen-custom/doxygen-awesome.css \
# files will be copied as-is; there are no commands or markers available.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_EXTRA_FILES = doxygen-custom/doxygen-awesome-darkmode-toggle.js \
doxygen-custom/doxygen-awesome-fragment-copy-button.js \
doxygen-custom/doxygen-awesome-paragraph-link.js \
HTML_EXTRA_FILES = doxygen-awesome-darkmode-toggle.js \
doxygen-awesome-fragment-copy-button.js \
doxygen-awesome-paragraph-link.js \
doxygen-custom/toggle-alternative-theme.js \
doxygen-custom/doxygen-awesome-interactive-toc.js \
doxygen-custom/doxygen-awesome-tabs.js
doxygen-awesome-interactive-toc.js \
doxygen-awesome-tabs.js

# The HTML_COLORSTYLE tag can be used to specify if the generated HTML output
# should be rendered with a dark or light theme.
Expand Down
5 changes: 2 additions & 3 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ PlayerSettings:
vulkanEnableCommandBufferRecycling: 1
loadStoreDebugModeEnabled: 0
bundleVersion: 0.1.0-alpha.1
preloadedAssets:
- {fileID: 11400000, guid: fe255ffce795bc04384b74d57c2c56e4, type: 2}
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand All @@ -146,7 +145,7 @@ PlayerSettings:
vrSettings:
enable360StereoCapture: 0
isWsaHolographicRemotingEnabled: 0
enableFrameTimingStats: 1
enableFrameTimingStats: 0
enableOpenGLProfilerGPURecorders: 1
useHDRDisplay: 0
hdrBitDepth: 0
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
[//]: # ([![LinkedIn][linkedin-shield]][linkedin-url])


![Logo](images/logo.png)
<div class="title_logo">

![logo](images/logo.png)
</div>
<!-- PROJECT LOGO -->
<br />

<div align="center">
<a href="https://github.com/Pristar4/SnakeGame">
<img src="img/logo.png" alt="Logo" width="80" height="80">
<img src="images/logo.png" alt="Logo" width="80" height="80">
</a>

<h3 align="center">SnakeGame - AI Edition</h3>
Expand Down Expand Up @@ -68,8 +72,10 @@

## About The Project

[![Example training with tensorboard and mlagents][product-screenshot]](https://github.com/Pristar4//images/product-screenshot.png)
![product-screenshot.png](images%2Fproduct-screenshot.png)
<div class="title_screenshot">

![Example training with tensorboard and mlagents](img/screenshot.png)
</div>

This project is about making a sophisticated AI that can play the classic Snake Game efficiently.
The goal was not only to cultivate the AI's ability to survive in the game, but also to potentially
Expand Down
115 changes: 115 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Customization

[TOC]


## CSS-Variables

This theme is highly customizable because a lot of things are parameterized with CSS variables.

Just to give you an idea on how flexible the styling is, click this button:

<div class="alter-theme-button" onclick="toggle_alternative_theme()" onkeypress="if (event.keyCode == 13) toggle_alternative_theme()" tabindex=0>Alter theme</div>

### Setup

It is recommended to add your own `custom.css` and overwrite the variables there:
```
HTML_EXTRA_STYLESHEET = doxygen-awesome.css custom.css
```

Make sure to override the variables in the correct spot. All variables should be customized where they have been defined, in the `html` tag selector:

```css
html {
/* override light-mode variables here */
}
```

For dark-mode overrides you have to choose where to put them, depending on whether the dark-mode toggle extension is installed or not:

<div class="tabbed">

- <b class="tab-title">dark-mode toggle is installed</b>
```css
html.dark-mode {
/* define dark-mode variable overrides here if you DO use doxygen-awesome-darkmode-toggle.js */
}
```
- <b class="tab-title">dark-mode toggle is **NOT** installed</b>
The dark-mode is enabled automatically depending on the system preference:
```css
@media (prefers-color-scheme: dark) {
html:not(.light-mode) {
/* define dark-mode variable overrides here if you DON'T use doxygen-awesome-darkmode-toggle.js */
}
}
```

</div>

### Available variables

The following list gives an overview of the variables defined in [`doxygen-awesome.css`](https://github.com/jothepro/doxygen-awesome-css/blob/main/doxygen-awesome.css).

The list is not complete. To explore all available variables, have a look at the CSS starting from [here](https://github.com/jothepro/doxygen-awesome-css/blob/main/doxygen-awesome.css#L30).
All variables are defined at the beginning of the stylesheet.

| Parameter | Default (Light) | Default (Dark) |
| :---------------------------------- | :---------------------------------------------------------- | :---------------------------------------------------------- |
| **Color Scheme**:<br>primary theme colors. This will affect the entire websites color scheme: links, arrows, labels, ... |||
| `--primary-color` | <code style="background:#1779c4;color:white">#1779c4</code> | <code style="background:#1982d2;color:white">#1982d2</code> |
| `--primary-dark-color` | <code style="background:#335c80;color:white">#335c80</code> | <code style="background:#5ca8e2;color:black">#5ca8e2</code> |
| `--primary-light-color` | <code style="background:#70b1e9;color:black">#70b1e9</code> | <code style="background:#4779ac;color:white">#4779ac</code> |
| **Page Colors**:<br>background and foreground (text-color) of the documentation. |||
| `--page-background-color` | <code style="background:#ffffff;color:black">#ffffff</code> | <code style="background:#1C1D1F;color:white">#1C1D1F</code> |
| `--page-foreground-color` | <code style="background:#2f4153;color:white">#2f4153</code> | <code style="background:#d2dbde;color:black">#d2dbde</code> |
| `--page-secondary-foreground-color` | <code style="background:#6f7e8e;color:white">#6f7e8e</code> | <code style="background:#859399;color:white">#859399</code> |
| **Spacing:**<br>default spacings. Most ui components reference these values for spacing, to provide uniform spacing on the page. |||
| `--spacing-small` | `5px` | |
| `--spacing-medium` | `10px` | |
| `--spacing-large` | `16px` | |
| **Border Radius**:<br>border radius for all rounded ui components. Will affect many components, like dropdowns, memitems, codeblocks, ... |||
| `--border-radius-small` | `4px` | |
| `--border-radius-medium` | `6px` | |
| `--border-radius-large` | `8px` | |
| **Content Width**:<br>The content is centered and constrained in its width. To make the content fill the whole page, set the following variable to `auto`. |||
| `--content-maxwidth` | `1000px` | |
| **Code Fragment Colors**:<br>Color-Scheme of multiline codeblocks |||
| `--fragment-background` | <code style="background:#F8F9FA;color:black">#F8F9FA</code> | <code style="background:#282c34;color:white">#282c34</code> |
| `--fragment-foreground` | <code style="background:#37474F;color:white">#37474F</code> | <code style="background:#dbe4eb;color:black">#dbe4eb</code> |
| **Arrow Opacity**:<br>By default the arrows in the sidebar are only visible on hover. You can override this behavior so they are visible all the time. |||
| `--side-nav-arrow-opacity` | `0` | |
| `--side-nav-arrow-hover-opacity` | `0.9` | |
| ...and many more |||


If you miss a configuration option or find a bug, please consider [opening an issue](https://github.com/jothepro/doxygen-awesome-css/issues)!

## Doxygen generator

The theme overrides most colors with the `--primary-color-*` variables.

But there is a few small images and graphics that the theme cannot adjust or replace. To make these blend in better with
the rest, it is recommended to adjust the [doxygen color settings](https://www.doxygen.nl/manual/customize.html#minor_tweaks_colors)
to something that matches the chosen color-scheme.

For the default color-scheme, these values work out quite well:

```
# Doxyfile
HTML_COLORSTYLE_HUE = 209
HTML_COLORSTYLE_SAT = 255
HTML_COLORSTYLE_GAMMA = 113
```

## Share your customizations

If you customized the theme with custom colors, spacings, font-sizes, etc. and you want to share your creation with others, you can to this [here](https://github.com/jothepro/doxygen-awesome-css/discussions/13).

I am always curious to learn about how you made the theme look even better!

<span class="next_section_button">

Read Next: [Tips & Tricks](tricks.md)
</span>
Loading

0 comments on commit 93aa7ac

Please sign in to comment.