realbasic-games
[Top] [All Lists]

Re: doubt about load graphic files

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: doubt about load graphic files
From: Craig M. <FishyRB at 98115 dot net>
Date: Mon, 18 Dec 2006 09:27:34 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <17EA1232-AFF8-41B0-A7CE-963C099541B4 at mac dot com>
Both work fine. If your doing something like loading arrays of pictures, or you might want to change pictures without recompiling the app, or you might want to be able to update the app without sending another copy of the pictures, load them from the disk. I like to keep files in the project unless I find a reason not to, like one of the ones I listed.

I haven't thought about this much before, anyone else have any thoughts?

Thanks,
Craig.
On Dec 18, 2006, at 8:21 AM, Landoq wrote:

Hello,

I am writing a game in rb and i have a doubt:

Add graphic files to project or load graphics from disk in code ? the first option assemble all graphics in the executable file but i don´t know if this option is recommend or not.

thanks and Merry Christmas from Spain.

Víctor Fernández
Landoq Software



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


From  Mon 18 Dec 2006 10:35:23 -0700
Return-Path: <realbasic-games-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 0765E140C1DE; Mon, 18 Dec 2006 09:35:47 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
        www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-1.7 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME
        autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 5231E140C1D3;
        Mon, 18 Dec 2006 09:35:42 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id BAB40174B000; Mon, 18 Dec 2006 11:35:28 -0600 (CST)
X-Original-To: realbasic-games at lists dot realsoftware dot com
Delivered-To: realbasic-games at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 85D4B174AFF3
        for <realbasic-games at lists dot realsoftware dot com>;
        Mon, 18 Dec 2006 11:35:24 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 23E716BB3F6
        for <realbasic-games at lists dot realsoftware dot com>;
        Mon, 18 Dec 2006 10:35:23 -0700 (MST)
Date: Mon, 18 Dec 2006 10:35:23 -0700
From: joe at strout dot net
To: realbasic-games at lists dot realsoftware dot com
In-Reply-To: <9b774370a4c8d29f440a50c6cda1a3f5 at 98115 dot net>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20061218173523 dot 23E716BB3F6 at mail dot verex dot com>
Subject: Re: doubt about load graphic files
X-BeenThere: realbasic-games at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Sender: realbasic-games-bounces at lists dot realsoftware dot com
Errors-To: realbasic-games-bounces at lists dot realsoftware dot com

On Dec 18, 2006, at 17:27 UTC, Craig M. wrote:

I haven't thought about this much before, anyone else have any
thoughts?

During development I've certainly found it much easier to keep them on
disk, especially if you're working with an artist.  The artist can then
simply change the artwork (or sounds or whatever) and re-run the latest
build of your app; they don't even need to have RB installed.  Also,
even if you have RB, it's always been a bit poor at noticing when an
image file on disk has changed.  So if you have pictures in your
project, and you're working on the artwork, you'll find yourself doing
wasteful things like quitting and restarting RB just to get it to
notice that the picture has changed.

Another thing to consider is that images and sounds in your project get
built into the resource fork on the Mac (at least in a PEF app), but
this is limited to 16MB, which isn't really all that much these days.

So, I say go with files on disk at least during development -- and
maybe for deployment too.

HTH,
- Joe

--
Joe Strout -- joe at strout dot net
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>