Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Thanks Just because something is dead does not mean you can just use it for free.
  2. Whats the going cost of a v2 licence? and if you have one for sale please post below
  3. You are not connected to a socket (unless there is more code) you need [js]var socket = io.connect(); [/js] rather then var socket = io();
  4. http://makewebgames.io/attachment.php?attachmentid=1905
  5. Dayo

    McNodes????

    Everything will be re-written i wont go file by file and copy the logic, but instead ill go module by module and implement them in node. I cant remember the one i used but from what i remember it was just an installer you needed to run, but 95% of the time i use Linux so cant really remember.
  6. Dayo

    McNodes????

    I have finaly started to learn node.js properly, i wanted a project to work on in my spare time. I learnt alot of PHP/SQl while developing mods for McCodes/working on my own game. So i thought it would be a good way to learn the ins and outs of node. But as i usualy always start things liek this off get to about 60% completeion and never finish them i was thinking of doing it as a sort of community project, we all moan at how bad mccodes is yet we all still work on it and make modules for it. Rather then make a mods for mccodes would it not be better time spent re-writing that whole module. Things like realtime chat could be implemented from the very start without the need of 3rd party pluguins or constant ajax polling. There is also the fact that this would create a whole new market for mods and stops people spending any money on mccodes (makes me crindge that people pay for such sub-standard code) sorry for the punny thread title
  7. you could do what mtg said above but if the password is md5 update it to sha512 automaticly
  8. I was talking to someone about something like this the other day. Could be a good idea, i had the idea that you could buy just the PSD or the HTML/CSS or one for a game engine.
  9. Ive never had an issue with 1 and 1 altho ill soon be leaving them as i need a better speced server, will be going with http://www.serverbidding.com/?country=GB.
  10. I thought i would make a modular JavaScript framework where you can load/execute modules, we use something similar at work and it works well with a medium-large application. Features: Built in template parser (handelbars.js) Easy to execute modules (load them into the page) or you can load a module for only one function Once you have loaded the module once you dont have to do it again (excluding database/ajax requests to the server If you have used PHP classes this uses a similar structure (construct/destruct functions) You can include JS files for modules so you only have to load them when you need them Hopefuly is easy to pick up? I have made it available on github: https://github.com/ChristopherDay/modularJSFramework Any reviews/critics would be welcomed
  11. Welcome to the forum and nice article, i have failed on almost every point you have said above :P Point #7 is the whole reason why i never do any freelance work (plus the fact i have no time to do my own work let alone others :P) One thing i would add to this list is properly plan everything first, at work we have spent the last 5 months re-writing a 4 year-old project because it was not planned out at the very start. You have to plan every feature and plan how the features integrate with each other. For the project im working on at work we spent about 40 man hours planning the features and because of this as we knew what we were coding and what we were trying to achieve. It saved us alot of time in the long run as we knew the code for xxxxxx module was going to be used within the modules x, y and z.
  12. After playing for 30-40 seconds some blocks just disapear, also would be nice if the blocks started in the center of the screen rather then the left
  13. We had that at work before we got an upgrade (did get as low as 0.09 as some points) ATM this is our speed we have a fibre link down also so our speeds are usualy better
  14. I agree having a nice UI can help manage a game, but personally myself for the project i am working on now i see no advantage to making/maintaining/securing a admin panel when i can SSH into it run a command to update a tanks battle stats then exit. Its a 60 second job. And TBH other then user administration what else on a game are you going to be altering often? There is not much/or anything i can think of that you cant do with SSH that you can do in PHP Sample of using SSH ssh [email protected] *enter password* mysql -uroot-p{password} database select * from tanks; update tanks set damage = 12 where tankID = 12; Ctrl+C Exit
  15. One of the most secure methods is not to have an administration panel, If you have designed the database correctly do everything via MySQL via SSH and not having and phpmyadmin.
  16. This is one major issue i have with this forum, people undervalue the work people provide. If you was to go to a company and ask for a login/register you are looking at £300+. The login i made the other day for a project of ours took me two weeks to make/refine but if you was to look at it it would look very simple, does not mean we should sell it for $70.
  17. Looks like a good start, there are a few things that need improving: 1) The typography - You are using 4 fonts (that i can see) try reducing this. 2) There is a scroll bar on the X axis of the textarea 3) The icons for the inputs look out of place, maybe try diffrent icons, look at icomoon.io As for your javascript you could do something like <a href="index.html" data-load-page="index">Index</a> <a href="about.html" data-load-page="about">About</a> <div data-page="index">Index</div> <div data-page="About">About</div> [js]<script> // This is un tested as im writing this in the quick reply box $(function () { $("[data-load-page]").bind("click", function (e) { e.preventDefault(); $("[data-page]").hide(); $("[data-page="+$(this).attr("data-load-page")+&quot]").show(); }); }); </script> [/js] This way you just have to make the html files for when JS is disabled, but if JS is enabled JQuery will load the pages.
  18. Dayo

    "Cronless crons"

    you could do something like UPDATE `userTable` SET `energy` = `maxEnergy` WHERE `energy`>`maxEnergy` run that after the update energy SQL.
  19. Dayo

    mccodemods.com

    was that not august last year, i seam to remember the design from a while ago
  20. When looping through objects i prefer the for method i.e. [js]for (var obj in data.result) { chartData[chartData.length] = data.result[obj].results; }[/js]
  21. Dayo

    MDShare

    Thanks will look into that today
  22. Dayo

    MDShare

    Anyone got a way i can contact MDShare? i can remember him having a load of 3D models and was wondering if he is still selling them
  23. I was trying to think of the most efficient way to generate the css needed for sprites today as im working on a small side project that requires them. Currently i have made a JavaScript object to make the CSS from the options i send i.e. [js] var map = new sprite({ className: "main-map", image: "images/sprites/map.png", columns: 8, rows: 8, size: 128, newSize: 32, names: [ ["sand", "grass-top-1", "sand-top-1", "grass-top-2", "sand-top-2", "grass-top-left", "sand-top-left-1", "grass-right-1"], ["grass", "sand-right-1", "sand-right-2", "grass-right-1", "grass-right-2", "sand-right-3", "grass-bottom-right-1", "sand-bottom-right-1"], ["grass-top-right-1", "grass-right-3", "grass-top-right-1", "grass-left-1", "sand-left-1", "grass-left-2", "sand-left-1", "grass-left-2"], ["sand-top-right-1", "sand-right-4", "sand-top-right-1", "sand-left-2", "grass-top-left-2", "sand-top-right-1", "grass-bottom-right-2", "sand-bottom-right-2"], ["grass-top-3", "grass-right-4", "grass-top-right-2", "grass-left-3", "grass-bottom-1", "grass-bottom-2", "sand-bottom-1", "grass-bottom-3"], ["sand-top-3", "sand-right-5", "sand-top-right-2", "sand-left-3", "sand-bottom-2", "sand-bottom-3", "grass-bottom-left-1", "sand-bottom-left-1"], ["grass-top-4", "grass-right-5", "grass-bottom-right-3", "grass-top-left-3", "grass-bottom-4", "grass-bottom-5", "blank", null], ["sand-top-4", "sand-right-6", "sand-bottom-left-2", " sand-top-left-2", "sand-bottom-4", "sand-bottom-5", null, null] ] });[/js] This will then generate the CSS then add it to the DOM in <style> tags. [css].main-map { background-image: url('images/sprites/map.png'); background-size: 256px; height: 32px; width: 32px; float: left; } .main-map.sand { background-position: 256px 256px; } .main-map.grass-top-1 { background-position: 224px 256px; } .main-map.sand-top-1 { background-position: 192px 256px; } .main-map.grass-top-2 { background-position: 160px 256px; } .main-map.sand-top-2 { background-position: 128px 256px; } .main-map.grass-top-left { background-position: 96px 256px; } .main-map.sand-top-left-1 { background-position: 64px 256px; } .main-map.grass-right-1 { background-position: 160px 224px; } .main-map.grass { background-position: 256px 224px; } .main-map.sand-right-1 { background-position: 224px 224px; } .main-map.sand-right-2 { background-position: 192px 224px; } .main-map.grass-right-2 { background-position: 128px 224px; } .main-map.sand-right-3 { background-position: 96px 224px; } .main-map.grass-bottom-right-1 { background-position: 64px 224px; } .main-map.sand-bottom-right-1 { background-position: 32px 224px; } .main-map.grass-top-right-1 { background-position: 192px 192px; } .main-map.grass-right-3 { background-position: 224px 192px; } .main-map.grass-left-1 { background-position: 160px 192px; } .main-map.sand-left-1 { background-position: 64px 192px; } .main-map.grass-left-2 { background-position: 32px 192px; } .main-map.sand-top-right-1 { background-position: 96px 160px; } .main-map.sand-right-4 { background-position: 224px 160px; } .main-map.sand-left-2 { background-position: 160px 160px; } .main-map.grass-top-left-2 { background-position: 128px 160px; } .main-map.grass-bottom-right-2 { background-position: 64px 160px; } .main-map.sand-bottom-right-2 { background-position: 32px 160px; } .main-map.grass-top-3 { background-position: 256px 128px; } .main-map.grass-right-4 { background-position: 224px 128px; } .main-map.grass-top-right-2 { background-position: 192px 128px; } .main-map.grass-left-3 { background-position: 160px 128px; } .main-map.grass-bottom-1 { background-position: 128px 128px; } .main-map.grass-bottom-2 { background-position: 96px 128px; } .main-map.sand-bottom-1 { background-position: 64px 128px; } .main-map.grass-bottom-3 { background-position: 32px 128px; } .main-map.sand-top-3 { background-position: 256px 96px; } .main-map.sand-right-5 { background-position: 224px 96px; } .main-map.sand-top-right-2 { background-position: 192px 96px; } .main-map.sand-left-3 { background-position: 160px 96px; } .main-map.sand-bottom-2 { background-position: 128px 96px; } .main-map.sand-bottom-3 { background-position: 96px 96px; } .main-map.grass-bottom-left-1 { background-position: 64px 96px; } .main-map.sand-bottom-left-1 { background-position: 32px 96px; } .main-map.grass-top-4 { background-position: 256px 64px; } .main-map.grass-right-5 { background-position: 224px 64px; } .main-map.grass-bottom-right-3 { background-position: 192px 64px; } .main-map.grass-top-left-3 { background-position: 160px 64px; } .main-map.grass-bottom-4 { background-position: 128px 64px; } .main-map.grass-bottom-5 { background-position: 96px 64px; } .main-map.blank { background-position: 64px 64px; } .main-map.sand-top-4 { background-position: 256px 32px; } .main-map.sand-right-6 { background-position: 224px 32px; } .main-map.sand-bottom-left-2 { background-position: 192px 32px; } .main-map. sand-top-left-2 { background-position: 160px 32px; } .main-map.sand-bottom-4 { background-position: 128px 32px; } .main-map.sand-bottom-5 { background-position: 96px 32px; }[/css] How do others go about making the CSS for your sprites?
  24. Looks nice althogh one thing i noticed was you just overlay the users money overtop of the zeros and use decimals rather then commas. But other then that it looks like a nice UI and i like the concept of going legal not many games go down this route.
  25. I call hax :P
×
×
  • Create New...