Thursday, 28 August 2008
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
August 28, 2008, 03:34:10 AM
Username: Password:
Login with username, password and session length

Forgot your password?
Skip-Bo (card game)
DSLua Community
Welcome, Guest. Please login or register.
August 28, 2008, 03:34:10 AM
1717 Posts in 311 Topics by 3602 Members
Latest Member: Newbie3z
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Home-brew/Hacks/Games/Projects  |  Skip-Bo (card game) « previous next »
Pages: [1]
Author Topic: Skip-Bo (card game)  (Read 4230 times)
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« on: December 31, 2006, 01:24:31 AM »

http://www.bio-gaming.com/jeremy/dslua/downloads/skipbo_dslua.zip

readme.txt
Quote
Skip-Bo for DSLua by Jeremysr (jeremy.ruten@gmail.com)
---

DSLua now uses LibFATDragon. Go to http://www.dragonminded.com/?loc=ndsdev/DSOrganize%20FAQ to get the compatability chart for which colour you should use (green, blue, or gray). If none work you can try the gbfs version which is a better choice anyways (if it works on your homebrew device) because you don't need to copy any extra files, just the ds executable.





CF instructions
---

In one of the cf- releases, copy the "skipbo" folder onto your cf card at /dslua/skipbo.

Then copy the Skipbo.nds/.sc.nds/.ds.gba file anywhere on your card and run it.





GBFS instructions
---

In the gbfs release folder copy Skipbo.nds/.sc.nds/.ds.gba to your card and run it.





How to play
---

I'm not going to teach you the game here, just the differences of the real game and playing it on the DS.

To move a card, tap it and then once it's selected, tap where you want to put it.

To end your turn, discard a card.

In this version you can only have 1 card in each discard pile. If you try to put a card on top of a card in the discard pile the card below it will be erased.





The noodles will be replaced later on with either rules or a quit button (we'll need to add a quit function to DSLua).
Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #1 on: December 31, 2006, 08:13:02 AM »

First of all, wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow!

Second of all, wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow!

And finally... nice going dude!

This is probably the biggest DSLua achievement to date! However, a few suggestions:

- There is a quit function... sorta. Enclose your program in a while true do loop and call break when you want to end it.

- As for rules... just use your wordWrap, or if you are pickier, make an image in paint... lol
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
sypherce
Waxing Crescent
**
Posts: 13


Pixels have feeling too :3


WWW
« Reply #2 on: December 31, 2006, 08:57:23 PM »

Can't say much, it's just great :3 Only thing that's bad is, the sprites corrupted the first time trying it (I'm guessing it's just dslua, I'll have to fix it) *RUNS OFF TO FIX IT*
Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #3 on: January 01, 2007, 12:10:29 AM »

First of all, wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow!

Second of all, wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow!

And finally... nice going dude!

This is probably the biggest DSLua achievement to date! However, a few suggestions:

- There is a quit function... sorta. Enclose your program in a while true do loop and call break when you want to end it.

- As for rules... just use your wordWrap, or if you are pickier, make an image in paint... lol

Wow and I wrote 90% of it in one day Tongue

By a quit function I mean a function that returns to the DSLua file browser. And maybe frees everything from memory (code, sprites, sound...). Edit: your example won't work here because "break" will only skip to the end of the loop that the break command is in. (The loop furthest to the left if you indent properly.)

And yes I now realize there is a graphics bug with the CPU's cards. But I guess it doesn't matter since you're not supposed to see the CPU's cards (it's supposed to show the backs of the cards). But it makes it look bad still...

Edit: There also seems to be a random bug where DSLua freezes when you select a card sometimes. This happened in my DSLua keyboard also, when tapping a key sometimes.
« Last Edit: January 01, 2007, 12:52:39 AM by Jeremysr » Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #4 on: January 01, 2007, 10:19:28 AM »

The 'random freeze' you speak of is a result of flashcard fragmentation. Just like computers, flashcarts and CF/SD cards fragment. If a program is fragmented to a high extent, the DS fails to keep up with it... and one thing leads to another!

Anyway, the break command... it STOPS while true do loops. It goes through the loop one more time, then quits it. And exiting back to the browser in such a way causes your resources (sprites, palettes, framestrips, etc) to free automatically.
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #5 on: January 01, 2007, 02:42:04 PM »

Quote
The 'random freeze' you speak of is a result of flashcard fragmentation. Just like computers, flashcarts and CF/SD cards fragment. If a program is fragmented to a high extent, the DS fails to keep up with it... and one thing leads to another!

But I'm not accessing the card during the actual game part of the game, I have everything loaded into memory. And the freezing only happens as soon as you select a card (1% of the time). Most of the time it's within the first minute of playing. But I have played a few 50-card games without it freezing.

Quote
Anyway, the break command... it STOPS while true do loops. It goes through the loop one more time, then quits it. And exiting back to the browser in such a way causes your resources (sprites, palettes, framestrips, etc) to free automatically.

Here's the problem with that, try running this.

Code:
txt = Screen.LoadTextBG()
Screen.Initialize( 1, txt )

txt:PrintXY( 0, 0, "Press A to quit." )
while true do
     while true do
          if Pads.A() then break end
     end
     txt:PrintXY( 0, 1, "(A has been pressed)" )
end

The break statement will only break out of the second loop (lines 6-8). And my game is filled with loops...
Logged
jeffx
Waxing Crescent
**
Posts: 14

Lua Programmer


« Reply #6 on: January 21, 2007, 11:57:13 PM »

can we see some screenshots? also the download link is broken.
Logged
Hurt
New Moon
*
Posts: 2


« Reply #7 on: June 07, 2007, 05:12:43 PM »

hi!

please can you help me to run this game on my nintendo ds?

i have a m3 simply adapter and i am a little bit confused ... what are the colors blue, grey, green? what is GBFS? do i need DSLua and/or LibFATDragon?

HELP =)
Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #8 on: June 07, 2007, 05:42:18 PM »

There's 4 different versions of DSLua 0.6: blue, green, grey, and GBFS. Each one works on different homebrew devices (like M3 Simply.) I don't know which one works on the M3 Simply though, so maybe just try all of them (except GBFS because I'm pretty sure it won't work.)

Here's a compatability chart: http://www.bio-gaming.com/jeremy/dslua/img/compatability.png . It doesn't have the m3 simply on it but all the m3's on it use the green version so try the green version. Just download DSLua 0.6 from the downloads page of this site, go into the release-cf-green folder, and copy DSLua.nds to your card. Then run it. Hopefully there should be file browser and you should be able to run any DSLua programs (including Skip-Bo Wink )
Logged
Hurt
New Moon
*
Posts: 2


« Reply #9 on: June 08, 2007, 08:36:54 AM »

There's 4 different versions of DSLua 0.6: blue, green, grey, and GBFS. Each one works on different homebrew devices (like M3 Simply.) I don't know which one works on the M3 Simply though, so maybe just try all of them (except GBFS because I'm pretty sure it won't work.)

Here's a compatability chart: http://www.bio-gaming.com/jeremy/dslua/img/compatability.png . It doesn't have the m3 simply on it but all the m3's on it use the green version so try the green version. Just download DSLua 0.6 from the downloads page of this site, go into the release-cf-green folder, and copy DSLua.nds to your card. Then run it. Hopefully there should be file browser and you should be able to run any DSLua programs (including Skip-Bo Wink )

green version also don't work :-/
just a black screen when i try to load dslua/DSLua.nds
Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #10 on: June 08, 2007, 05:20:48 PM »

You should probably wait until DSLua 0.7 comes out, with DLDI. We were going to release it quite a while ago, I don't know why we didn't though. I haven't talked to sypherce in a long time.
Logged
Pages: [1]
« previous next »
    Jump to:  



    (C) 2008 DSLua

    DSLua - Best scripting language for Nintendo DS home-brew!