Skip to content

pilvijo/ecofren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecofren

Ecofren is an online sustainability-driven game that bridges real-world eco-friendly actions with an immersive virtual experience. The project is organized into two main components:

  • webapp: A Next.js application providing the web interface for user interactions, dashboards, and integration with various backend services.
  • game: A Godot project that delivers the interactive in-game experience, where players explore and impact a dynamic world through their eco-actions.

Folder Structure

Ecofren/
├── webapp/    # Next.js web application
└── game/      # Godot game project

Getting Started

Prerequisites

  • Node.js (v14.x or later) and npm/yarn for the webapp
  • Godot Engine (4.x) for the game
  • Git for version control

Setting Up the Webapp (Next.js)

  1. Navigate to the webapp directory:

    cd webapp
  2. Install dependencies:

    npm install

    or if you prefer yarn:

    yarn install
  3. Start the development server:

    npm run dev

    or

    yarn dev

    The web interface will be available at http://localhost:3000.

Setting Up the Game (Godot)

  1. Open the project in Godot:

    • Launch the Godot Engine.
    • In the project manager, click "Import" and select the project.godot file located in the game directory.
  2. Run the game:

    • Open the main scene (e.g., Main.tscn) from the Godot editor.
    • Click the "Play" button to start the game.

Development Workflow

  • Webapp: All development related to the Next.js web interface (pages, components, API integration, styling) should be done in the webapp folder.
  • Game: All game development (scenes, scripts, assets) is maintained in the game folder using the Godot Engine.

Contributing

Contributions to Ecofren are welcome! To contribute:

  1. Fork the repository and create your branch:

    git checkout -b feature/your-feature
  2. Commit your changes with clear, descriptive messages:

    git commit -am "Add feature X"
  3. Push your branch:

    git push origin feature/your-feature
  4. Create a Pull Request detailing your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

make sustainable lifestyle fun again! smart moves can be fun via gaming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages