Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
permissions:
contents: write
pages: write
id-token: write
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: ./
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 lin onetwo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Starbound-Character-Generator

![图片](https://github.com/user-attachments/assets/11d7fbb4-16ff-4fab-9dfc-0953d91b241c)

Using asset from [Starbound](https://store.steampowered.com/app/211820/Starbound/) and [Cutebound](https://steamcommunity.com/sharedfiles/filedetails/?id=761242493&searchtext=cute), only for learning properse.
Binary file modified images/sheets/apex/body-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/apex/head-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/apex/head-male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sheets/avian/body-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sheets/avian/body-male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/avian/head-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/avian/head-male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sheets/floran/body-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sheets/floran/body-male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/floran/head-female.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/floran/head-male.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheets/glitch/body-female.png
Binary file added images/sheets/glitch/body-male.png
Binary file added images/sheets/glitch/head-female.png
Binary file added images/sheets/glitch/head-male.png
Binary file modified images/sheets/human/body-female.png
Binary file modified images/sheets/human/body-male.png
Binary file added images/sheets/human/head-female.png
Binary file added images/sheets/human/head-male.png
Binary file modified images/sheets/hylotl/body-female.png
Binary file added images/sheets/hylotl/head-female.png
Binary file added images/sheets/hylotl/head-male.png
Binary file modified images/sheets/novakid/body-female.png
Binary file modified images/sheets/novakid/body-male.png
Binary file added images/sheets/novakid/head-female.png
Binary file added images/sheets/novakid/head-male.png
Binary file removed images/sheets/robot/body-female.png
Diff not rendered.
Binary file removed images/sheets/robot/body-male.png
Diff not rendered.
319 changes: 154 additions & 165 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,185 +1,174 @@
<!DOCTYPE html>
<html>

<head>
<link href="font.css" rel="stylesheet" type="text/css" ></link>
<link href="webchargen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="painter.js"></script>
<script type="text/javascript" src="settings.js"></script>
<script type="text/javascript" src="webchargen.js"></script>
<link href="font.css" rel="stylesheet" type="text/css">
</link>
<link href="webchargen.css" rel="stylesheet" type="text/css" />
<script type="module" src="main.mjs"></script>
</head>

<body>
<div id="loading-screen"><div id="loading-text">Loading...</div></div>

<div id="canvas-container">
<canvas id="tempCanvas1" width="43" height="43"></canvas>
<canvas id="tempCanvas2" width="43" height="43"></canvas>
<canvas id="tempCanvas3" width="43" height="43"></canvas>
<canvas id="tempCanvas4" width="43" height="43"></canvas>
<canvas id="tempCanvas5" width="43" height="43"></canvas>
<canvas id="tempCanvas7" width="43" height="43"></canvas>
<canvas id="tempCanvas8" width="43" height="43"></canvas>
<canvas id="tempCanvas9" width="43" height="43"></canvas>
<canvas id="tempCanvas10" width="43" height="43"></canvas>
<canvas id="tempCanvas11" width="43" height="43"></canvas>
<canvas id="tempCanvas6" width="43" height="43"></canvas>
<div id="loading-screen">
<div id="loading-text">Loading...</div>
</div>

<div id="pos-container">
<div id="main-container">
<div id="species-select-container">
<div class="big-button species-selection" id="species-human">
<div></div>
</div>
<div class="big-button species-selection" id="species-avian">
<div></div>
</div>
<div class="big-button species-selection" id="species-apex">
<div></div>
</div>
<div class="big-button species-selection" id="species-floran">
<div></div>
</div>
<div class="big-button species-selection" id="species-hylotl">
<div></div>
</div>
<div class="big-button species-selection" id="species-robot">
<div></div>
</div>
<div class="big-button species-selection" id="species-novakid">
<div></div>
</div>
</div>
<div id="gender-select-container">
<div class="big-button gender-selection" id="gender-male">
<div></div>
</div>
<div class="big-button gender-selection" id="gender-female">
<div></div>
</div>
</div>
<canvas id="character-preview" height="129" width="129"></canvas>
<div id="button-randomize-look" class="dice"></div>
<div id="character-options-container">

<div id="variable-skinColor" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
<div id="main-container">
<div id="species-select-container">
<div class="big-button species-selection" id="species-human">
<div></div>
</div>
<div class="big-button species-selection" id="species-avian">
<div></div>
</div>
<div class="big-button species-selection" id="species-apex">
<div></div>
</div>
<div class="big-button species-selection" id="species-floran">
<div></div>
</div>
<div class="big-button species-selection" id="species-hylotl">
<div></div>
</div>
<div class="big-button species-selection" id="species-glitch">
<div></div>
</div>
<div class="big-button species-selection" id="species-novakid">
<div></div>
</div>
</div>
<div id="gender-select-container">
<div class="big-button gender-selection" id="gender-male">
<div></div>
</div>
<div class="big-button gender-selection" id="gender-female">
<div></div>
</div>
</div>
<canvas id="character-preview" height="129" width="129"></canvas>
<div id="button-randomize-look" class="dice"></div>
<div id="character-options-container">

<div id="variable-skinColor" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-altOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-altOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-hairOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-hairOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-headOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-headOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-shirtOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-shirtOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-shirtColor" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-shirtColor" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-pantsOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-pantsOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-pantsColor" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-pantsColor" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-poseOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-poseOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
<div id="variable-helmetOption" class="option">
<div class="label" ></div>
<div class="option-buttons">
<div class="left-button button" ></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div id="variable-helmetOption" class="option">
<div class="label"></div>
<div class="option-buttons">
<div class="left-button button"></div>
<div class="option-counter">
<div></div>
<div></div>
</div>
<div class="right-button button"></div>
</div>
<div class="right-button button" ></div>
</div>
</div>
</div>

<div id="nameLabel">
<input type="text" id="nameInput" />
</div>

<div id="save-button" class="save-button"></div>
</div>
</div>
</div>

<div id="nameLabel">
<input type="text" id="nameInput" />
</div>

<div id="save-button" class="save-button"></div>
</div>
</div>
</body>

</html>
2 changes: 0 additions & 2 deletions jquery-1.8.2.min.js

This file was deleted.

Loading