Results 1 to 8 of 8

Thread: A card game and ooh-err....

  1. #1

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I think I would use a bunch of types and arrays rather than the recordset, maybe I am totally wrong on that because I suck in DB, but I never had to use a recordset in any small game.
    Sanity is a full time job

    Puh das war harter Stoff!

  2. #2
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774
    Originally posted by /\/\isanThr0p
    I think I would use a bunch of types and arrays rather than the recordset, maybe I am totally wrong on that because I suck in DB, but I never had to use a recordset in any small game.
    I intend to use plenty of types and some fairly heavy 3+ dimensional arrays. And CLASSes as well but only if I can't think of another way.

    I'm fairly happy with my DB skill (I fairly rock!) and record sets are about the most secure file format short of drilling the whole dam lot into the windows regestery (not a good idea) or incripting it (not an easy option).

    What I don't want is players editing the packs in something like notepad and thus cheating. I also don't want all and sundry currupting the ballence of card types that I have invented - by makeing, for example, an unbeatable civilian Non-elimental (about the weakest card available).

    The record set disign SHOULD mean that data lives in the files not hogging stacks of memory. If one player wants say 20 add on packs with about 50 to 100 cards in it that's a hell of a lot of data for one PC to remember.

    ON THE OTHER HAND if you can sugest a way to me that allows 5 booleans, 6 strings, 2 integers and two varent switches per card (I have currently defined around 200) then please tell me about it. The simpler the system the less prone to pointless untraceable errors it is.

    I also hate passing variables here and there and back, I grew up on spread sheets and am rather fond of look-ups.

    Your view is highly apreaciated.

    BTW if you would do me a massive favour: I have yet to actually use a user type in VB what is the correct sintax for diclaring and addressing one? I could probably look it up but it seems more fun to read it here.

    thanx for the thought - Matt (the long winded) man in the hat.
    ?
    'What's this bit for anyway?
    For Jono

  3. #3

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well I think you really know what you are doing. Good way to start of, I should do that from time to time...

    well a type is really easy
    just go like

    Type MyCard
    Bol1 as Boolean
    Bol2 as Boolean
    Name as String
    ...
    End Type

    than you declare an array most likely
    dim Cards(0 to Differentcards) as MyCard
    than you could use another array for the users Deck like
    dim Deck(0 to howmaycards_a_user_can_have) as Byte
    than you can just a number specifying which card the user has...

    I hope that was any understandable. This code only works if the cards can not be manipulated, otherwise you would need to actually store the whole type thing for every card the user has not just for every card available.

    One thing with those swiches you have... as far as I got you there you just want to specify if there is something special available that would be stored in a string. Why don't you just store it in the string if there is something special and if not leave the string empty and save those booleans.


    well I guess after reading this you will have a bunch of new questions, I know it is not quite clear and I am not sure if I understood all of you concept right, just tell me, so I can modify my answer ....
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774

    Lightbulb

    I've had a re-think of the varients partly because of this discussion.

    They are only to indicate Eliment and shape.

    So why don't I store those as a type

    Code:
    Type switch
      Eliment as integer   'where 1=water, 2=rock etc
      Shape as integer     'where 1=monster, 2=civilian etc
    End type
    which should tidy things up a bit. in the game at any rate.

    One thought tho' - each user will have 25 cards to start with but could gain an unspecified number.

    My current plan is a card selector which will act as part of a function to select the card from say BobSmithCardList and return the location to the procedure asking for a card.

    one question: I have my type what is the correct way to address it?

    Your answer was very clear by the way - thanx

    yadda, yadda, yadda... I'd best ShutUp!
    ?
    'What's this bit for anyway?
    For Jono

  5. #5

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    what do you mean with adressing a type?
    if you have the following:
    type MyCard
    shape as integer
    Element as integer
    end type
    dim ThisCard as MyCard

    you can go like

    ThisCard.Shape = 1
    Sanity is a full time job

    Puh das war harter Stoff!

  6. #6
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774
    Thanx I knew it had to be something like that.

    Now all I've ot to do is finalise the data to be used and I'm home and dry



    -yeah right what's the betting 50million things don't work properly.
    ?
    'What's this bit for anyway?
    For Jono

  7. #7

    Thread Starter
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    cheer up!
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8
    Fanatic Member Matt_T_hat's Avatar
    Join Date
    Dec 2001
    Location
    '76 Male Body Evil-Errors: 666
    Posts
    774
    Not that I'm bitter but I have to write two entirely new programms to run accross multiservers deal with HTML pages and intranet servers and deal with user rights - I want to make games

    SCREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEM!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width