Jump to content

Danidre

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Danidre

  1. Hey! Were you successful in creating your wrapper? I'm of the assumption it was going to be faster than HernanZh's?

     

    Context: 

     

  2. Its not really necessary to provide the game files. Iframes work just fine if the host iframe allows it. But yes as playh5 said, there are many channels distributing those things and...meh
  3. Wow I wanna hire you! You're the perfect artist for my multiplayer game Bob the Brawler https://www.youtube.com/watch?v=iU6kptNz1Zs Though, I would say, your skills are even greater than my minimal requirements so I don't want to hold you back there. As well as...I can't pay so don't even invest too much time into this comment. ? I'm just here to say your art is COOL! ?
  4. Happy new year. I'ven't checked Mega yet, since Dropbox seemed useful enough for me. But interesting discovery.
  5. @withkojidev I understand now. And that is indeed straightforward. Create a game/template, that others can use to remix and have fun. The only thing right now, is that more than likely, I will have to learn how to use your APIs in my game making such that things like leaderboards, and assets are remixable, not just plain JS games. So that would be an investment that I'll be interested in soon. But right now I'm occupied with about 3 things at once. I will keep this in mind to explore later on when I'm freed up.
  6. Yes, the best way is to ping servers to check for lowest ping. Or use the user's location to get an accurate geographical representation of where they may be (North America, Japan etc) and try to do ping tests with servers there first.
  7. Should be fine enough to go on heroku. Make sure you have .gitignore so you can ignore the node_modules when uploading to github.
  8. Text is confusing but it is really cool. With graphics, this could be amazing!
  9. I'm seeing a lot of remixes that are basically just sprite changes. You want a game creator, or an artist? Additionally, does every single remix get $500, or "just the ones that meet out specifications" and what determines that?
  10. That paperio3 game isn't a completely offline game. And actually, it isn't even their game. It's ppaper.io 2, you just embedded their game on your website.
  11. You only need the id of the pig with the biggest distance, so I'd loop through the pigs and store the id with the biggest y value: let pigIDWithFurthestY; let biggestDistance = 0; for(let i = 0; i < pig.length; i++) { if(ball.y - pig[i].y > biggestDistance) { biggestDistance = ball.y - pig[i].y; pigIDWithFurthestY = i; } } //ok, so at the end pigIDWithFurthestY will contain the i value of the pig that is the furthest in y. //To do an action on it, just call it with // pig[pigIDWithFurthestY] //the variable names are just for you to understand what's happening, but you can name them as you wish.
  12. Danidre

    In-Game Login API

    Newgrounds.io allows anyone to incorporate a login system to their game. From what I understand, they login to their newgrounds account, directly in the game, and they can even have that game on their own website. In other words, they do not need to upload the game to newgrounds, yet they can still be authenticated from Newgrounds. I assume an API is used, but I'm not sure how. If cookies are stored locally, or if JWT Tokens are used. I have a multiplayer game which works using 2 separate programs: The server is run using Node.JS hosted by Heroku The client is run on a static site hosted by Netlify (it's a single page JS Canvas game) The connection is made possible using Socket.io My problem: I want the client to be able to click a button (sign in) enter their unsername and password, and submit; thus making a request over to the server, for authentication. There, the server will verify if that information is correct, and grant that user access (which would be used for saving that user's character data or inventory items). However, how do I handle...authorizing that same user if they refresh the page? How would the server know that that browser is that same computer; that same user. How would that JS static site know to check if it was logged in, or if it needs to log in? Cookies or something? JWT Tokens rings in my head, but I don't have much knowledge to say for sure if that would work. Lastly, how would I send the requests to the API? Using a socket.emit? Or should I use a fetch or axios call to the server from the static site? Then that'll lead to questions such as how to allow requests from that one specific static site, because I know of things like CORS that prevents cross...requests (or something of that sort) I would really appreciate if anyone can help in this discussion, and if they can also link to where I can find discord servers or forums that are targeted to these questions. Since it seems to me like there's a silence in information such as these, and I've been researching for months figuring out everything on my own.
  13. Bob the Brawler is a top down quick-paced html game created for Ludum Dare 45. I decided to make it multiplayer, so I plan to record progress. I found this website while looking for socketio developers with experience, so that I could share my methods or latency compensation and seek advice or suggestions. But, as it's also a pure HTML 5 game, documenting it here would be a good idea as well. Video progress here: Direct game link here: https://www.newgrounds.com/portal/view/740364
×
×
  • Create New...