Jump to content
MakeWebGames

Script47

Members
  • Posts

    1,150
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Script47

  1. What language to use? You'd obviously use the core HTML and CSS but for the actual game I have linked a 3D JavaScript library which I've seen people use to create some crazy games.   JavaScript - I've seen some project made with pure JavaScript which very impressive. I probably use this example too much but CubicVerse (dead project) created by [MENTION=1]a_bertrand[/MENTION]. But if you use it correctly and work on it properly then the outcomes will be worth it. The example I gave is not 2D but 2.5D (isometric). Three.JS - The examples on the site itself show it's power and the sort of quality you could make if you were going to go 3D.   As far as server side checks go, I've never really done them but I would assume people would say PHP. Planning I wanted to make a game roughly two years ago in JavaScript, a MMO of some sort, where you'd go around fighting monsters etc. So I thought why not, I'll just get down to it. So I dove straight in without any planning and created a basic game with a goblin and a single players. You could use health potions and magic potions and it was going great, until I realized that editing the code became insanely hard, mainly because I had no structure no proper thought went in to functions. I had no proper structure just a whole load of procedural code with no real logic behind it, which is where I'd like to think I learn't that you might as well hold development for a little while and ensure you've got the planning done, rather than diving in then realizing you'd have to code it again to make it easier to edit or update. Another thing I learn't was to split my files up in groups, which seems like an obvious thing to do but at the moment I forgot about it, so all the stats to with the player were in the same file as the graphics rendering and that was in the same file as mob (monsters, bad guys) details. That made it difficult to adjust anything as I'd have to find it through all the mess, even though it would take a like a couple of seconds extra but overall when having to constantly change stuff it adds on. Now when I create stuff in Java (not JS) I have structure which I use, I have three packages: --tk.script47.applicationName --tk.script47.applicationName.gui --GUI.java --tk.script47.applicationName.logic --Logic.java Main.java As you can probably guess what the packages do, GUI (manages all interface). I then use extends (sort of like PHPs include) and use the GUI stuff like that. However little things like this makes it easier as you'd know now that if it was an error with the actual game play I'd know it's in Logic.java whereas if it was something which didn't look right in the user interface I'd look in to GUI.java. So you could try an implement some sort of system that like that when you create the game, so at least you have some sort of structure. Make as many files as you need for example if I was to remake the game I was making I'd create file each for each mob. That way I could easily open said mobs file and edit them. I learn't a lot stuff after that project, simple stuff which makes development easier but delays the release, in hindsight if I did things properly back then It could have been quite a decent project but I learn't a lot of stuff from the mistakes I made, which is the most important thing. Sure we all make mistakes but learning from them is what makes us different. Breaking things down My last attempt to make a game in JavaScript I broke everything down, I don't know if you remember but I created a thread where I had attempted gravity and jumping, I broke down what the players would be able to do and tried them on their own, no sprites just simple colored squares using very basic JavaScript. So jumping and creating some sort of gravity effect in which the player would get brought back down. Otherwise I'd know if I jumped in again I'd get overwhelmed and fail. So don't be ashamed to break things down, so you get a better understanding of it all. Also if you know someone who has a greater understanding of stuff as them to help you, I on many occasions ask people for help, even now when I'd like to think I know what I'm doing I still ask [MENTION=65371]sniko[/MENTION], [MENTION=2]Nickson[/MENTION], [MENTION=1]a_bertrand[/MENTION], [MENTION=68711]KyleMassacre[/MENTION] and @DJK. Hell I just asked Kyle for help yesterday on a NWE module. If someone is more experienced than you, why wouldn't you ask them to help you. As you can tell from my signature I can keep asking the same stuff even if it frustrates the person, it's not something I do on purpose but I try to be sure that I understand it all. I've even asked [MENTION=65371]sniko[/MENTION] to write me full articles on his blogs so I can understand a subject better and because of how awesome he is, he's done it. Don't let pride get in the way and stop you from asking for help. Don't give up just because of a bug, push on. Below are some link of useful articles and good reads, I don't have a full list because I'm not on my PC: What Math should every game programmer know? - All the Math a game programmer should know. Game Networking - Very in depth and interesting. If there is anymore information you'd like, feel free to ask.
  2. I've updated it, waiting on Berty now.
  3. Aha, it would most definitely me emotional for anyone who uses my modules. xD   Wow, derp mistake will be patched.
  4. Harsh... Too harsh Guest. xD
  5. Just for future references, how could I improve on my module? This is not thread for it I know but for some reason I couldn't PM you.
  6. Sure, we'll guide you through it without you giving us any information at all. Why don't you at least tell us the issues you're having e.g. any errors (that is if they have occurred), what's happening, what's not happening. Help us to help you.
  7. Wow haha, good shaving! :D
  8. I tried the Fibonacci Sequence before and came up with this.   public static void fibonacciSequence() { int x = 2; int y = 3; System.out.println(1 + "\n" + 1 + "\n" + 2 + "\n" + 3); for(int i = 0; i <= 7; i++) { int z = x + y; System.out.println(z); x = y; y = z; } }
  9. Why would you look for that engine in particular when there are better alternatives? I just can't seem to get my head around your thinking, obviously it is your choice but curious to why you'd say no an engine like NWE as [MENTION=68711]KyleMassacre[/MENTION] suggested.
  10. Better alternative suggested by [MENTION=65371]sniko[/MENTION] here.
  11. Change the modal header for "Credits". Other than that I'm looking forward to breaking this when you release the source. Good job.
  12. So, I've been trying to make a random string generator, I've done this in PHP before, it was a lot easier it PHP than in Java, but this is what I came up with, it isn't the best.   public static String generateString(boolean numbersToo) { Random rGen = new Random(); String string = ""; String charsAndNums[][] = {{"A" + rGen.nextInt(99), "B" + rGen.nextInt(99), "C" + rGen.nextInt(99), "D" + rGen.nextInt(99), "E" + rGen.nextInt(99), "F" + rGen.nextInt(99), "G" + rGen.nextInt(99), "H" + rGen.nextInt(99), "I" + rGen.nextInt(99), "J" + rGen.nextInt(99), "K" + rGen.nextInt(99), "L" + rGen.nextInt(99), "M" + rGen.nextInt(99), "N" + rGen.nextInt(99), "O" + rGen.nextInt(99), "P" + rGen.nextInt(99), "Q" + rGen.nextInt(99), "R" + rGen.nextInt(99), "S" + rGen.nextInt(99), "T" + rGen.nextInt(99), "U" + rGen.nextInt(99), "V" + rGen.nextInt(99), "W" + rGen.nextInt(99), "X" + rGen.nextInt(99), "Y" + rGen.nextInt(99), "Z" + rGen.nextInt(99)}}; for(int i = rGen.nextInt(10) + 4; i <= rGen.nextInt(26) + 5; i++) { string += charsAndNums[0][i]; } return string; }   Any ideas to improve are welcome.
  13. For all of you that did those marathons is there any previews of what you made.
  14. That post is not going help. Also fix your spelling. Why not talk to him in PM, resolve the issue then ask him to make thread accepting his mistake (if it is in fact a mistake). None of this is going to help.
  15. Take it to PM, not on here. Not the thread for it.
  16. Awesome, I was going to try that next, also if you're interested in another one try to generate the Fibonacci Sequence.
  17. Recently I've been looking in to a lot of programming puzzles for fun and I came across one of the versions of FizzBuzz. Rules   If a string starts with "f" then you display "Fizz". If a string ends with "b" then you display "Buzz". If a string starts with "f" and ends with "b" then you display "FizzBuzz".   Spoiler
  18. Has anyone done any coding sprints/marathons recently? If so what did you make and how did it go?
  19. It will be worth it in the end to change now, seeing as you'll have to at some point so you might as well do it now.
  20. Script47

    EasyPHP Class

    Version 1.1.4 License Updated
  21. Script47

    EasyPHP Class

    License
  22. Script47

    EasyPHP Class

    That's perfectly fine, I will add the license tonight.
  23. Script47

    EasyPHP Class

    Version: 1.1.0 just updated.
  24. Script47

    EasyPHP Class

    Haha, yeah the font stuff is just very easy. xD But mainly it was used to make point of how the function works and how you can display difference messages. I removed the HTTP_X_FORWARDED_FOR after a chat with [MENTION=65371]sniko[/MENTION] main class will be updated tonight. That function works fine, it is what I use for forms in HTML, so you can use this function to check if a form field is empty, and I've tested and it works fine. Also that function will be changed a little bit in the update tonight. Thanks for the feedback pal.
×
×
  • Create New...