Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Feb 13, 2022
0 parents commit 7fc86e5
Show file tree
Hide file tree
Showing 468 changed files with 601,980 additions and 0 deletions.
121 changes: 121 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: 0
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeComma
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 0
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseTab: Never
...

1 change: 1 addition & 0 deletions .defignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/scripts
53 changes: 53 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Defold Protocol Buffer Text Files (https://github.com/github/linguist/issues/5091)
*.animationset linguist-language=JSON5 gitlab-language=protobuf
*.atlas linguist-language=JSON5 gitlab-language=protobuf
*.camera linguist-language=JSON5 gitlab-language=protobuf
*.collection linguist-language=JSON5 gitlab-language=protobuf
*.collectionfactory linguist-language=JSON5 gitlab-language=protobuf
*.collectionproxy linguist-language=JSON5 gitlab-language=protobuf
*.collisionobject linguist-language=JSON5 gitlab-language=protobuf
*.cubemap linguist-language=JSON5 gitlab-language=protobuf
*.display_profiles linguist-language=JSON5 gitlab-language=protobuf
*.factory linguist-language=JSON5 gitlab-language=protobuf
*.font linguist-language=JSON5 gitlab-language=protobuf
*.gamepads linguist-language=JSON5 gitlab-language=protobuf
*.go linguist-language=JSON5 gitlab-language=protobuf
*.gui linguist-language=JSON5 gitlab-language=protobuf
*.input_binding linguist-language=JSON5 gitlab-language=protobuf
*.label linguist-language=JSON5 gitlab-language=protobuf
*.material linguist-language=JSON5 gitlab-language=protobuf
*.mesh linguist-language=JSON5 gitlab-language=protobuf
*.model linguist-language=JSON5 gitlab-language=protobuf
*.particlefx linguist-language=JSON5 gitlab-language=protobuf
*.render linguist-language=JSON5 gitlab-language=protobuf
*.sound linguist-language=JSON5 gitlab-language=protobuf
*.sprite linguist-language=JSON5 gitlab-language=protobuf
*.spinemodel linguist-language=JSON5 gitlab-language=protobuf
*.spinescene linguist-language=JSON5 gitlab-language=protobuf
*.texture_profiles linguist-language=JSON5 gitlab-language=protobuf
*.tilemap linguist-language=JSON5 gitlab-language=protobuf
*.tilesource linguist-language=JSON5 gitlab-language=protobuf

# Defold JSON Files
*.buffer linguist-language=JSON gitlab-language=json

# Defold GLSL Shaders
*.fp text eol=lf linguist-language=GLSL gitlab-language=glsl
*.vp text eol=lf linguist-language=GLSL gitlab-language=glsl

# Defold Lua Files
*.editor_script text eol=lf linguist-language=Lua gitlab-language=lua
*.render_script text eol=lf linguist-language=Lua gitlab-language=lua
*.script text eol=lf linguist-language=Lua gitlab-language=lua
*.gui_script text eol=lf linguist-language=Lua gitlab-language=lua

# Defold Project Settings
*.project linguist-language=INI gitlab-language=ini

# EOL Settings
*.cpp text eol=lf
*.html text eol=lf
*.json text eol=lf
*.lua text eol=lf
*.md text eol=lf
*.yml text eol=lf
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots (optional)**
If applicable, add screenshots to help explain your problem.

**Hardware (optional)**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context (optional)**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/content-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Content request
about: Suggest an idea for this project
title: ''
labels: asset
assignees: ''

---

**Describe the content you'd like**
A clear and concise description of what you want to have.

**Describe alternatives you've considered (optional)**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context (optional)**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context (optional)**
Add any other context or screenshots about the feature request here.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build example for HTML5

on:
workflow_dispatch:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Install Java ♨️
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "11"

- name: Build 🔧
env:
DEFOLD_BOB_SHA1: ${{ secrets.DEFOLD_BOB_SHA1 }}
run: |
lsb_release -a
mkdir -p build/bundle
BOB_SHA1=${DEFOLD_BOB_SHA1:-$(curl -s 'https://d.defold.com/stable/info.json' | jq -r .sha1)}
wget --progress=dot:mega -O build/bob.jar "https://d.defold.com/archive/${BOB_SHA1}/bob/bob.jar"
java -jar build/bob.jar --version
java -jar build/bob.jar --email [email protected] --auth 123 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --archive --variant release resolve build bundle
(cd build/bundle && cp -r js-web/* public)
- name: Deploy to Pages 🚀
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/bundle/public
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/.internal
/build
.externalToolBuilders
.DS_Store
Thumbs.db
.lock-wscript
*.pyc
.project
.cproject
builtins
/.vscode
/manifest.public.der
/manifest.private.der
4 changes: 4 additions & 0 deletions .lua-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
column_limit: 120
keep_simple_control_block_one_line: false
keep_simple_function_one_line: false
line_separator: lf
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tabWidth": 4,
"printWidth": 120,
"overrides": [
{
"files": "*.yml",
"options": {
"tabWidth": 2
}
}
]
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Indiesoft LLC

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.
Loading

0 comments on commit 7fc86e5

Please sign in to comment.