Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme #95

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f4ea484
Updates
snarvaez Nov 27, 2023
83997ba
Merge pull request #93 from mongodb-developer/feature/update-readme
snarvaez Nov 27, 2023
3c95254
Merge pull request #94 from mongodb-developer/main
snarvaez Nov 27, 2023
e55e0de
implement webgl version; wip;
ctcac00 Jan 15, 2024
8cda315
Initial deployment from App Services
mongodb-atlas-app-services[bot] Jan 29, 2024
c35d69e
add endpoint to create events;
ctcac00 Feb 1, 2024
de6a3ca
add index.html;
ctcac00 Feb 5, 2024
6fd9705
Virtual joystick
amartgon Feb 9, 2024
4d9d27d
Merge branch 'feature/unity-webgl' of https://github.com/mongodb-deve…
amartgon Feb 9, 2024
6ee2df5
Fix previous commit (virtual joystick)
amartgon Feb 9, 2024
0071911
add unity player webpage;
ctcac00 Feb 10, 2024
94f51a5
change button to link so that it wors on ipad safari;
ctcac00 Feb 10, 2024
0e8ed25
add new env var to be able to play on a remote server;
ctcac00 Feb 10, 2024
b2ab234
Adjust virtual controls size/position
amartgon Feb 12, 2024
d0ff3f7
Files missing in prev commit
amartgon Feb 12, 2024
c1e6f88
Merge branch 'feature/unity-webgl' of github.com:mongodb-developer/le…
amartgon Feb 12, 2024
757a637
fix bug with recordings;
ctcac00 Feb 12, 2024
c7ca47f
Workaround for ondrag event handler not being called on joystick
amartgon Feb 28, 2024
dad39c6
Fix interfrence of right and left controls touch controls
amartgon Mar 1, 2024
5088b61
Add reload and exit buttons for touchscreen
amartgon Mar 5, 2024
dc3f134
newest build;
ctcac00 Mar 5, 2024
399f8ce
Fix quitGame function to close the game window
ctcac00 Mar 6, 2024
fcb01c4
Webpage improvements
snarvaez Mar 6, 2024
f12ffdd
remove line
snarvaez Mar 6, 2024
c4267b7
Merge pull request #98 from mongodb-developer:feature/unity-webgl
ctcac00 Mar 7, 2024
91a85bd
Add GAME_CLIENT_PORT environment variable to deployment workflow and …
ctcac00 Mar 7, 2024
b7d0885
Merge pull request #99 from mongodb-developer:feature/unity-webgl
ctcac00 Mar 7, 2024
b9bf611
Merge pull request #100 from mongodb-developer:main
ctcac00 Mar 7, 2024
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
9 changes: 9 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
PROD_IP: ${{ secrets.PROD_IP }}
STAGING_IP: ${{ secrets.STAGING_IP }}

GAME_CLIENT_PORT: ${{ secrets.GAME_CLIENT_PORT }}

CONNECTION_STRING_PROD: ${{ secrets.CONNECTION_STRING_PROD }}
REST_SERVICE_IP_PROD: ${{ secrets.REST_SERVICE_IP_PROD }}
REST_SERVICE_PORT_PROD: ${{ secrets.REST_SERVICE_PORT_PROD }}
Expand Down Expand Up @@ -48,6 +50,8 @@ jobs:
echo "ATLAS_CHART_ID_PLAYER=${ATLAS_CHART_ID_PLAYER_STAGING}" >> $GITHUB_ENV
echo "ATLAS_CHART_ID_HOME=${ATLAS_CHART_ID_HOME_STAGING}" >> $GITHUB_ENV

echo "GAME_CLIENT_PORT=${GAME_CLIENT_PORT}" >> $GITHUB_ENV

else
echo "ENVIRONMENT_IP=${PROD_IP}" >> $GITHUB_ENV
echo "DATABASE_NAME=Leafsteroids" >> $GITHUB_ENV
Expand All @@ -60,6 +64,8 @@ jobs:
echo "ATLAS_CHART_ID_PLAYER=${ATLAS_CHART_ID_PLAYER_PROD}" >> $GITHUB_ENV
echo "ATLAS_CHART_ID_HOME=${ATLAS_CHART_ID_HOME_PROD}" >> $GITHUB_ENV

echo "GAME_CLIENT_PORT=${GAME_CLIENT_PORT}" >> $GITHUB_ENV

fi

- name: Checkout Code
Expand Down Expand Up @@ -109,6 +115,9 @@ jobs:
echo "ATLAS_CHART_ID_EVENT=${{ env.ATLAS_CHART_ID_EVENT }}" >> ./website/.env
echo "ATLAS_CHART_ID_PLAYER=${{ env.ATLAS_CHART_ID_PLAYER }}" >> ./website/.env
echo "ATLAS_CHART_ID_HOME=${{ env.ATLAS_CHART_ID_HOME }}" >> ./website/.env
echo "ATLAS_CHART_ID_HOME=${{ env.ATLAS_CHART_ID_HOME }}" >> ./website/.env

echo "GAME_CLIENT_PORT=${{ env.GAME_CLIENT_PORT }}" >> ./website/.env

- name: Copy The website Directory To The AWS EC2 Instance
run: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
.env
.idea/

game_client/build_web/Build/build_web.data
game_client/build_web/Build/build_web.framework.js
game_client/build_web/Build/build_web.loader.js
game_client/build_web/Build/build_web.wasm
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ Open http://127.0.0.1:8001/ to verify the website is running.

- Switch into the `game_client` folder.
- In the `Assets` folder, make a copy of the `.env.template` file and call it `.env`.
- Adjust the IP in the `.env` folder to your `rest_service`. Leave as is when running locally.
- Adjust the REST_SERVICE_IP in the `.env` folder to your `rest_service`. Leave as is when running locally.
- Adjust the EVENT_ID to the event you want to use (from the `events` collection).
- Adjust the WEBSITE_URL to your local website with port (don't add a trailing `/`).
- Run the game.

## Contributors
Expand All @@ -73,3 +75,4 @@ Open http://127.0.0.1:8001/ to verify the website is running.
- [Hubert Nguyen](https://)
- [Nic Raboy](https://www.nraboy.com)
- [Sig Narváez](https://www.linkedin.com/in/signarvaez/)
- [Carlos Castro](https://www.linkedin.com/in/carloscastromdb/)
6 changes: 6 additions & 0 deletions atlas_app_services/Leafsteroids/.mdb/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"config_version": 20210101,
"app_id": "65b7ea4a6277f0a9951a1ec8",
"group_id": "5afe975896e8212ab719aef0",
"client_app_id": "leafsteroids-zrfhz"
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/auth/custom_user_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "mongodb-atlas",
"type": "mongodb-atlas",
"config": {
"clusterName": "demo",
"readPreference": "primary",
"wireProtocolEnabled": false
},
"version": 1
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/environments/development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": {}
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/environments/production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": {}
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/environments/qa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": {}
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/environments/testing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"values": {}
}
1 change: 1 addition & 0 deletions atlas_app_services/Leafsteroids/functions/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
4 changes: 4 additions & 0 deletions atlas_app_services/Leafsteroids/graphql/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"use_natural_pluralization": true,
"disable_schema_introspection": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"read_validation_action": "ERROR",
"read_validation_level": "STRICT",
"write_validation_action": "ERROR",
"write_validation_level": "STRICT"
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/hosting/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enabled": false
}
1 change: 1 addition & 0 deletions atlas_app_services/Leafsteroids/http_endpoints/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
7 changes: 7 additions & 0 deletions atlas_app_services/Leafsteroids/realm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"app_id": "leafsteroids-zrfhz",
"config_version": 20210101,
"name": "Leafsteroids",
"provider_region": "aws-eu-west-1",
"deployment_model": "LOCAL"
}
3 changes: 3 additions & 0 deletions atlas_app_services/Leafsteroids/sync/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"development_mode_enabled": false
}
5 changes: 5 additions & 0 deletions game_client/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"visualstudiotoolsforunity.vstuc"
]
}
10 changes: 10 additions & 0 deletions game_client/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Unity",
"type": "vstuc",
"request": "attach",
}
]
}
61 changes: 61 additions & 0 deletions game_client/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.vs": true,
"**/.gitmodules": true,
"**/.vsconfig": true,
"**/*.booproj": true,
"**/*.pidb": true,
"**/*.suo": true,
"**/*.user": true,
"**/*.userprefs": true,
"**/*.unityproj": true,
"**/*.dll": true,
"**/*.exe": true,
"**/*.pdf": true,
"**/*.mid": true,
"**/*.midi": true,
"**/*.wav": true,
"**/*.gif": true,
"**/*.ico": true,
"**/*.jpg": true,
"**/*.jpeg": true,
"**/*.png": true,
"**/*.psd": true,
"**/*.tga": true,
"**/*.tif": true,
"**/*.tiff": true,
"**/*.3ds": true,
"**/*.3DS": true,
"**/*.fbx": true,
"**/*.FBX": true,
"**/*.lxo": true,
"**/*.LXO": true,
"**/*.ma": true,
"**/*.MA": true,
"**/*.obj": true,
"**/*.OBJ": true,
"**/*.asset": true,
"**/*.cubemap": true,
"**/*.flare": true,
"**/*.mat": true,
"**/*.meta": true,
"**/*.prefab": true,
"**/*.unity": true,
"build/": true,
"Build/": true,
"Library/": true,
"library/": true,
"obj/": true,
"Obj/": true,
"Logs/": true,
"logs/": true,
"ProjectSettings/": true,
"UserSettings/": true,
"temp/": true,
"Temp/": true
},
"omnisharp.enableRoslynAnalyzers": true,
"dotnet.defaultSolution": "game_client.sln"
}
Loading
Loading