Jump to content
  • Advertisement

GeraintSpackman

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

178 Neutral

About GeraintSpackman

  • Rank
    Newbie
  1. GeraintSpackman

    mysql database

      That's why you use a MySQL database. I'm not sure why you're looping through the entire characther_item database anyway?   Joining tables are actually the how relational databases are implemented. Again I recommend reading up on the subject. They are the efficient method of associating tables together when using a database.   Example Scenario   We have a Character. We know his unique ID. We perform a SELECT query. At no point do you have to iterate through the character_item table?
  2. GeraintSpackman

    mysql database

    You can easily have multiple amounts of the same item. CHARACTER_ITEMS { ID, CID, IID, Amount }   Then you merely modify the Amount value to increase or decrease the number of items a character has.   The alternative is you store the list of items as comma separated values in the Character Table. However this is highly inefficient and will cause repetition of data, which is what relational databases are designed to eliminate.   I don't really see why you're against using a joining table, could you explain your reasons?
  3. GeraintSpackman

    mysql database

    I think you're looking for something along the lines of:   Character <- Character-Item -> Item   Each character has a unique ID. Each Item has a unique ID.   Each time a character "obtains" an item you add a record to the Character-Item table which contains both the unique ID of the character that "obtained" the item and the unique ID of the item that was "obtained".   Assuming you used the design that Sollum suggested (which is a very effective one) such that your tables are defined as:           That way if you wanted to get what items the character has you would perform a SELECT query such as:   SELECT IID FROM CHARACTER_ITEMS WHERE CID LIKE '0'   Which will give you a list of unique IDs for items that a character with the unique ID of 0.   I recommend reading up on RDBM as Sollum suggested if this isn't clear to you: Fairly decent article explaining database relationships on TechRepublic: Relational Databases A good article from nettuts+ explaining database relationships (slightly more beginner friendly): Database Relationships   If you still need help I wouldn't mind lending a hand if I have some free time so feel free to pop a PM my way.
  4. Willingness to learn is one of the best skills you can have in any subject matter in my opinion. Java How much of Java have you learnt? If you have just started programming then I highly recommend using an Integrated Development Environment rather than attempt to use command line compilers. I personally speaking from experience recommend Eclipse for Java Developers. Alternatively you can also consider Netbeans. If you choose Eclipse here is a tutorial to get you started. If you really want to know how to compile java code manually through command line then look here. Khatharr pretty much hit the nail with graphics/model/audio resources and at your stage you don't really have to worry about it farther from being able to make/find placeholder graphics. C++ So very true. Although funnily enough that is the first language I learnt. From personal experience I highly recommend you stick with Java first until you are competent at it before thinking about switching. (Get to the point where you know about object oriented concepts such as inheritance, polymorphism, etc.) If you are crazy (like I was) and for some reason want to start with C++ then I recommend the following sites. cplusplus.com cprogramming.com In terms of software there is a plugin for Eclipse which allows you to use it for C++ as well (A quick google search should give you a tutorial on how to setup eclipse for C++) or you can use Visual C++ Express. Hope that information helps and good luck.
  5. GeraintSpackman

    Getting started but how to make a prototype of my game

    I used to have the same problem of not knowing where to start after laying down the fundamental concepts of a game. The best way to prototype a game is to take an existing game engine and build your prototype from there. This minimizes the amount of boiler plate code you have to write and allows you to focus on creating the game mechanics. They also often contain sample games and models which you can utilize in the prototype of your game. From the description of your game idea I would personally recommend using the Unity game engine. Other engines you could look at: UDK jMonkeyEngine You can find a fairly comprehensive list on Wikipedia here. You haven't stated your programming experience so I assumed you are proficient in that area. If you're just getting started at that then I would either recommend learning one first or using a high-level scripted game engine such as GameMaker (2D game engine) and create a 2D prototype whilst learning to program. I only have a little experience with 3D model animation (Hopefully someone with more experience can help you in a reply) but if I am not wrong once you rig an animation using skeletal animation you can apply it to models that have similar skeletons (such as humanoids) with a bit of modification. Hope that helps and good luck with your project.
  6. GeraintSpackman

    Best engine for Diablo style game?

    Both Torchlight and Torchlight II use the OGRE 3D Graphics Engine I believe, however this is of course only a graphics engine. Any particular specific requirements for your engine? Personally I'd recommend the Unity engine which uses C# for scripting. (The transition shouldn't be difficult if you already know C and Java.) If you'd like to stick to using Java then there's the jMonkeyEngine. Hope that helps.
  • 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!