Jump to content
  • Advertisement

alnite

Member
  • Content Count

    6715
  • Joined

  • Last visited

Community Reputation

3452 Excellent

1 Follower

About alnite

  • Rank
    Legend

Personal Information

  • Role
    Programmer
  • Interests
    Art
    DevOps
    Programming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. alnite

    (Updated) Struggling With Remembering What I've Learned.

    Sorry, not accusing you of being lazy. Looking up for samples is fine, and in cases where you actually need to use the sample code verbatim, I'd suggest to avoid copy-pasting it directly, but rather, type in the code yourself. In other words, don't use Ctrl+C, Ctrl+V at all. Put the sample code side-by-side with your text editor, and write them yourself line by line. This somehow helps your brain better than just straight-up Ctrl+C, Ctrl+V Code written in simple plain English (or whatever language you comfortable speak). It is not meant to be compilable. There is no formal structure to pseudocode. It is up to you. Example of a pseudocode would be: for each item in inventory if item value < 10 discard item else check for item size if item size > screen_size resize item You can work out your own logic without worrying parentheses, quotation marks, variable names, etc. Once you think the logic is right, you can convert every single line of the above into actual C# code.
  2. alnite

    (Updated) Struggling With Remembering What I've Learned.

    How long have you been programming? This is a common problem among new learners that they cannot form basic logic when tasked to write the code from a blank slate. Especially nowadays with the massive availability of code on the open source and stack overflow. People have gotten lazy. Practice writing your own code (do not copy-paste from sample or open source) is the only way to do it. Start with pseudocode. It helps in forming the basic logic without dealing with syntax details, then convert your pseudocode into real C# code.
  3. alnite

    Games and blockchain.

    Not a blockchain expert, but this is the inherent nature of blockchain. Since all ledgers are public, everytime somebody makes a transaction, they get added to the chain. The chain will grow and eventually gets really long, and transactions taking longer and longer since everyone must verify them. If it's short and fast, that means no one is using it.
  4. alnite

    Streets of Rage 4...OMG!

    Oh man. Looks like I have my reason to buy a Switch. And Blaze should be a milf by now.
  5. alnite

    How much longer can Trump/Trumpism last?

    You are saying as if we had other choices to choose from. We were presented with two choices that neither was good. Hillary and Clinton Foundation with her history of receiving illegal political contributions, corruption, and being huge allies of the media. Bernie Sanders, which I thought should have won the Democratic primary, got burned by the DNC-Clinton-MSM mafia real good. Why are you presenting the election like it was black and white? Many people didn't like both Trump and Clinton. Even the Republicans were surprised Trump could win their primary. I listened to the local Republican talk show during the primary (disclaimer: I am NOT a Republican), and whenever they got people calling in, they would ask them who they would vote for. Some say Kasich, some say Ted, and very very few would admit they'd vote for Trump, which was received with snickers and laughters like it was a joke. This was among the Republicans. He was never popular to begin with. Now that he won, the party just had to shrug it up and back him up. Kinda like having that dumb colleague in your office who happens to be the CEO's son, who keeps writing bad code and badmouth everyone. You sat there, sigh, and fix his crap. In a company, you can just quit, but you can't just quit your political party because you too got way too many friends in the party. I feel like that's the state of the Republican party right now. No, they don't really like Trump, and they don't always see things eye-to-eye, but there are things they come to agree with and that is the DNC being a crybaby post election. If anything, the DNC's witch hunt, accusation, Russian collusion (which really was an oversight by Obama because he was underestimating Trump), calling Trump voters racists, insults, antifa, all of these behaviors are making them closer to Trump even though they didn't like him in the first place. The Democrats are more obsessed about Trump than the Republicans! Why can't they just suck it up, and vote better next time?
  6. alnite

    How much longer can Trump/Trumpism last?

    It's usually one aspect of a particular leader that people follow. What that aspect is different per individual. Some people say yes to abortion, but no to illegal immigration. Some others love guns and the 2A, but also welcomes illegal immigrations. The people that stand in between these policies, that don't feel like they belong to either, are the ones swaying left and right, and receiving the blunts of insults from both parties. Just because you voted Trump doesn't make you a racist or a Russian bot, who loves their guns, rednecks, hates the gays and the mexicans, and so on. Yes, those people exist, but that's not 50% of America. Sometimes it's just one tiny teeny thing he said/did that made people voted him. Not his whole life or persona. Remember the red-sweater Ken Bone? He, at least when viral, admitted to leaning to support Trump's economic policies. Was he a Russian bot then? So, really, stop with the labeling. The Democrats love to say "If you voted for Trump, then you must also be racist." And the Republican side is no better, and has their own stupidities. I think anyone who exercise a bit of critical thinking won't like both parties. Left side is correct on certain things, right side is correct on these other things. For most people, it's never 100% commitment to a party unless you actually work at the DNC or GOP (i.e. politics is your career).
  7. All Javascript client code can be viewed by users. The only tool you have is code obfuscator, but that really doesn't change much, only add an extra layer of inconvenience. edit: You actually do want to use obfuscator, or minifier as some people call it. Since it compacts your code, remove whitespaces and trim names, it can significantly reduce download time and thus make your game load up faster.
  8. alnite

    What technology for a game-server

    I think you are confused here. HTTPS has nothing to do with PHP or its nuances. All the features you are asking can be simply done using standard web HTTP REST API interface. Similar to forums, Google Maps API, Twitter, Facebook, etc. This is language agnostic, and virtually all languages should have some libraries to do this. PHP, Java, Go, Python, Ruby, whatever that fancies you. HTTP supports file uploads. HTTPS is a secure protocol on top of HTTP. It's always a good idea to use it. The hosting company can do it for you. If you are into system administrator and stuff, you can do it your own as long as you have the certificate. Again, this has nothing to do with the language. Some languages are single-threaded like PHP, Ruby, and Python, and actually will have some problems handling multiple HTTP/S requests at the same time, and therefore needs additional libraries and tooling to do the threading, forking, and buffering so some users aren't getting a 500. This is where Apache and Nginx comes in to buffer those requests before getting into your code.
  9. alnite

    what do you listen to while making / playing games??

    Some of the music I have played while programming: Trance, Synthwave, Sax Jazz
  10. alnite

    Saving Player Information

    How depending on the requirements of your game and how many players you are thinking of supporting at a time. @hplus0603 already gave some pretty good choices. I am getting a feeling that this might be your first networked game, and by multiplayer, it really is just you and your friends, not the entire Internet. I'd say just pick one, just for the learning experience. You don't know which method is the best for your game. We can tell you the best solution is probably using SQL tables with replications so you can scale your server horizontally, and query individual fields for analytics purposes. You can also optionally go the Key-Value NoSQL route and save them as JSON. But, this is probably too large of a requirement for your game, and also by yourself to support. Not to mention the monetary cost of such architecture. If I were you, I'd just save them into a human-readable format onto disk (a simple `FileOutputStream`), and read it back when you load the game.
  11. alnite

    Trickjumping in games

    I like trickjumping in games. Reminds me of a friend of mine who was top-ranked back in the Unreal Tournament 2004. He and his buddy were so good at trickjumping that on one CTF map, they would trickjumped from the top of enemy tower back to the home tower to score a point (you are supposed to go back through the middle the crossings). This is the map: That kind of move was one way to confuse the opponents. You know your flag is taken, but you don't know where the fuck it is as you are not seeing it crossing through the middle. Instead it's flying right above you at high speed.
  12. alnite

    Is there a doctor in the house?

    Usually common among toddlers I have observed, but I assume normal adults should've grown out of it. Disclaimer: not a physician or a psychologist.
  13. I loathe web development, but it has become the necessary evil in a programmer's life. There are many different web frameworks out there, and each has its own styles and ways of making web development "easier" and "cleaner". Of course, that statement is highly subjective, and bound to change in the future as new and "better" frameworks come along. In my opinion, it all comes down to your personality. Some programmers like a big framework to work on. Some popular ones nowadays are: React, Angular, and Polymer. You typically need to install a backend (the server that serves your HTML) node.js with npm/bower/gulp and stuff, code in this pseudo-HTML/JS/TS, then build and compile your code into the HTML/CSS/JS that your users will be looking at. You are no longer working directly with HTML and JS files with these frameworks. Example of this pseudo HTML/JS (taken from React): class Square extends React.Component { render() { return ( <button className="square"> {/* TODO */} </button> ); } } Then there are the micro JS frameworks. They are somewhat less authoritative, and you can still add them to your HTML manually with the <script> tags. Examples include mithril, Vue, and pretty sure there are dozens others. They try to make web development simpler, while keeping the original spirit of HTML/JS intact, and without the necessity of downloading an entire framework with a bunch of npm dependencies. They typically provide the data-binding without forcing you to write in a pseudo HTML/JS like above. This is my preferred method of web development, but I have never been paid to do a frontend development. So, take my advice with a grain of salt. Then there are CSS frameworks. Bootstrap is a CSS framework. It comes with predetermined set of CSS classes to make responsive web. You can use Bootstrap if you are still coding the web like it's 1999, since all you need to do is to include the bootstrap.css into your HTML files and use them in your <div>s and see the magic happens.
  14. alnite

    Backups (online and image)

    I am doing the same, except DropBox for docs I want easy access to, and its camera upload features. Google Drive replaces my Office. Bitbucket for private repos, and Github for public. For everything else that I infrequently use, I use S3 with rclone to sync them up.
  15. One gotcha in developing a server-client application is that you can run into a chicken-egg situation. In order to test the server, you need a fully functional client. In order to test a client, you need a fully functional server. Which one do you develop first? Developing both at the same time can be time consuming if you do not have a solid protocol specification. If you change the protocol, you are updating both server and client code. What packets are being sent to clients when a player disconnects, when a player moves, etc. etc. Did the server respond correctly? Did the client respond correctly? What happen if they get out of synced? There is a lot of details that need to be hashed out before your server and client applications can even reach their alpha status. I have found out in the past that supporting HTTP can be helpful in testing some functionalities of the server, because HTTP is widely supported by the browsers. In other words, you have already gotten a fully functioning client, without the game logic obviously. Some people also recommend using telnet as your first client. However, I find telnet to be too rudimentary for testing once the logic gets a bit complicated.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!