Skip to content

Commit

Permalink
Merge pull request #45 from tetra-devs/ayan/semifinal
Browse files Browse the repository at this point in the history
All changes
  • Loading branch information
ayan-biswas0412 authored Jan 5, 2021
2 parents b7bbe83 + b0944bf commit 14224f4
Show file tree
Hide file tree
Showing 103 changed files with 2,638 additions and 137 deletions.
43 changes: 43 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected] using subject ```OPEN SOURCE GUIDELINES VIOLATION```. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

### Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
57 changes: 57 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Contributing to Indeplot
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer

## We Develop with Github
We use github to host code, to track issues and feature requests, as well as accept pull requests.

## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:

1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests.
3. If you've changed anything, please update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. Issue that pull request!
7. Make all your PRs with the `develop` branch
8. Create a pull request to the `develop` branch and your pull request title must contain `[dev]` keyword and your work short title

## Any contributions you make will be under the GNU GENERAL PUBLIC LICENSE v3
In short, when you submit code changes, your submissions are understood to be under the same [ GNU GENERAL PUBLIC LICENSE v3](https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository) that covers the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using Github's [issues](https://github.com/indeplot/indeplot/issues)
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!

## Write bug reports with detail, background, and sample code
[This is an example](http://stackoverflow.com/q/12488905/180626) of a bug report , and We think it's not a bad model. Here's [another example from Craig Hockenberry](http://www.openradar.me/11905408), an app developer whom I greatly respect.But again this is an example you can follow your own.

**Great Bug Reports** tend to have:

- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

People *love* thorough bug reports. I'm not even kidding.

## Use a Consistent Coding Style
I'm again borrowing these from [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)

* Maintain proper indentation using tabs
* Here is is shortcut CTRL+Shift + I (for VS Code users) . It will auto indent your code.


## License
By contributing, you agree that your contributions will be licensed under its GNU v3 License.

## References
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
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) 2021 Tetra-Devs

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.
6 changes: 5 additions & 1 deletion Library/Library.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=29 format=2]
[gd_scene load_steps=30 format=2]

[ext_resource path="res://resources/accesable_miniature/Indoors/Room_small/Wallw.tscn" type="PackedScene" id=1]
[ext_resource path="res://resources/tilesets/stone_walls_and_floors.tres" type="TileSet" id=2]
Expand Down Expand Up @@ -28,6 +28,7 @@
[ext_resource path="res://resources/accesable_miniature/Indoors/Room_small/doorS.tscn" type="PackedScene" id=26]
[ext_resource path="res://resources/accesable_miniature/Indoors/Room_small/doorW.tscn" type="PackedScene" id=27]
[ext_resource path="res://resources/accesable_miniature/Indoors/Room_small/WallS.tscn" type="PackedScene" id=28]
[ext_resource path="res://resources/sitting_lok/sitting_body.tscn" type="PackedScene" id=29]

[node name="Library" type="Node"]
script = ExtResource( 18 )
Expand Down Expand Up @@ -459,6 +460,9 @@ position = Vector2( 45.7334, 1487.19 )
[node name="Bookself1" parent="YSort/Librarian_ct" instance=ExtResource( 17 )]
position = Vector2( -2464.66, 1134.02 )

[node name="StaticBody2D" parent="YSort/Librarian_ct/Bookself1" instance=ExtResource( 29 )]
position = Vector2( 7.34448, 58.5936 )

[node name="Bookself2" parent="YSort/Librarian_ct" instance=ExtResource( 16 )]
position = Vector2( -2451.82, 1150.24 )

Expand Down
146 changes: 144 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Sanskritam Game

[![first-timers-only](https://img.shields.io/badge/first--timers--only-friendly-tomato.svg?style=flat&logo=git)](https://github.com/tetra-devs/maingame/issues?q=is%3Aissue+is%3Aopen+label%3Afirst-timers-only) [![GitHub license](https://img.shields.io/github/license/tetra-devs/maingame.svg?logo=github)](https://github.com/tetra-devs/maingame/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/tetra-devs/maingame.svg?logo=github)](https://github.com/tetra-devs/maingame/stargazers) [![GitHub forks](https://img.shields.io/github/forks/tetra-devs/maingame.svg?logo=github&color=teal)](https://github.com/tetra-devs/maingame/network/members) [![GitHub top language](https://img.shields.io/github/languages/top/tetra-devs/maingame?color=yellow&logo=python)](https://github.com/tetra-devs/maingame)
## Team TetraDev Productathon 2020 Submission




<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->


---
> ## :mask: [COVID-19](http://corona-cases-india.netlify.com/) | Stay Home, Stay Safe! :house: <br> :mag_right: Checkout [this](http://corona-cases-india.netlify.com/) web app for live CORONA updates.
> ## :bar_chart: Checkout the [COVID-19 Tracker :mask: | INDIA](https://www.covid19india.org/) :india:
---

### Our Aim

To develop an interactive game which has a goal to teach the rich and vast language to the community.We are expecting to set some of the levels or checkpoints to our game to teach the **lanugate Sanskrit** to the players.
To develop an interactive game which has a goal to teach the rich and vast language to the community.We are expecting to set some of the levels or checkpoints to our game to teach the **language Sanskrit** to the players.We have developed a village in which all people talks in Sanskrit and the player has to interact with them to learn Sanskrit language

<p align="center"><img width="85%" src="./screenshots/main-readme.png" /></p>


### Development and Installation
Expand All @@ -13,12 +30,137 @@ We are using ```GoDot``` game engine for the development purpose of the game.To
* Git. [See steps](https://www.atlassian.com/git/tutorials/install-git)
* ```GoDot``` for your operating System (Linux/MAC OS/Windows).[See the installation steps](https://godotengine.org/download/)

* After cloning the repo just open the project from ```GoDot```.

## Getting Started

[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/tetra-devs/maingame?logo=github)](https://vinitshahdeo.github.io/Water-Monitoring-System/) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/tetra-devs/maingame?color=bluevoilet&logo=github)](https://github.com/tetra-devs/maingame/commits/) [![GitHub repo size](https://img.shields.io/github/repo-size/tetra-devs/maingame?logo=github)](https://vinitshahdeo.github.io/Water-Monitoring-System/)

**1.** Fork [this](https://github.com/tetra-devs/maingame/) repository.
Click on the <a href="https://github.com/tetra-devs/maingame/"><img src="https://img.icons8.com/ios/24/000000/code-fork.png"></a> symbol at the top right corner.

**2.** Clone the forked repository.

```bash
git clone https://github.com/<your-github-username>/maingame
```

**3.** Navigate to the project directory.

```bash
cd Water-Monitoring-System
```

**4.** Create a new branch.

```bash
git checkout -b <your_branch_name>
```

**5.** Make changes in source code.

**6.** Stage your changes and commit

```bash
#Add changes to Index
git add .

#Commit to the local repo
git commit -m "<your_commit_message>"
```

>CAUTION: Synch up your local repo with [original repo](https://github.com/tetra-devs/maingame) (Upstream) before pushing your commits.
>This avoids unnecessary conflicts during the merge.
>NOTE: You can do so by adding a [remote handler](https://www.atlassian.com/de/git/tutorials/syncing) reference to the original repo and pull the changes from the respective branch.
>Resolve the [merge-conflicts](https://www.atlassian.com/de/git/tutorials/using-branches/merge-conflicts) if any.

>```bash
>#Add upstream repo
>git remote add upstream https://github.com/tetra-devs/maingame.git
>
>#Disable accidental push to the upstream
>git remote set-url --push upstream DISABLE
>
>#List the remote repo and fetch references
>git remote -v && git fetch upstream
>
>#Check for any new commits in the upstream branch
>git log HEAD..upstream/master #No output indicates, upstream has not moved ahead
>
>#See the patch difference between local and upstream branch
>git diff -p HEAD..upstream/master
>
>```
>CAUTION: If the upstream has moved ahead, rebase your commit and resolve conflicts if any. [Skip otherwise]
>```bash
>git rebase upstream/master
>```
>
**7.** Push your local commits to the remote repo.
```bash
git push -u origin <your_branch_name>
```
**8.** Create a [PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) !
**9.** **Congratulations!** Sit and relax, you've made your contribution to our project
### Repository Structure
#### Our main scene is located at ```scenes/main.tscn```
#### Some of the main folder structures are described here
```/assets```
This folder contains all the assets such as tileset pngs and other binaries. You need to have Git LFS installed to add big files if you want to develop further
```/resources```
This foler contains main scenes which are used in our main map such as various models of houses, player accessable areas, Grass layouts,Rooms indoors and many more.Any tyoe of contribution is highly welcome.
Getting Involved
----------------
Depending on what you want to contribute, you need to take different steps
to get your development environment set up.
Read the [contribution guidelines](CONTRIBUTING.md) and [code of coduct](code_of_conduct.md) first. If you need
help please ask on issues
Enhance this Readme file for a better documentation if you want.
If you have game development skills you are most welcome otherwise you can learn and implement.
If you'd like to add more Sanskrit Resources to the game then you are also most welcome, you need not to be a game developer for that.
The planning board contains all issues and pull requests grouped see them in active issues and PRs of this repository
### Used Libraries and Resources
#### Assets use for TileSet Formation
1. [Isometric Dungeon Tiles](https://www.kenney.nl/assets/isometric-dungeon-tiles).This package contains isometric (and top-down) tiles for dungeon environments, also includes a character (8 directions / 3 animations). Included are walls, floors, furniture, crates, barrels, stairs and more. Also includes a sample for use with Unity Engine and Tiled.
2.[Isometric Library Tiles](https://www.kenney.nl/assets/isometric-library-tiles).This package contains isometric (and top-down) tiles for library environments. Included are walls, floors, tables, bookcases and more. Also includes a sample for use with Unity Engine and Tiled.
2. [Isometric Library Tiles](https://www.kenney.nl/assets/isometric-library-tiles).This package contains isometric (and top-down) tiles for library environments. Included are walls, floors, tables, bookcases and more. Also includes a sample for use with Unity Engine and Tiled.
## Contributors and Maintainers ✨
Thanks goes to these wonderful people who are maintaining the project.
<table>
<tr>
<td align="center"><a href="https://github.com/ayan-biswas0412"><img src="https://avatars1.githubusercontent.com/u/52851184?v=4" width="100px;" alt=""/><br /><sub><b>AYAN BISWAS</b></sub></a><br /><a href="#infra-ayan-biswas0412" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://github.com/Andy260700"><img src="https://avatars1.githubusercontent.com/u/59414365?s=460&v=4" width="100px;" alt=""/><br /><sub><b>ARPAN NANDY</b></sub></a><br /><a href="#infra-Andy260700" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://github.com/Sayantan0013"><img src="https://avatars3.githubusercontent.com/u/74588398?s=460&u=74a2d23ec23ea48ea944016ba4b6b78739dbbf05&v=4" width="100px;" alt=""/><br /><sub><b>SAYANTAN BISWAS</b></sub></a><br /><a href="#infra-Sayantan0013" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://github.com/arkadeepde142"><img src="https://avatars2.githubusercontent.com/u/18644980?s=460&v=4" width="100px;" alt=""/><br /><sub><b>ARKADEEP DE</b></sub></a><br /><a href="#infra-arkadeepde142" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</table>
20 changes: 20 additions & 0 deletions UI/Buttons.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
extends CanvasLayer


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass


func _on_Button_pressed():
get_tree().change_scene("res://UI/Vocabulary/ItemList-Trial.tscn")
17 changes: 17 additions & 0 deletions UI/Buttons.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_scene load_steps=2 format=2]

[ext_resource path="res://UI/Buttons.gd" type="Script" id=1]

[node name="CanvasLayer" type="CanvasLayer"]
script = ExtResource( 1 )

[node name="Button" type="Button" parent="."]
margin_left = 59.0678
margin_top = 475.538
margin_right = 116.068
margin_bottom = 526.538
text = "open"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
25 changes: 25 additions & 0 deletions UI/Vocabulary/ItemList-Trial.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
extends Panel

var ItemListContent = ["strI","puruSa","napuMsaka","dhAtu","dhanyavAdaH","svAgatam","kim","kiyat","asti","sundaram","idaM","aham","asmi","vAstavika","mUlya","hIn"]
signal report(value)
func _ready():
#Load the ItemList by stepping through it and adding each item.
for ItemID in range(len(ItemListContent)):
get_node("ItemList").add_item(ItemListContent[ItemID],null,true)

get_node("ItemList").select(0,true) #This sets a default so we don't have to
# do error catching if an empty selection is captured.
get_node("GoButton").connect("pressed",self,"ReportListItem")
pass

func ReportListItem():
var ItemNo = get_node("ItemList").get_selected_items() #The output ItemNo is a list of selected items
var SelectedItemtext = ItemListContent[ItemNo[0]]
get_node("Label - output").set_text(str(SelectedItemtext))
emit_signal('report',SelectedItemtext)



func _on_exit_pressed():
set_visible(false)

Loading

0 comments on commit 14224f4

Please sign in to comment.