Release

Mario Solitaire card game

4

was8bit 2023-10-14 18:16 (Edited)

Standard Solitaire rules with additional things...

Powerups: tap to activate (square on upper-right) Feather: Double tap any hidden card Coin: play a card to under ANY other card .... powerups can mix up the board, be careful

Scroll up/down by pushing cursor towards top/bottom of screen

GAME SETTINGS (top of code)

'1=EASY, 2=AVERAGE, 3=HARD, 4=SUPER HARD DIFFICULTY=3 POWERUPS=2 '0=OFF PLAY_MUSIC=1 '1=SHORT, 2, 3, 4=LONG PLAY_WAIT=3

Sometimes issues happen when moving a stack of cards ...(from touch point down)

  1. the ENTIRE stack must follow rules or won't move
  2. if moved into a space not big enough, it will move what it can

If you have progressed where a win is inevitable, the background will show "WIN"

Please check out a great remix of this game....
https://lowresnx.inutilis.com/topic.php?id=3187#post-22307

Mario Cards 0.16.nx | Open in app
2023-10-26 19:59
Mario Cards 0.15.nx | Open in app
2023-10-26 11:41
Mario Cards 0.14.nx | Open in app
2023-10-26 04:13
Mario Cards 0.14.nx | Open in app
2023-10-26 04:05

Pablo 2023-10-17 01:13

Cool! It reminds me some Yoshi games.


was8bit 2023-10-17 02:06

Thanky :) each new game randomly selects two new sets of images so it should make it more fun to play :)

I also think the touch controls will be more intuitive :)


was8bit 2023-10-17 04:44

I always have issues with scrolling math... ive been too tired to fix it... will hopefully get a day to work on it when im not so tired...


was8bit 2023-10-18 16:41

Scrolling + moving tiles works now.... took some careful experimenting to get the math right .... no limiting rules yet so you are currently free to move any card onto any other space not occupied with a card ;)

Please test to verify i dont have any bugs


was8bit 2023-10-18 16:44

I do have one issue with my touch-n-drag... currently you can touch an empty space but then pick up a piece as you move your swipe... you are supposed to stay empty if you started empty..

.. next update will fix that :)


GAMELEGEND 2023-10-18 16:53 (Edited)

I love the white and black things on the sides of the screen, so you know that you are scrolling. I see so many programs that don't have things that let you know that you are scrolling, and sometimes I can't tell if I am scrolling or not.


was8bit 2023-10-18 18:02 (Edited)

Thanky :)

I added something so I could see just how far I went wtihout relying on TRACE...I was using TRACE to fix my scrolling map, and actually too many traces variables can become confusing and unhelpful, so I added these to help.... I started out with smal indicators, and kept expanding them until they functioned rather well if you watch them to let you know where you are :)

I make them decoratively balanced because my mathematical brain demands it be balanced ;)


was8bit 2023-10-19 16:31

Touch-n-drag issues resolved.. had 3 issues to fix...

... please test latest update to see if there is anything else i may have missed :)


was8bit 2023-10-19 16:32

... also, the sound effect for drawing new cards makes me laugh, so i am keeping it ;)


was8bit 2023-10-19 16:34

Errp... found another issue, old "UP" marker reappears with scrolling... should be an easy fix but will have to fix later...


was8bit 2023-10-22 05:20

So here is the core code i am now using...

SUB DOMAP
SPRITE OFF
FOR X=0 TO 9
FOR IY=0 TO 7
Y=IY+YMAP


' DO FLOOR
BG 1
PAL PFMAP(X,Y)
CELL X,IY,CFMAP(X,Y)
BG 0

' DO MARKERS
IF MMAP(X,Y)=1 THEN SPRITE 0,X*16,IY*16,32
IF MMAP(X,Y)=2 THEN SPRITE 1,X*16,IY*16,192

' DO CARDS
PAL 0
IF HMAP(X,Y)=0 THEN
CELL X,IY,CCARD(CMAP(X,Y))
ELSE
CELL X,IY,42
END IF


NEXT IY
NEXT X
END SUB


was8bit 2023-10-22 05:22

Y is used to look up data in any MAP
IY is used to actually place the results to the visual screen

... no trying to adjust for SCROLL command, which for some reason my poor tired brain just cannot handle it...


was8bit 2023-10-22 05:50

Oh, wow, this new approach seems super easy... hopefully it stays easy ;)


was8bit 2023-10-22 05:54

The advantage to this approach is that since the scrolling is virtual, i could extend the playing field as much as i wanted... say 100 spaces down...

I am sticking to the original size though ...


was8bit 2023-10-22 17:55

My new approach is working great :) four writes in about 2 hours of work, and the results seem flawless ... no hacking to get the code to work right, the code works correctly instantly :D


was8bit 2023-10-24 06:04 (Edited)

I think i only need 3 things to do

- proper stacking rules - done...
- move stacks
- detect game won

:)


was8bit 2023-10-24 16:04

Game is now actually playable :)

... after i get stacks moveable i will probably add another layer to the starting set up


was8bit 2023-10-24 22:00

It is not easy copying individual 2x2 images from ROM to character file!


was8bit 2023-10-26 11:48

Game should be finished and ready... if anyone finds any bugs, let me know :)


Pablo 2023-10-26 18:39 (Edited)

I completed the game in about 20 minutes. I like the sounds, the flowers and stars.


Also, i found some things:

https://i.imgur.com/dtCueDz.gif

https://i.imgur.com/SE1Ok4U.gif


was8bit 2023-10-26 19:58

Thanky :)

And thanks for the debug tips... i believe i have the 1st one fixed... looking into the second one...


was8bit 2023-10-26 20:31

Hmmm... perhaps i fixed both?? ... not sure... but i "think" its fixed... let me know if it happens again ..


was8bit 2023-10-26 21:05

I've been testing this alot and it seems harder than the original... then i realized it has unlimited undo's... i use those ALOT to peek under the turned over cards, then undo if i dont like the card that turns over...

I have an idea of how to add a similar advantage for my game :)


Pablo 2023-10-26 22:41

An undo feature would be cool. Here's another way to trigger the glitch:

https://i.imgur.com/5sonwe5.gif


was8bit 2023-10-27 01:17

... i found another bug.... any card at the top can be played to the bottom of any other card :O


was8bit 2023-10-27 03:18

Well, i will let you see what i have already, even with the bugs... instead of UNDO, i have added POWER-UPS... a feather and coin... you must TAP them to load them in the power box ... this makes that powerup live...

feather lets you flip any hidden card, tap any hidden card
coin lets you play a single card under any other card disregarding stack rules

dont touch two powerups in a row without using them, youll lose them..


was8bit 2023-10-27 03:21 (Edited)

I have decided to review my code as a whole and may do a light rewrite... its gotten abit hacked together at this stage.... i was "trying" to hack a fix and ended up creating another bug (playing a 1 card to top now doesn't work)...

... so please stand by :)

... many thanks for your continued help :D


Pablo 2023-10-27 19:23

Any time! I like the power-ups.


was8bit 2023-10-27 21:07

Thanky :)

.. the feather powerup for sure simulates how i use the undo in the original game, to get a peek at the hidden cards...

The coin powerup can help get you unstuck should you get stuck... being able to move card that is under a card you need will free up the card you need and let you play it right away without having to "dig it out"..

... also, powerups are part of Mario games, so it fits in here ;)

.... once i rework my code (again) and get ride of bugs, i will look into adding little bits of music riffs from Mario games ... at best it will just be random bits that play when you stop moving things for a short time :)


was8bit 2023-10-28 20:44 (Edited)

Whew..... it at least "seems" to work "ok"... will test it some more later, but i posted it as it seems to be ok...

I reworked my "IF" statements as previously i had gaps and loop holes... hopefully my reworked version works better...


was8bit 2023-10-29 02:46

Ok, so v03 represents lots of work eliminating bugs...

It should be ready to double check :)


was8bit 2023-10-29 02:52 (Edited)

... i need to re-add some sound effects... my first goal was no bugs for gameplay ;)


was8bit 2023-10-29 17:16

Sound effects and bugs should be all done, unless you find something ;)


was8bit 2023-10-29 22:04

If you wait awhile without touching anything, it plays little melodies ;)


was8bit 2023-10-29 22:46

... i am going add an "auto-playout" like the original game does once the board is winnable...


was8bit 2023-10-30 01:45 (Edited)

Well, i'm sure there are a few bugs i've missed, but other than that i've got this finished :)

Please don't hesitate to share any bugs, etc :)


Pablo 2023-11-02 15:34

I played it yesterday. I like this new version, the power-ups are very fun, and the melodies are cute.

Also, it inspired me to make some pixels: https://i.imgur.com/LscXBoR.png


was8bit 2023-11-02 16:17 (Edited)

Thanky :):):)

... i luv your graphics :)

I would be happy if you wanted to post a remix of this game with your new set of graphics...

Let me know, as it will have to be done carefully depending on what you wanted to do (i.e. only use one set vs using all side set files and also if you need to be more flexible for the palette choices)


was8bit 2023-11-02 17:21 (Edited)

... i am currently working on v8 which will allow for expanded palettes

Currently the cards only use pal 0 ... i have redid the code so 2 more palattes have been freed up... so am currently working on getting those usable..

BUT, please look at the test cards in the main graphics file... you will need to create 2 color sets (the available palettes will be pal#4 and pal#5)..

follow the Red Green format, so you will be able to use palette#4 for the currently red cards, and use palette#5 for the green cards.. chose colors that make the cards recognizably different :)

These palettes are currently used for the cursor colors, but v8 will have those palettes freed up ;)


was8bit 2023-11-02 18:10

Ok, v8 is up and running :)

So, now it is set up for running customized palette colors #4 and #5... i have only used 2 shades per palette, but you can use all 3 colors for each palette..

... the other palettes are reserved for the game..

... it you want only one set of cards, i can tell you how to disable loading random card sets, and just edit the included test set

... if you want to use some or all of the extra card sets, you will need to to edit the extra card set files...

That is, "IF" you are interested in creating new graphics ;)


was8bit 2023-11-02 18:14 (Edited)

IF you wanted to post a remix version with your graphics, you should also know that the card backs, the feather, and the coin, all use palette#0, so you could edit those colors if you want... you might have to edit those graphics as well as all 3 graphics will share the same set of 3 colors...

the easiest approach would be to use one color per item and redraw each graphic to use only one of those colors...


was8bit 2023-11-02 18:21

(I think later on i will tweek my cursor images)


Pablo 2023-11-03 11:53 (Edited)

Thanks, will do! I initially made it for the Assets section. Just need to find some time to complete it.

Thanks for the help and expanding the palettes!


was8bit 2023-11-03 12:16

Thanks for adding cool graphics :)

So, to make sure your remix version always uses the two palettes, change this setting....

NEW_GAME:
'
XTRA_PAL=RND(1)
'

To....

NEW_GAME:
'
XTRA_PAL=1
'


Pablo 2023-11-04 14:28

Done!

I found two minor issues: We can move a #1 card to the draw zone. Fipping a power-up card (with the feather), automatically grabs that power-up.


was8bit 2023-11-04 15:28

Thanks... let me take a look into it ...


was8bit 2023-11-04 15:48

Ok, so i was able to reproduce both issues... thanks so much for finding them :)

I should have a fix within 24 hours... hold off on updates to your remix version and i will hopefully be able post a fix for both by then....


was8bit 2023-11-04 16:40 (Edited)

... you can also play a #1 card on the POW space..
... also you can play a #12 card to the extreme left or right :/

Add the code as shown to fix this one in your remix code...

IF IPOWER=1 THEN CALL POW1

IF XSTART=XEND AND YSTART=YEND THEN IDRAG=0

'ADD THIS
IF XEND=0 OR XEND=9 THEN IDRAG=0


IF IDRAG=1 THEN


was8bit 2023-11-04 16:43 (Edited)

This fix fixes all the issues we found with the #1 and #12 cards ;)

...will fix the second issue (feather issue) later


was8bit 2023-11-04 16:51

... Actually, feather fix was easy...

'CHECK TO USE POWERUP #2
IF IPOWER=2 AND HMAP(XEND,YEND)=1 AND XEND=XSTART AND YEND=YSTART THEN
CMAP(9,1)=0
HMAP(XEND,YEND)=0
IDRAG=0
IPOWER=0
CALL BLING(1)

'ADD THIS
YEND=30

END IF


was8bit 2023-11-04 16:52

... thanks again for sharing the bugs :):):)


Pablo 2023-11-04 21:07

Thanks! That was fast, updated the remix too.


was8bit 2023-11-05 02:51

I just got lucky that the fix was easy…

… also in this re-re-worked version I organized it very well and notated each portion, so it was easier to find where I needed to be in the code ;)


Log in to reply.