AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 1 |
r3wp | 8 |
total: | 9 |
results window for this page: [start: 2 end: 9]
world-name: r3wp
Group: I'm new ... Ask any question, and a helpful person will try to answer. [web-public] | ||
srwill: 1-Nov-2010 | I''m trying to understand this language, sometimes getting it, sometimes not. Anyway here's my question. In VID, I have a layout. I want to put random images in 3 columns with 5 rows. The images are stored together in a single binary file. (this is a mod of the card game on Nick's tutorial site). So I read in the images into a series, after I set the layout. But how do add those to the layout? Here's my current code: do %cards.r the-tableau: layout [ size 320x480 backdrop 0.170.0 across at 30x20 tc1: box 80x100 teal tc2: box 80x100 teal tc3: box 80x100 teal return at 30x130 tc4: box 80x100 teal tc100: box 80x100 coal tc5: box 80x100 teal return at 30x240 tc6: box 80x100 teal tc200: box 80x100 coal tc7: box 80x100 teal return at 30x350 tc8: box 80x100 teal tc9: box 80x100 teal tc10: box 80x100 teal ] foreach [card label num color pos] cards [ dimg: load to-binary decompress (card) append deck-cards dimg ;feel movestyle throw-away-label: label append deck-cards-num num append deck-cards-color color throw-away-pos: pos ] view/new the-tableau do-events | |
srwill: 1-Nov-2010 | ok. I think I understand that. So here's my new code, which doesn't work. random/seed now ;--include the binary card data do %cards.r the-tableau: layout [ size 320x480 backdrop 0.170.0 style tabstyle image 80x100 teal style holdplace box 80x100 coal across at 30x20 tc1: tabstyle tc2: tabstyle tc3: tabstyle return at 30x130 tc4: tabstyle tc100: holdplace tc5: tabstyle return at 30x240 tc6: tabstyle tc200: holdplace tc7: tabstyle return at 30x350 tc8: tabstyle tc9: tabstyle tc10: tabstyle ] lc: copy [] lc: [tc1 tc2 tc3 tc4 tc5 tc6 tc7 tc8 tc9 tc10] deck-cards: copy [] ; The deck holds all of the cards from the binary file deck-cards-num: copy [] deck-cards-color: copy [] foreach [card label num color pos] cards [ dimg: load to-binary decompress (card) append deck-cards dimg ;feel movestyle throw-away-label: label append deck-cards-num num append deck-cards-color color throw-away-pos: pos ] random-card: does [pick deck-cards random length? deck-cards] foreach c lc [set-face get c deck-cards] view/new the-tableau do-events | |
Group: DevCon2007 ... DevCon 2007 [web-public] | ||
Gabriele: 11-May-2007 | this goes to the client side... which also loads your JS file with the classes for your card and molecules | |
Gabriele: 11-May-2007 | generate-content: func [ is-card content-generator cardid dimensions js-files dialog-arr args /local l_width l_height l_id l_src js-classname ] [ l_src: none if not is-card [l_id: cardid] switch content-generator [ "file.fileshare" [ obj: make quilt/ret-obj [ src: build-fileshare title: "Your files" short-title: "Files" ] quilt/add-dialog dialog-arr "fileupload" "FileShareUpload" rejoi n [ "<p>Please select a file to upload:</p>" quilt/basic-molecule/class/id { <iframe src="about:blank" style="border: none; height: 60px; width: 250px;">IFRAME not displayed!</iframe> <p style="display: none;">Uploading file... <img src="/images/Qtask- Bar-64.gif" /></p> | |
Group: Games ... talk about using REBOL for games [web-public] | ||
ICarii: 30-Jun-2007 | RebTower updated. http://rebol.mustard.co.nz/rebtower-0.0.2.zip Changes: - Card types are now loaded from the starter-deck.txt file. - template.txt holds the name of a card and how many times it occurs in a deck. - Added win / lose screens and an intro screen (very basic at the moment). - Fixed a rebview.exe not closing when window closes issue. - Cleaned up a few show-stopping bugs internally ;) | |
ICarii: 15-Jul-2007 | The first part of the rebtower.r file containst help instructions on how to play and what the different parts mean :) The numbers indicate a resource cost that has to be met in order to play the card. | |
ScottM: 1-Feb-2008 | after looking at Allen 's penguin card game, I downloaded the card game engine cge.bin file. I do not know how to extract .bin files. Has someone used the engine before or could point me in the right direction? | |
Group: Core ... Discuss core issues [web-public] | ||
james_nak: 1-Apr-2011 | Again, this might be a Graham question: I'm still working with that video encoder which uses http to communicate. They have a .cgi script which downloads the recorded video file from the internal SD card to the requester. My problem is the content I receive is somehow different than the files which I can download via a browser and of course will not play. I still using your http-tools to GET/POST. My initial thought was that data returned is somehow being translated. Any thoughts? |
1 / 9 | [1] |