Author Topic: Side Project: Super Slots  (Read 8325 times)

0 Members and 1 Guest are viewing this topic.

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Side Project: Super Slots
« on: February 17, 2009, 06:56:47 pm »
While I'm learning all the ins and outs of Celtic III, I thought I would make a little slots program.

Here's what I have so far:


I need more sprites (look here). I also need to get figure out why real(9 doesn't work..

Also, does anybody know if I can randomize a list. I want it to keep the same numbers, just different order. I also need to figure out a way to make the 3 different wheels go at different speeds, but I'll work on that later.
« Last Edit: February 17, 2009, 07:00:38 pm by trevmeister66 »
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Super Slots
« Reply #1 on: February 17, 2009, 10:02:11 pm »
interesting, I assume you display two pictures, one with white in front of a black pic as kind of masking in front of the slot items, right? My suggestion would be to make them scroll at 2 or 4 pixels everytime, so it's not too easy to stop them at the right time

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #2 on: February 17, 2009, 11:22:44 pm »
interesting, I assume you display two pictures, one with white in front of a black pic as kind of masking in front of the slot items, right? My suggestion would be to make them scroll at 2 or 4 pixels everytime, so it's not too easy to stop them at the right time
Yeah I'm just trying to get them to work right now, then I'll change the speeds. Actually I have it working a little differently than that.

First, I load the 3 "wheels" at the top of the screen. Then I scroll it down, and save the pic (none of this is displayed). Then I create a white box above and below the wheel picture to get rid of all of the excess stuff. Then I just OR the main pic on top of it all. To do it again I xOR the main pic so it gets rid of it, then start over. Kind of complicated, but it seemed the best way to do it. Right now it moves all 3 wheels at the same time because I'm saving them all to the same pic, but I'm going to start saving them to different pics and scrolling them so I can get varying speeds.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

metagross111

  • Guest
Re: Super Slots
« Reply #3 on: February 17, 2009, 11:41:26 pm »
it is sort of complicated. good luck with it.

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #4 on: February 18, 2009, 12:02:52 am »
Lol yeah, but it works. If I can't get the real(9 function to work with Celtic III, I'm going to have to switch to xLIB :/
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

metagross111

  • Guest
Re: Super Slots
« Reply #5 on: February 18, 2009, 12:33:57 am »
hmm, well, that is odd. It sounds like you have a logic error. If you don't think so, substitute the TOGGLEPIC command, "identity(1"

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #6 on: February 18, 2009, 12:39:49 am »
hmm, well, that is odd. It sounds like you have a logic error. If you don't think so, substitute the TOGGLEPIC command, "identity(1"
Hmm alright I'll try giving that a shot.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #7 on: February 18, 2009, 01:34:18 am »
EDIT: I removed the code..it didn't look good
You also need Pic9, which is the main pic, so I'll upload it really quick

<a href=http://www.filedropper.com/superslots>Link for program</a>
« Last Edit: February 18, 2009, 01:42:47 am by trevmeister66 »
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Re: Super Slots
« Reply #8 on: February 18, 2009, 11:57:54 pm »
I would do as kevin said and increase the scroll speed, but also slots have the reals stop at different intervals (ie, the first one stops then 2 spins later the second one etc..)

metagross111

  • Guest
Re: Super Slots
« Reply #9 on: February 19, 2009, 12:09:40 am »
it will be slightly complicated, yes....

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #10 on: February 19, 2009, 12:11:11 am »
I would do as kevin said and increase the scroll speed, but also slots have the reals stop at different intervals (ie, the first one stops then 2 spins later the second one etc..)
Yeah that's what I want it to do, 1st stops, then 2nd and finally 3rd. I'm not gonna have user stopping, but I have to figure out a way to get the to scroll at different speeds.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

metagross111

  • Guest
Re: Super Slots
« Reply #11 on: February 19, 2009, 12:16:11 am »
hmm......

this sounds like a really fun program i want to work on! but i'm too busy :(

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Super Slots
« Reply #12 on: February 19, 2009, 12:27:18 am »
heh well once you finish pokemon I'll give you the source and you can have at it.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

metagross111

  • Guest
Re: Super Slots
« Reply #13 on: February 19, 2009, 12:42:53 am »
"finish pokemon"

you, sir, are a riot.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Super Slots
« Reply #14 on: February 19, 2009, 12:59:43 am »
I do hope you finish :P

Else the Pokemon thread is gonna turn like the Zelda thread on Revsoft. I think posting Zelda on Digg and popular gamer blogs finally didn't helped much XD