Giter Club home page Giter Club logo

phpcraft's Introduction

PHPCraft 2D

Overview

Welcome to PHPCraft 2D, the game where Minecraft meets PHP. I mean, who hasn't dreamed of that combination, right? Explore a 2D world, change blocks, and marvel at the pulsating pixel that represents you. All powered by the magical world of PHP and HTML!

Features

  • A 2D world rendered in a table grid. Ah, the nostalgia!
  • Move around with arrow keys. No fancy controllers required.
  • Place blocks like grass, water, stone, and dirt. You're basically a god.
  • Your position and block selection are stored in sessions. So, forget about saving. We've got you!
  • Pulsating pixel to indicate your position. It's like you're alive, but in a browser.

Requirements

  • PHP (obviously)
  • A Web Server like Apache or Nginx
  • A sense of humor (optional but highly recommended)

Installation

  1. Clone this repository.
  2. Copy all files to your web server directory.
  3. Open your browser and navigate to the server's address.
  4. Enjoy your existential crisis in a 2D PHP world.

How to Play

Moving

  • Press arrow keys to move.
    • Left Arrow: Move left
    • Right Arrow: Move right
    • Up Arrow: Move up
    • Down Arrow: Move down

Placing Blocks

  • Use the form buttons to select a block type:
    • None: Ah, the Zen choice. Do nothing.
    • Grass: Like Astroturf, but cheaper.
    • Water: For those who like to live on the edge.
    • Stone: The cornerstone of any nutritious breakfast.
    • Dirt: It's... dirt. What more do you want?

Your selection will be displayed above the world grid.

World Around You

  • The world around you is displayed in a table grid.
  • You are represented by a pulsating pixel. Yes, you're that important.

Troubleshooting

  • The world won't render: Are you sure you're in the right dimension?
  • Can't move: Did you try turning it off and on again?
  • I don't like this game: Well, you can always go back to Minesweeper.

License

This project is as free as your spirit. Do whatever you want with it. Just don't blame us for any existential crises it might trigger.

Contributing

Feel free to fork, clone, and create pull requests. Or just fork and forget it, like you do with your other weekend projects.

Screenshot

PHPCraft 2D

phpcraft's People

Contributors

jeetix1 avatar

Stargazers

Michał Gdula avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.