You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#51
Re: Casino game for VB
Posted on: 2/26 18:45
PVB Elite
Joined 2008/4/26
USA
933 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
How does this look?

Attach file:



png  casino-0037.png (8.88 KB)
768_5c757b28cb470.png 384X224 px
Top

#52
Re: Casino game for VB
Posted on: 3/2 22:22
VUE(xpert)
Joined 2007/10/27
Sweden
417 Posts
ContributorLong Time User (11 Years) 40+ Game Ratings
Looks nice
A shame it only has 4 games but never the less good job man

Now put the rom in here so hopefully it can be added to the main page as an another finished games by you :D

Can`t wait to see your next project
Top

#53
Re: Casino game for VB
Posted on: 3/3 16:09
VB Gamer
Joined 2017/6/24
USA
47 Posts
Long Time User (2 Years)
Hopefully a CIB option is in the works with Tusker =). I would definitely want a copy.
Top

#54
Re: Casino game for VB
Posted on: 3/3 20:31
PVB Elite
Joined 2008/4/26
USA
933 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
First I need a random number generator that returns a number between 1-52 in C. I'm getting tons of 2-pairs. Googling turned up nothing.
Top

#55
Re: Casino game for VB
Posted on: 3/4 2:55
PVB Elite
Joined 2008/4/26
USA
933 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
I poked around modlibgccvb.h and found this:

int randseed
()
/* When run at startup gets a random number based on the changing CTA */
{
    
int random 1;
    
int rand;
    
int prevnum 0;
    
int count 1;
    
    while (
count 30000)    //repeat through many times to make more random and to allow the CTA value to change multiple times
    
{
        
rand = (*(BYTE*)(0x0005F830));    //CTA
        
if (random == 0)        //prevent % by zero
            
random 1;
            
        
random += ((rand*count) + (count%random));    //just randomly doing stuff to the number
    
        
if (rand == prevnum)        //if the CTA value doesnt change then count up
            
count++;
        else
            
count 0;        //if the number does change then restart the counter
        
prevnum rand;            //keep track of the last number
    
}
    return 
random;        //returns the random seed
}

int randnum(int seedint randnums)
/* Returns a random number in the requested range from the random seed */
{
    return (
seed%randnums);    //returns the random number
}

Can I use this to get a "random" number between 1-52? If so, how?
Top

#56
Re: Casino game for VB
Posted on: 3/5 20:17
VUE(xpert)
Joined 2007/10/27
Sweden
417 Posts
ContributorLong Time User (11 Years) 40+ Game Ratings
Try :)
Top

#57
Re: Casino game for VB
Posted on: 3/5 22:40
PVB Elite
Joined 2008/4/26
USA
933 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
I would, but I don't know how.
Top

#58
Re: Casino game for VB
Posted on: 4/1 12:33
PVB Elite
Joined 2008/4/26
USA
933 Posts
CoderContributorTop10 PosterHOTY09 3rdLong Time User (11 Years) PVBCC 2010 EntryPVBCC 2013 Entry
Can someone please help me with how to use this?
Top

#59
Re: Casino game for VB
Posted on: 4/2 1:00
VUE(xpert)
Joined 2007/10/27
Sweden
417 Posts
ContributorLong Time User (11 Years) 40+ Game Ratings
send pm to vb game makers
Top

 Top   Previous Topic   Next Topic


Register To Post