3d tower defense? ;o

Hey,





I have created some models for a game of mine but now I want to implement the gameplay. First, I’m gonna just use cubes to rough out what I need done.



My game is going to be a 3d tower defense type thing where you can build turrets, walls, etc. Things I want done right now are:



spawn a random amount of enemies and have them slowly move toward the player

have the sentry rotate in the direction of whichever entity comes into range, shoot at it until the entity is dead, and repeat.



Can someone give some theory on how to implement this? ;o

0

You’d have Spatials for the enemies and wall parts etc, use picking to check for collisions with the terrain and other objects, use simple location info to determine where to shoot etc etc… I suggest you do the tutorials and read the primers in the wiki (basically work your way through the first part of this page). After doing that, most of the questions on how to do that should be easy to solve and you will also have learned a bag of tricks that will definitely come handy in the later development stages of your game.

The annoying thing about jmonkey is that the docs are so bad. I can’t read the docs to figure anything out. :open_mouth:

Is there a jmopnkey doc with search features atleast?

Yes, press F1 in jMP or use the search box in the upper right of this site. The idea about the docs is that you read them, not search the solution for your problem in them. If you really read it from top to bottom you can implement your game right away instead of hopelessly trying to combine code snippets from the tutorials.

normen what the hell are you talking about man? ;o



Anyways…I found some html jMonkey docs that come up in my browser, it gives a full list of jmonkey classes but it still seems like the descriptions of the classes are incomplete.



And a code example calls for RigidBodyClass yet this is not in the docs…wth. ;o

Well, for free is for free, you are welcome to contribute docs, wiki pages and code :stuck_out_tongue:

Idiot…really…

normen said:
Well, for free is for free, you are welcome to contribute docs, wiki pages and code :P


I don't see why the documentation has to be so horrible. I looked up a method called addControl() from an example and the description was "This method adds a control". Well OBVIOUSLY.

How the hell are we supposed to use the game engine with docs that bad?

Anyways...time to give Unity a try.

If you read the tutorials and implement what they tell you, you’ll find out easily enough what that means. Control is just something that is controlling the node you add it too. Try the collision tutorial, at some point a playercharacter gets to control stuff, it will become clear then. I must say, the docs are often a bit hard to find and to understand but the logic of the engine is crystal clear, just take some time to work into it.



Tutorials are here



Seeing I tackled loads of problems in a matter of minutes for myself I guess I should put up some tuts some day for this, the engine is way too great to be left alone because of such details.

dudio said:
Anyways...time to give Unity a try.

Yes, please, bother them, at least you have to pay them to shit on their work.
3 Likes
dudio said:
The annoying thing about jmonkey is that the docs are so bad. I can't read the docs to figure anything out. :O


Lol! No seriously.. jME has some of the best doc's out there imo..

Besides thanks for reminding me of one of the original game concepts I'd like to make one day. Maybe after some of the models I'd like to contribute to MonkeyZone, I'll see if anyone around would like to help me make decent TowerDefence lan type game.. :)
dudio said:
Anyways...time to give Unity a try.

oh NOOoOoooooOooOoOOoo!!!!
We are so sad to loose you as a user ...
Dang, those Unity guys are lucky....
1 Like
dudio said:
I don't see why the documentation has to be so horrible. I looked up a method called addControl() from an example and the description was "This method adds a control". Well OBVIOUSLY.

How the hell are we supposed to use the game engine with docs that bad?


What exactly did you want the doc to say!? The method adds a control! It's not supposed to explain wtf is a control. Do your homework, READ the doc, don't just LOOK at them. Do tests, follow tutorials.

I'm all for great documentation, and everyone here knows me as the docs complainer, but you get the palm for being a jackass. Put your brain into gears and experiment, look and read at the source files.

You're a disgrace to all programmers.

Why is everyone so hypersensitive here? :o

dudio said:
Why is everyone so hypersensitive here? :o

Because this is where the people live that did all this. Where is your free resource I can complain about? We are private people working hard in our free time to code and do the documentation and you don't even appreciate that. If its too hard for your reading through the documentation and doing the tutorials then you should really not complain. And again, if you think its all not enough you are welcome to contribute new, fantastic tutorials that people like you don't complain about :roll:

1 Like

Hehe

My friend, I am no troll. ;o



But as I have been reading through the docs and learning more about it, I see it is a pretty good engine. There’s just one small problem, I think there is a memory leak in the Jmonkey IDE. O_O



If I click run main project 5 or so times and run the game, it drops down to 9 fps until I restart the IDE.



no bs. ;o

Weird. I wonder what you are doing that I’m not. I manage to run my project in excess of hundreds of time between jMP restarts without any noticeable issues.



Are the previous runs truly exiting before you run the next?