Search the Community

Showing results for tags 'database'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda.js
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 14 results

  1. 3D model search engine

    Hello all, we launched a 3D model search engine, which finds 3D models on the Internet with simple keyword search. The models can be previewed right on your browser without any plugins! (Chrome and Firefox recommended). Here's the link: http://www.yobi3d.com Also check out our interview on The Verge http://www.theverge.com/2014/8/8/5982355/yobi3d-is-a-search-engine-for-3d-models
  2. HTML strategy game. Logic

    Hello. I am playing a bit with mysql and js, html and I am making a small browser strategy multiplayer game like travian for example. I have some doubts though. In this game players should be able to attack from X to X time. When they attack I change a state in the db for that player so it cannot attack until that state returns to the normal state. However that database update is not fast enough for if the player clicks too fast he attacks more than once before the query is over. How can I forbide players' actions then?
  3. Load SQL database in Phaser

    Hi everyone. I'm trying to learn something about how to load database information in my phaser games. Currently, I want to load some questions for a quizz game from a SQL database. I've searched online and I found a method that works but I don't know if it's the best option. Making a XMLHttpRequest I can load a PHP file in which I load the db info and then parse it into a JSON. As I said, it works, but then I don't know how to send the results back to the game, since is an asynchronous proccess. Let me explain myself with the code: Quizz.Game.prototype = { create: function(){ this.getQuestion(); }, getQuestion: function(){ var request = new XMLHttpRequest(); request.open('POST', 'getQuestion.php', true); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); request.onload = function(){ if(request.status >= 200 && request.status < 400){ //Correct var result = JSON.parse(request.responseText); this.sendQuestion(result); } else{ //Error } } request.send(); }, sendQuestion: function(){ //The next code } }; In this example I tried to load the question and then print it on screen or something, but I get the error 'this.sendQuestion()' is not a function, seems like the context is no longer 'this'... I guess my question is if you have some procedure you usually use for do this, or if there's a better way of doing it. Thank you for sharing! Gonzalo.
  4. I'm newbie at phaser and I need to connect database to my game. My game menu is created with format html and php, and my game is created with phaser. I need to passing an id which user choose from menu to game with this code : <a class = "btn_song" href = "GamePlay.php?id=<?=$row['id']?>"> And in my game, I've written php code like this : <?PHP $id = $_GET['id']; $query = "select * from song where no = ".$id; ?> but it's wrong. I think it's because phaser didn't support php. I've read that I should use JSON or AJAX, but I still can solve it. How to solve this?
  5. The link http://www.askforgametask.com/mobile/games/cover/ Description What Is The Most Terrible Cover is an HTML5 one-button puzzle/skill game where your goal is to go through 10 rounds guessing which of two book covers is more terrible regarding the upvotes (karma) from the TerribleCover subreddit. For each correct choice you are scoring a number of points proportionally to the remaining time for playing that round. Be aware that each wrong choice will be scored with negative penalty points! This game is mobile friendly so you can play it either on your desktop or mobile browser. Screenshots Source code The game is made in HTML5 using Phaser framework. If you are interested how it is done you can read these tutorials and find there free source code of the prototypes: Part 1: How to create an HTML5 Reddit's Image Scraper using Phaser Part 2: How to create an HTML5 game in Phaser using image data scraped from Reddit JSON
  6. Hi all, Regarding Reddit JSON API, you can get a JSON document by adding /.json to any Reddit URL. This can be used to extract various data from any subreddit making an image viewer/browser for instance. Furthermore, all images and their data scraped from a Reddit JSON could be also used to make some simple games. Here are some ideas: guessing which of two images has a better/worse upvotes scoreguessing a right range of upvotes for an image choosing between 2 or 3 different rangesguessing a title of an image choosing between 2 or 3 different titles as fast as possibleSo I decided to create a game based on some of these ideas in HTML5 using Phaser framework. But first of all, I need a tool for scraping images from a Reddit JSON file and I made it. The application and a short tutorial about its creation with the fully commented source code can be found here: http://www.askforgametask.com/2015/12/07/reddit-image-scraper/ In the next step I will try to make an HTML5 game using database of images generated by this tool.
  7. I am developing a game and would like to connect it to database on a server in order to make a leaderboard . Its a memory excercise game and would contain some mini games. My aim is to let a user add other users to his friend list and receive notifications of his various activities of those friends like completing a level of one of the mini games, beating the high score of the user in one of the mini games. All in all I would like to how can I achieve php and mysql functionality in phaser.
  8. Hi everyone, I'm looking for an experienced construct 2 developer to design a serious game for intelligence analysts. The game is pretty complex and needs also some kind of mind mapping so I don't know if Construct 2 is the best choice, but I would like to have some insights from the construct 2 community. We need a developer that can work in team with us. The mind mapping tool is called inference scheme and is part of a serious game to be implemented for intelligence analysts . Briefly what they have to do is to connect informations with a sort of Arrow to indicate reliable information. By creating this mapping they will end up to a conclusion that will then be presented at the end of the game. The html5 application will retrieve data from a database. The game will aslo have media elements that will be displayed and that based on the user actions will fire new events. Waiting for some feedbacks Louis
  9. Multiplayer client-server game

    I say hello to all game developers! I am beginner at game development, so I would like to ask some questions at first. I've got to create multiplayer game for at least 50 players. It will be a game like a travian, goodgame empire, ... etc. so the database server storage is needed Everything in game will be controlled by mouse-clicking on objects, except moving on world map and entering some text in input fields... I've chosen Phaser for developing game on client-side. I would like to avoid future problems so: What database should I use for storing the game datas? Is real-time networking necessary in this case? Which compoments (except Phaser) will I need? (socket.io? nodeJS? ...)Thank you for all your tips!
  10. sign in inside a phaser

    hi everyone i need some help with a game in phaser, this is my first time using this framework and i want to know if is possible make a sign in inside a phaser enviroment for example create a form and send a json to an API, another doubt is if i can call service rest to load a json data from the server and show data in the game load from database, is it possible? what can i do to do this thanks for your help
  11. Saving tilemap data to database

    I am making a relatively simple game using Phaser.Tilemap... I need to save the tilemap data to a sql database. Any idea how to go about that? I am aware of localstorage, but I need a permanent data save that can be share across sessions and users... Also, when I try to use: myTileMapName.dump();also,I get hundreds of '.' characters printed to the console... nothing else... I am confused. Any help very appreciated.
  12. Hi all, I'm pretty new to the gaming industry and am in need of a solution and I’m wondering if you could guide me through, please? I want to launch a website where people can play games on on both desktop browser and mobile browser. Since I would like to launch more games in the future and “lock” some out, I need some kind of parent-child relation in the application so that only the “unlocked” game can be played. Basically when the user accesses the website I need the parent “app" to go check in the database which game (1 game) can be played (locked/unlocked by me) and then load the game in dynamically. Other features I need are - JSON calls (or any type of calls) to GET/PUT in the database (to show data coming from DB) - Facebook integrations (FB login, FB share, …) - Game engine (such as gravity, events, … ) - UI layer where my player data will come from DB (if available) or can I solve this with "plain" HTML/CSS and PHP calls in the app? - Dynamic asset/sprite loading - possibility to design responsive (desktop/tablet/smartphone, …) I've been browsing around (a lot) and cannot seem to find a decent fit. Any suggestions would be heavily appreciated. Thank you in advance, Sem
  13. I can't find a good answer to this question. I want to create an HTML5 game with phaser framework and convert it into Android/iOS app (webview). The game suppose to work a lot with database (update, select) Do any one can suggest me the right way to work to be able after that to convert it with minimal time wasting? Thanks
  14. Hello everyone, I had an idea for a tool to create game data, like sprites or tiles. I'm going to attempt it in HTML5 and shoot for mobile devices. But I anted to get your thoughts on storage of this data? Since I would be dealing with potentially lots of small images as well as table like data... I suppose the game data can easily be stored as text via json, but should I even consider storing the images a base64 data, instead of binary? Then ultimately, what about storage locally on the device, like combining all the data into something like a a game save file (for transport later)? I know that indexedDB is not supported on IOS/Safari (so says caniuse.com) ... The one thought I did have was maybe wrapping this idea within PhoneGap and using a wrapper for Sqlite... Let me know your thoughts, Thanks, Dower