Author Topic: [CSE] [xlibc] Blackjack  (Read 6323 times)

0 Members and 1 Guest are viewing this topic.

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
[CSE] [xlibc] Blackjack
« on: September 23, 2014, 05:52:45 pm »
Something I wanted to throw together for some time now,a blackjack game for the CSE in xlibc.
I couldn't get my sprite appvar due to having a mac etc etc. So I did it the long way, I installed parallels, booted a windows 7 ultimate I had lying around, downloaded tokensIDE and boom, had myself a nice appvar.
I threw everything together last night, literally because I was excited. It was pretty fun.

It's a card game, each player takes a turn "hitting" drawing a card.
The object of the game is to get as close to 21 points but not going over it. Each round points starts over. Aces are either 11, or 1 point, tens, jacks, queens, and kings are all worth 10 points, and the rest are worth their numerical value.

Everything done:
-Spriting; Cards, Suites, Custom font for cards
-Main game loop; Can hit, pass, and quit for now
-AI; play against the computer to hit the jackpot
-Betting; bet at $5 a hit and $5 every bet that you want after that
-Win, lose and draw

Need to do:
-menu

Not sure what else to add, what do you all think a blackjack game should contain?

It's pulling together really nicely.





« Last Edit: September 23, 2014, 05:54:29 pm by zeldaking »

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: [CSE] [xlibc] Blackjack
« Reply #1 on: September 23, 2014, 06:15:10 pm »
This looks pretty great actually. I like the layout especially and it's pretty old school. I hope it gets finished so I can play :)


How large is it so far with the sprites and stuff?

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
Re: [CSE] [xlibc] Blackjack
« Reply #2 on: September 23, 2014, 06:39:46 pm »
So far it is 9 different programs, but will be condensed to one or two; putting it at 3517, mainly most of that is from calling real(4 for my sprites over and over.
So 3517 bytes, and the the sprite appvar is sitting at 8214 bytes, however that is always archived.

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
Re: [CSE] [xlibc] Blackjack
« Reply #3 on: September 25, 2014, 02:10:33 am »
Update; finished and uploaded for download. Check it out over here

http://www.cemetech.net/programs/index.php?mode=file&id=1165

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: [CSE] [xlibc] Blackjack
« Reply #4 on: September 25, 2014, 05:33:45 pm »
Awesome to hear. :D I was looking into featuring this on front page news once I try it (assuming it's good of course :P) but since I am retiring from news editor I was hoping the game would be out before my next article. You should post about your other game too if you have some time :)

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
Re: [CSE] [xlibc] Blackjack
« Reply #5 on: September 25, 2014, 05:53:21 pm »
Sounds good! I've become really interested in xlibc again, and am trying to get a ton of projects done really fast, still quality tho!
My project list:
-Blackjack [Done]
-Yahtzee [working on]
-Mancala
-Poker
-Stratego
-Backgammon
-Can't Stop
So yeah, hopefully I am kept interested.

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: [CSE] [xlibc] Blackjack
« Reply #6 on: September 25, 2014, 08:20:53 pm »
Nice, good luck finishing those. I haven't done much xLIBC stuff since I got stuck with tilemaps a while ago and I was considering doing some HP Prime stuff again but I'm often too tired to code >.<

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: [CSE] [xlibc] Blackjack
« Reply #7 on: September 28, 2014, 04:56:58 pm »
By the way I tried this game and your Minesweeper clone and I was wondering if colors are supposed to look like this in jsTIfied and WabbitEmu?



For example, shouldn't the cards be white, not pink? The Minesweeper game seems to have some green-ish hue, but I don't know if it's because there's no gray color available for those color tones and if it's just that your camera made it look more gray?

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
Re: [CSE] [xlibc] Blackjack
« Reply #8 on: September 28, 2014, 05:15:05 pm »
Yeah, I've been trying out my games on the emulators and they all seem a tad different then on-calc. The colorations look way better on the calc then using the emulators. I'm not sure why, but it is what it is.

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: [CSE] [xlibc] Blackjack
« Reply #9 on: September 28, 2014, 05:28:19 pm »
Yeah I think it's because the screen is poor quality so it looks closer to blue/gray at low brightness. My Supersonic Ball title demo looked blue on calc and purple (as intended) on the computer. As an advice, the white color is 255.

Offline zeldaking

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 197
  • Rating: +15/-0
    • View Profile
Re: [CSE] [xlibc] Blackjack
« Reply #10 on: September 28, 2014, 05:33:20 pm »
Hmm, it looks a bunch better on the real calc. So I'm not sure how to fix it so it looks good on both.
Also in that minesweeper part of your gif, it shows the two flags above the text as grayish blue.. Yeah that is a screen capture image error..