• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
cooljava50544

Is it possible that I just simply lack the required intelligence?

12 posts in this topic

I've been trying to use JMonkey Engine 3.0 to develop a simple tower defense game. I am only using cubes, and you select on a tower and press c to give it ammo. The bullets are just simple lines. There are so many problems in my code. I've been studying a java for about 8 months, and I am starting to feel discouraged. I'm actually following an exercise from my book, and I am confused as heck. The reason why I say that is because I can't seem to figure out how to debug my code. There's stupid stuff like when the cube-shaped enemy reaches the base, and it's z position is less than zero it will disappear, but it doesn't. I've been stuck on this for days.

 

Could I get any friendly and honest advice? Thanks biggrin.png

1

Share this post


Link to post
Share on other sites

 

I've been trying to use JMonkey Engine 3.0 to develop a simple tower defense game. I am only using cubes, and you select on a tower and press c to give it ammo. The bullets are just simple lines. There are so many problems in my code. I've been studying a java for about 8 months, and I am starting to feel discouraged. I'm actually following an exercise from my book, and I am confused as heck. The reason why I say that is because I can't seem to figure out how to debug my code. There's stupid stuff like when the cube-shaped enemy reaches the base, and it's z position is less than zero it will disappear, but it doesn't. I've been stuck on this for days.
 
Could I get any friendly and honest advice? Thanks biggrin.png


First of all, no you do not lack the required intelligence, 8 months is no time at all when it comes to programming and there really is no such thing as a "simple tower defense game" (Its not normally the type of game we would recommend for beginners due to the complexity involved).

I would recommend getting familiar with whatever debugger your IDE includes (here is a guide for eclipse: http://www.vogella.com/tutorials/EclipseDebugging/article.html ).

If you still struggle you could post the relevant code here and ask for more specific advice.

 

I believe pretty much everything is screwed up. Should I just post all of my written code? And thanks for making me feel better :d

0

Share this post


Link to post
Share on other sites
Like the above, you need to be able to debug the code, and use break points.
You simply put a break point on the code that checks the position, and when the square is near the correct position you can single step through the code and see what's happening with your variables.
If you have no debugger, then you'll have find out how to use one, because it is the tool you need.
Making you code neat and readable, with decent variable names helps a lot as well.
2

Share this post


Link to post
Share on other sites
Also, when you find mistakes in your code, think if theres anything you can change in the way you code stuff to avoid similar mistakes in the future.
The whole point of many language features and coding practises is to prevention bugs and keep everything simple, so focus on that.
1

Share this post


Link to post
Share on other sites

Everything that everyone has said is so true.

Every good IDE has a debugger built in and as a programmer that debugger is your best friend, so many times I've been struggling with bugs at work in code that *looks* or "feels" right until you are stepping through and seeing that blasted int of 3 should actually be a float of 3.12 and that's throwing this calculation off.  Once you have learnt how to use a debugger you will hate every moment that you have to test or replicate an issue/problem without one. (E.G. deploying to customers' sites where a debugger isn't available)

Practice - another huge thing. I've been coding/programming (PHP to start, Java, C#, C++ (a little)) for 11 years and even now I look back at code I wrote as little as 6months ago and think what the hell was I thinking but at the time that the was the best way *I* knew how but in the time since I've learnt better practices, styles and even better ways to use the language I'm developing in but it takes TIME and PATIENCE to learn.

0

Share this post


Link to post
Share on other sites

I've been studying a java for about 8 months, and I am starting to feel discouraged.


It takes many students 4 years of dedicated study in a university to barely be able to qualify for a decent internship or entry-level job in the games industry.

If learning to program where all that easy, everyone would do it and we'd all be making minimum wage. Learning any skill requires the same process: persevere, practice constantly, and don't be afraid to ask for help when you're stuck. smile.png
2

Share this post


Link to post
Share on other sites
It takes many students 4 years of dedicated study in a university to barely be able to qualify for a decent internship or entry-level job in the games industry.

If learning to program where all that easy, everyone would do it and we'd all be making minimum wage. Learning any skill requires the same process: persevere, practice constantly, and don't be afraid to ask for help when you're stuck. smile.png

 

Yes, that is important too.

 

Speaking from my own expierience, I did an apprenticeship as Programmer before going to study CS. My last year of apprenticeship I spent in a Programming Team, we learned Java in School for a year during the apprenticeship.

 

I literally had no idea about this weird OO thing and Java, until the Boss of the team I did the last year of my apprenticeship in decided to pick a java project for the practical part of my final exams.

I had to understand Java in a week to get a good grade and not fail the exams. Still, the year before I literally sat about 4 hours per week trying to learn Java and couldn't even grasp the concepts of OO smile.png

 

 

So don't underestimate Java. Even though people say its easier than other programming languages... if its your first language (or first OO language), it will take you some time to understand it.

Edited by Gian-Reto
0

Share this post


Link to post
Share on other sites

My personal opinion that it doesn't matter how smart you are to learn something, only that it will affect how long it will take you to learn. If you ask any programmer, they will tell you about a 'click' when they understood how the code was interacting with it self. For some it takes a week, some a month... I have just finished a computing degree, and at the end of the 3rd years some people still didn't understand basic coding principles.

 

There are different ways of learning too, some find books easy to learn from, others prefer to do it them selves (trial and error) and others need a 1 on 1 teaching. maybe try switching your learning methodology if reading books isn't for you. There is a plethora of videos on the internet, The New Boston being a fantastic one for beginners such as yourself (although he is hated by some on the internet, as he tends to teach bad habbits).

 

Good luck!

1

Share this post


Link to post
Share on other sites

 

It takes many students 4 years of dedicated study in a university to barely be able to qualify for a decent internship or entry-level job in the games industry.

If learning to program where all that easy, everyone would do it and we'd all be making minimum wage. Learning any skill requires the same process: persevere, practice constantly, and don't be afraid to ask for help when you're stuck. smile.png

 

Yes, that is important too.

 

Speaking from my own expierience, I did an apprenticeship as Programmer before going to study CS. My last year of apprenticeship I spent in a Programming Team, we learned Java in School for a year during the apprenticeship.

 

I literally had no idea about this weird OO thing and Java, until the Boss of the team I did the last year of my apprenticeship in decided to pick a java project for the practical part of my final exams.

I had to understand Java in a week to get a good grade and not fail the exams. Still, the year before I literally sat about 4 hours per week trying to learn Java and couldn't even grasp the concepts of OO smile.png

 

 

So don't underestimate Java. Even though people say its easier than other programming languages... if its your first language (or first OO language), it will take you some time to understand it.

 

I feel lucky now lol

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0