PHP Classes

Tamagoshi PHP Cryptocurrency Miner Virtual Pet: Game to manage a cryptocurrency miner pet

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-11-16 (10 months ago) RSS 2.0 feedNot enough user ratingsTotal: 32 All time: 11,079 This week: 571Up
Version License PHP version Categories
tamagoshi 1.0.0MIT/X Consortium ...5PHP 5, Games, Finances
Description 

Author

This package implements a game to manage a cryptocurrency miner pet.

It implements a game on a Web site that simulates a virtual pet activity that does cryptocurrency mining.

Players need to take care of the pet feeding and sleeping time so it continues to mine cryptocurrency during the work period of the day.

Innovation Award
PHP Programming Innovation award nominee
November 2023
Number 9
Part of the excitement of cryptocurrencies is that people can do a mining process to earn virtual money by working to find more virtual coins.

Usually, this mining work is done by specific software so that it can be automated, and the mining of virtual coins can done faster.

This package implements a game that simulates the cryptocurrency mining process done by a virtual pet.

This game can help people learn more about the cryptocurrency mining process in an educative and fun way.

Manuel Lemos
Picture of Rodrigo Faustino
  Performance   Level  
Name: Rodrigo Faustino <contact>
Classes: 27 packages by
Country: Brazil Brazil
Age: 41
All time rank: 2509173 in Brazil Brazil
Week rank: 4 Up1 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 17x

Winner: 2x

Example

<?php

require_once 'DataController.php';

header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PUT');
header('Access-Control-Allow-Headers: Content-Type');

$method = $_SERVER['REQUEST_METHOD'];

$dataController = new DataController();

switch (
$method) {
    case
'GET':
        if (isset(
$_GET['email'])) {
           
$data = $dataController->getData($_GET['email']);
            echo
json_encode($data);
        } else {
            echo
json_encode(['error' => 'Email not provided']);
        }
        break;
    case
'POST':
       
$json = file_get_contents('php://input');
       
$postData = json_decode($json, true);

        if (isset(
$postData['email']) && isset($postData['appState'])) {
           
$result = $dataController->saveData($postData['email'], $postData['appState']);
            echo
json_encode(['success' => $result]);
        } else {
            echo
json_encode(['error' => 'Invalid data provided']);
        }
        break;
    default:
        echo
json_encode(['error' => 'Invalid request method']);
}


Details

Virtual Pet Crypto Miner

Descrição

Virtual Pet Crypto Miner é um jogo de simulação que permite aos usuários cuidar de um bichinho virtual enquanto minera criptomoedas. Os usuários precisam garantir que seu bichinho esteja bem alimentado e descanse adequadamente para se manter feliz, enquanto minera criptomoedas durante seus períodos de atividade.

Este jogo é um projeto web criado com Vue.js, HTML e CSS. Os dados do jogo atualmente são armazenados no local storage do navegador.

Tecnologias Utilizadas

  • Vue.js
  • HTML
  • CSS

Instalação

  1. Clone o repositório para o seu sistema local.
    git clone https://github.com/faustinopsy/tamagoshi.git
    cd tamagoshi
    
    ## Uso Ao iniciar o jogo, você será apresentado ao seu novo bichinho virtual. Seu trabalho é mantê-lo alimentado e bem descansado para manter sua felicidade.

Quando seu bichinho estiver acordado, ele começará a minerar criptomoedas. Cuide bem dele e veja seu saldo de criptomoedas aumentar!

Melhorias Futuras e Possibilidades

Este jogo ainda está em desenvolvimento. Atualmente, os dados do jogo são armazenados no local storage do navegador. No entanto, o jogo está sendo projetado para permitir armazenamento de dados no MySQL.

Adicionalmente, estamos explorando ideias para melhorar a interatividade e o envolvimento do jogador. Fique de olho nas futuras atualizações!

Licença

Este projeto está licenciado sob a licença MIT - veja o arquivo LICENSE.md para detalhes.


  Files folder image Files (48)  
File Role Description
Files folder imagebackend (3 files)
Files folder imagecss (4 files)
Files folder imageimg (13 files, 1 directory)
Files folder imagejs (8 files)
Accessible without login HTML file index.html Doc. Documentation
Accessible without login HTML file indexx.html Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (48)  /  backend  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Plain text file Database.php Class Class source
  Plain text file DataController.php Class Class source

  Files folder image Files (48)  /  css  
File Role Description
  Accessible without login Plain text file css2.css Data Auxiliary data
  Accessible without login Image file mon.png Icon Icon image
  Accessible without login Plain text file styles.css Data Auxiliary data
  Accessible without login Image file sun.png Icon Icon image

  Files folder image Files (48)  /  img  
File Role Description
Files folder imagexxx (17 files)
  Accessible without login Image file fundo.jpg Data Auxiliary data
  Accessible without login Image file junior_dormindo.gif Data Auxiliary data
  Accessible without login Image file junior_feliz.gif Data Auxiliary data
  Accessible without login Image file junior_medo.gif Data Auxiliary data
  Accessible without login Image file junior_normal.gif Data Auxiliary data
  Accessible without login Image file junior_raiva.gif Data Auxiliary data
  Accessible without login Image file junior_triste.gif Data Auxiliary data
  Accessible without login Image file pleno_dormindo.gif Data Auxiliary data
  Accessible without login Image file pleno_feliz.gif Data Auxiliary data
  Accessible without login Image file pleno_medo.gif Data Auxiliary data
  Accessible without login Image file pleno_normal.gif Data Auxiliary data
  Accessible without login Image file pleno_raiva.gif Data Auxiliary data
  Accessible without login Image file pleno_triste.gif Data Auxiliary data

  Files folder image Files (48)  /  img  /  xxx  
File Role Description
  Accessible without login Image file a1.png Icon Icon image
  Accessible without login Image file a2.png Icon Icon image
  Accessible without login Image file a3.png Icon Icon image
  Accessible without login Image file adolescente_feliz.png Icon Icon image
  Accessible without login Image file adolescente_medo.png Icon Icon image
  Accessible without login Image file adolescente_normal.png Icon Icon image
  Accessible without login Image file adolescente_raiva.png Icon Icon image
  Accessible without login Image file adolescente_triste.png Icon Icon image
  Accessible without login Image file adulto_feliz.png Icon Icon image
  Accessible without login Image file adulto_medo.png Icon Icon image
  Accessible without login Image file adulto_normal.png Icon Icon image
  Accessible without login Image file adulto_raiva.png Icon Icon image
  Accessible without login Image file adulto_triste.png Icon Icon image
  Accessible without login Image file evo.jpg Data Auxiliary data
  Accessible without login Image file p1.png Icon Icon image
  Accessible without login Image file p2.png Icon Icon image
  Accessible without login Image file p3.png Icon Icon image

  Files folder image Files (48)  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file event-bus.js Data Auxiliary data
  Accessible without login Plain text file miner.js Data Auxiliary data
  Accessible without login Plain text file pessoa.js Data Auxiliary data
  Accessible without login Plain text file SplashScreen.js Data Auxiliary data
  Accessible without login Plain text file tamagotchi.js Data Auxiliary data
  Accessible without login Plain text file vue.js Data Auxiliary data
  Accessible without login Plain text file vue.min.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:32
This week:0
All time:11,079
This week:571Up