blassther Posted September 22, 2015 Share Posted September 22, 2015 (edited) Hello,so I made this game and I am looking for inspiration, ideas and critique. That is the link: http://hackandslash-tandemp.rhcloud.com/ I started this as a way to learn Phaser and game development in a browser. All is made with Phaser 2.4.3, graphics are pure canvas, I am no graphics guy. (Maybe someone tried to implement animations using canvas graphics?) Next steps would be to implement attack techniques to defend yourself. Afterwards I would love to make it a multiplayer. What servers do you use? I was wondering to implement simple server in node.js. Or employ an open source solution. Highscores are very hack-prone. Please don't abuse. (Someone already abused it, lol, thx) EDIT: I noticed I didn't give this topic a correct name. Seems to be too late to edit it. Sorry! EDIT EDIT:Thx @AzraelTycka ! Edited September 22, 2015 by blassther xdaniel26 1 Quote Link to comment Share on other sites More sharing options...
AzraelTycka Posted September 22, 2015 Share Posted September 22, 2015 Hello, press EDIT, then at the bottom there is USE FULL EDITOR, there you cna change the name ;-). blassther 1 Quote Link to comment Share on other sites More sharing options...
AzraelTycka Posted September 22, 2015 Share Posted September 22, 2015 Once more, not sure if it's intended but Apocalypse has Y in it not I. I checked it, why do your zombies and player collide such a distance before they actually touch? Just curious because as a player I can move through them so why not set the collision to when they actually collide? Quote Link to comment Share on other sites More sharing options...
blassther Posted September 22, 2015 Author Share Posted September 22, 2015 Once more, not sure if it's intended but Apocalypse has Y in it not I. I checked it, why do your zombies and player collide such a distance before they actually touch? Just curious because as a player I can move through them so why not set the collision to when they actually collide? I will start using dictionary before posting! I received the same feedback few times already. Seems it will be wise to reduce zombies' range. Zombies can "grab" you from a small distance. There are just no visible hands yet. I prepared it just in case, so I can modify attack range. Quote Link to comment Share on other sites More sharing options...
AzraelTycka Posted September 22, 2015 Share Posted September 22, 2015 Oh, ok ok, without any animation it just felt weird, but if you are working on it then it's a different matter. Does the game feel choppy to anyone? Considering there is not a lot of things on screen it was a bit choppy on my machine (different browsers - chrome the worst for me :-)) Quote Link to comment Share on other sites More sharing options...
blassther Posted September 22, 2015 Author Share Posted September 22, 2015 Oh, ok ok, without any animation it just felt weird, but if you are working on it then it's a different matter. Does the game feel choppy to anyone? Considering there is not a lot of things on screen it was a bit choppy on my machine (different browsers - chrome the worst for me :-)) Yeah, some reported me performance issues. I must look deeper in into it. Thx for noticing it! Feedback is important for me. Quote Link to comment Share on other sites More sharing options...
xdaniel26 Posted September 24, 2015 Share Posted September 24, 2015 Really nice. Keep improving the game. Maybe he could find guns and kill the zombies and move to other scenarios / levels. I liked the scoreboard. I am trying to do something like that to my games without sucess! Would mind to share the php file ????? Quote Link to comment Share on other sites More sharing options...
blassther Posted September 24, 2015 Author Share Posted September 24, 2015 Really nice. Keep improving the game. Maybe he could find guns and kill the zombies and move to other scenarios / levels. I liked the scoreboard. I am trying to do something like that to my games without sucess! Would mind to share the php file ????? Thank you for some nice words! It made me fix some performance bugs and secure my highscore script. You could write it like that:if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { if(@isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']=="http://yourgame.com"){ $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "INSERT INTO highscores (player, score) VALUES ('".$_GET["player"]."', '".$_GET["score"]."')"; if ($conn->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . $conn->error; } $conn->close(); }}But I would suggest making a REST application with i.e. Slim framework. Sooner or later one script won't be enough to process your data. xdaniel26 1 Quote Link to comment Share on other sites More sharing options...
xdaniel26 Posted September 26, 2015 Share Posted September 26, 2015 Thank you for some nice words! It made me fix some performance bugs and secure my highscore script. You could write it like that:if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { if(@isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']=="http://yourgame.com"){ $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "INSERT INTO highscores (player, score) VALUES ('".$_GET["player"]."', '".$_GET["score"]."')"; if ($conn->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . $conn->error; } $conn->close(); }}But I would suggest making a REST application with i.e. Slim framework. Sooner or later one script won't be enough to process your data. Thanks a lot man. I just starting developing games and i am a noob at php and SQL. I just figured out how feed my database with the player output. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.