Skip to content

0xmetaschool/VintageGamesGPT

Repository files navigation

Vintage Games GPT

VintageGamesGPT is your gateway to AI-powered game creation and customization. Dive into the world of retro gaming by editing pre-built templates or generating entirely new games using AI prompts. Whether you're a nostalgic gamer or an indie developer, VintageGamesGPT empowers you to bring classic game ideas to life effortlessly.

Built with Next.js and powered by OpenAI API, this template enables you to create, modify, and reimagine games, making the development process seamless, creative, and enjoyable.

Live Demo

https://vintage-games-gpt.vercel.app/

Features

  • Create unique games by providing AI prompts tailored to your preferences using AI
  • Customize existing retro game templates to suit your creative vision
  • Instantly see the results of your edits with a live game preview feature
  • Copy your game code or share them directly with collaborators.

Technologies Used

  • Next.js and React for Frontend and Backend
  • OpenAI API with GPT models for AI-Powered Features
  • Clerk authentication for Authorization

Use Cases

  • Design retro-style games from scratch using AI-driven prompts
  • Modify and personalize pre-built game templates to match your unique ideas
  • Experiment with game mechanics, levels, and designs in a user-friendly interface
  • Export code of completed games to share with friends or publish for the world to enjoy

Installation Steps

  1. Clone the repository:
git clone https://github.com/0xmetaschool/VintageGamesGPT.git
  1. Navigate to the project directory:
cd VintageGamesGPT
  1. Install dependencies:
npm install
  1. Set up environment variables:

Create an .env file in the root directory. Add the following variables:

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=
NEXT_PUBLIC_CLERK_SIGN_UP_URL=

OPENAI_API_KEY=
  1. Run the development server:
npm run dev

Open your browser and navigate to http://localhost:3000.

Screenshots

VintageGamesGPT homepage screenshot VintageGamesGPT dashboard screenshot
VintageGamesGPT snake template screenshot VintageGamesGPT custom game creation screenshot

How to Use the Application

  1. Sign in using your Google account
  2. Select your game preferences like custom templates or create a new game from scratch
  3. Play your AI-generated games, make changes as per your needs
  4. Copy to game code to be used later

Contributing

We love contributions! Here's how you can help make the project even better:

  • Fork the project (gh repo fork https://github.com/0xmetaschool/VintageGamesGPT/fork)
  • Create your feature branch (git checkout -b feature/AmazingFeature)
  • Commit your changes (git commit -m 'Add some AmazingFeature')
  • Push to the branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

License

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

Contact

Please open an issue in the GitHub repository for any queries or support.