Jump to content

Search the Community

Showing results for tags 'Phaser PHP'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, in my project i want to create a game which will be support and save with php and MySql. In my first step i created login script and i want to show game window when player is singed in and i have a problem, beccause my game window is disappearing when it is loading. I really dont know why, meybe i am wrong in use php and phaser. When someone can help me i will be very grateful. How it work You can look on my page http://lifetime.cba.pl when You sing in on login: admin and password: admin My code where i check sign and show game look like this: <?phpinclude 'config.php';db_connect(); check_login(); // pobieramy dane usera$user_data = get_user_data(); echo '<center><p>Witaj <b>'.$user_data['user_name'].'</b>!</p> <p>Jestes w strefie tylko dla zalogowanych.</p> <p>[<a href="profile.php?id='.$user_data['user_id'].'">Wyswietl swoj profil</a>] [<a href="editprofile.php">Edytuj profil</a>] [<a href="userlist.php">Lista uzytkownikow</a>] [<a href="logout.php">Wyloguj sie</a>]</p> </center>';db_close();?><!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>Learn Game Development at ZENVA.com</title> <script type="text/javascript" src="js/phaser.js"></script> <script type="text/javascript" src="js/Boot.js"></script> <script type="text/javascript" src="js/Preload.js"></script> <script type="text/javascript" src="js/Game.js"></script> <style> body { background-color: silver; padding: 0px; margin: 0px; } </style> </head> <body> <div> <!-- include the main game file --> <script src="js/main.js"></script> </div> </body></html>and check login function: function check_login() { if(!$_SESSION['logged']) { die('<p>To jest strefa tylko dla użytkowników.</p> <p>[<a href="login.php">Logowanie</a>] [<a href="register.php">Zarejestruj się</a>]</p>'); }
×
×
  • Create New...