Jump to content

  • Log In with Google      Sign In   
  • Create Account


tedsta

Member Since 13 Mar 2013
Offline Last Active May 13 2014 08:15 PM
-----

#5060634 Movement speed vary on different machines

Posted by tedsta on 09 May 2013 - 11:11 AM

You need to multiply your speed, in seconds, by the delta time in seconds. So, if your update function is receiving the delta time in milliseconds, divide the milliseconds by 1000 to get your delta time in seconds. That, or you could fix your time step as Matias said, which you'll have to do anyway if you want to implement good multiplayer. The link he provided is very good.

 

On top of that stuff, your logic looks a bit off. So, you have a velocity variable that moves your ship based on delta time, but then when ship controls are pressed you don't even touch the velocity variable and just move your ship by hand ignoring delta time.




#5056979 Platforms in a 2D platform game

Posted by tedsta on 26 April 2013 - 09:06 AM

If you want the tiled look of Mario, look up tile scrolling. The basic idea is you have a 2D array of integers that represent different tile types, and you draw the portion of that 2D array that is on the screen based on your camera position.

 

for (int x = left; x < right; x++)
{
     for (int y = top; y < bottom; y++)
     {
          // Draw map[y][x] tile at (x*tileW, y*tileH)
     }
}



#5056819 Do I need the CS degree to make it out there?

Posted by tedsta on 25 April 2013 - 09:33 PM

Thanks, Tom, your links are very helpful.

 

Anyway, my point is that there has always been oodles of information available. The problem is you can only search for things you know about in an information retrieval system like a library or a googlenet. If you aren't aware of what you need, how are you going to find it, even with the very best search engine in the universe? Google is great for finding the known knowns and the known unknowns, but remarkably lousy at finding out about the unknown unknowns. That's the difference between an education and a library.

 

Sure, Google's lousy at finding unknown unknowns, but if you are working on a project and Googling a specific problem, there are no unknowns. It's my fault for poorly phrasing what I mean. I'm not saying you should learn through Google, I'm saying that you should learn through hands-on projects with Google as a helping hand when you get stuck. Hence, anything you don't already know can be found on Google. For instance, let's say I'm writing a game that needs a procedural height map. Oh no, I don't know anything about that, I'll Google procedural world generation. Suddenly, I discover perlin noise, fractal noise, and even some sweet example code! Google saves the day again! Good luck getting your professor to talk about things like that.

 

I asked my professor about how to get a pointer to an operator member function (I was binding my vector class to the Squirrel scripting language and wanted to be able to use arithmetic operators). We searched through the C++ textbook to no avail. Here's what he told me after: "Uggghhh.... Google it." Then, I Googled for about half an hour and found the answer.

 

The more I think about it, the sillier it seems that companies value a CS degree more than proven experience for entry level jobs. "Oh yeah, let's not hire the kid with tons of proven development experience and several completed products in various areas and no degree. Let's hire the fresh college grad who knows how to implement the binary search algorithm and maybe even make a Tetris clone - he has a degree!" 

 

Anyway, I'm sorry, the pride, it gets to my head. It's a disease. I'll stop now. I'll go do my homework and register for my classes for next semester tongue.png Thanks all for your valuable input! You have knocked the sense right back into me - giving up my scholarship for some exciting new work opportunities would be a terrible idea.




#5056780 Do I need the CS degree to make it out there?

Posted by tedsta on 25 April 2013 - 06:24 PM

I accept that the without a degree you will below the majority with a degree, but doesn't the portfolio imply work experience? What I mean by a portfolio IS work experience. I do work half-time as a programmer at a biology lab to pay my rent. (I've hated biology so, so much ever since my high school biology class). Isn't having hands-on experience and no degree better than having a shiny degree with no hands-on experience? From what I've gathered from my first year here at my university, it seems like all of the graduating seniors have a ton of theoretical knowledge regarding math and computers without the slightest idea of how to apply it to create a functional product.




#5056757 Do I need the CS degree to make it out there?

Posted by tedsta on 25 April 2013 - 05:07 PM

And it seems nowadays anything you don't already know can be found on Google.

Sure.  Just like everything you don't already know has always been available at libraries.  The medium doesn't change the fact that unless you know what you need, you're not going to have a lot of success looking for it.  Prepare your mind.

 

But all the information is absolutely not available in a local library. You might be able to find a handful of books on C programming, 9 out of 10 of which are outdated. On the internet, you can find tutorials, videos, open source projects, etc. I don't agree that you can't find knowledge without someone telling you where to look. I didn't learn to code with a professor holding my hand and telling me where to look for 8 years, I learned by doing projects and searching Google when a problem came up. I think we live in a new age where anyone can learn to code as long as they have half a brain, a bunch of spare time, and an internet connection.

 

I do not like this CS-degree-required filter, but I suppose I will just have to roll with it.

That is part of the reason it exists.

 

A degree by itself provides evidence that you can do the job well.

 

That evidence is not just that you know the topics to a minimal level.  One bit of evidence is that you can stick with a project that you may not always enjoy.

 

I feel that a portfolio filled with completed projects proving hands-on experience is a lot more valuable than a piece of paper saying that I memorized a bunch of facts for a few exams. All a degree proves is that you passed a few tests - and they're not very hard tests. Out of all the senior CS students at my University, maybe 2 can code at a professional level. One of them has terrible grades because he crams himself with 24 credits.

 

Anyway, just my humble opinions, I won't drop my schooling.




#5056699 Do I need the CS degree to make it out there?

Posted by tedsta on 25 April 2013 - 12:02 PM

Alright, thanks for knocking some sense into me, guys.

 

 

 

I created an account just to reply to this post

 

I appreciate that!

 

And thanks, Katie, you have a lot of very persuasive points. That image of me looking at a shiny poster board :'( Haha.

 

I do not like this CS-degree-required filter, but I suppose I will just have to roll with it. At least I'm all done with the required math :D Now I just get to take the Math that I want to take.




#5056582 Do I need the CS degree to make it out there?

Posted by tedsta on 25 April 2013 - 01:32 AM

Hey all, if you want to skip my background, my question is: Do I need a college degree to have a successful career as a programmer (primarily as a game programmer).
 
If you want to tailor your response to be specific to my situation, I would be very grateful! Here is my background info:
 
I'm 18 years old, and I've been programming since I was 10 years old. My dad handed me an ancient book on C programming and told me that if  I learned to program, I could make my own video games. Now what 10-year-old doesn't want to make a video game? I hated reading of course, so I just skipped straight to the code examples. When I dried that book out, I moved to the vast ocean of Google to learn everything I know about C++ today. Now, I'm finishing up my freshman year of college as a CS student. I work part-time as a programmer for a genetic research facility under the USDA to pay my rent.
 
Most of my experience is in game development, but I also enjoy artificial intelligence (mainly artificial neural networks), massively parallel GPU programming, robotics, and OS-level programming (I wrote a simple OS that went into pmode and loaded a simple shell back in my junior year of high school. Bootloader in Assembly, kernel in C).
 
I learned Java in a weekend and made an Android game the following month, and you can find that in my signature. I also wrote 2 game engines that I use for all of my hobby projects - one for 2D and the other for 3D. Getting amped up to use my Fission engine in this weekend's Ludum Dare!!! This will be my 5th time doing it smile.png
 
That about sums up my background. The reason I'm asking this is because I'm really not enjoying the classroom part of college so much. I love the living on my own, do whatever I want, lots of free time, do some cool projects aspect of college, but so far I've learned little to nothing in my CS classes. And it seems nowadays anything you don't already know can be found on Google.
 
Also, it's worth mentioning that I have a full-ride scholarship to my University. I guess the obvious answer should be to take the free college, but I just feel so unsatisfied - like I'm just here for that piece of paper.
 
I am finishing up Calculus 3 and Linear Algebra this semester though (2 more weeks!!!!)! I didn't need Calc 3, but Linear Algebra is the last math requirement for a CS degree at my college biggrin.png
 
ANYWAY, question: Would dropping college for a full time job in the industry of my dreams be a terrible life decision?



#5045045 Parsing Commands

Posted by tedsta on 20 March 2013 - 04:49 PM

Well, for your small amount of commands that looks good to me. If you wanted to get semi-fancy, you could have an array of pointers to functions, where the functions executed the appropriate command. Then, your CommandMode would be the index of the function in your array. The functions would take an int for the number of args submitted and an array of strings for the actual args. Just an idea smile.png

 

Edit:

Even better, get rid of the CommandMode value and use std::map to map command names to pointers to functions.




#5045005 nill

Posted by tedsta on 20 March 2013 - 03:09 PM




PARTNERS