blob8108 wrote:
MathWizz wrote:
blob8108 wrote:
Awesome! Now implement writing. >
Yikes! One step at a time please.
And then you get the fun of writing tests where you read something, write it again, and check it matches the original...
yep, but we probably won't support re compressing images either, wayyy to complicated.
I think we'll use mainly .sb2 format though...
EDIT: 150th post on this topic!
Last edited by TRocket (2012-09-19 15:35:24)
Offline
blob8108 wrote:
MathWizz wrote:
blob8108 wrote:
Awesome! Now implement writing. >Yikes! One step at a time please.
And then you get the fun of writing tests where you read something, write it again, and check it matches the original...
It doesn't HAVE to match the original. The internal pointers can be rearranged.
Offline
MathWizz wrote:
blob8108 wrote:
MathWizz wrote:
Yikes! One step at a time please.And then you get the fun of writing tests where you read something, write it again, and check it matches the original...
It doesn't HAVE to match the original. The internal pointers can be rearranged.
Oh, the references? If you're doing it right they should be the same...
I found it helpful to test individual bits — have tests for each fixed object, for example.
Offline
If you want, I can begin to write code for higher-level logic. (like the execution of blocks).
Offline
Tried to compile newest version. Getting errors. Is the function done?
ERROR:In file included from src/scratchio.h:13:0,
from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared
Offline
I'll look, but currently I'm trying to get cairo to work.
Offline
Um, where's endian.h?
Offline
I finally got Itchy++ to compile. It has a few problems, like the fact everything is tinted, by other than that...
THIS...IS...ITCHY!!!!
Offline
...and has now created a .app of Itchy.
Offline
pwiter wrote:
Tried to compile newest version. Getting errors. Is the function done?
ERROR:In file included from src/scratchio.h:13:0,
from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared
*facepalm*
The #include "scratchio.h" part was SUPPOSED to be below the forward declarations.
Offline
Anyone have a task for me?
Also, can Math talk on chat.js?
Last edited by bobbybee (2012-09-20 19:17:52)
Offline
MathWizz wrote:
pwiter wrote:
Tried to compile newest version. Getting errors. Is the function done?
ERROR:In file included from src/scratchio.h:13:0,
from src/main.cpp:7:
src/scratchobjects.h:19:25: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:31:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:41:21: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:47:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:54:20: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:63:19: error: expected ‘)’ before ‘*’ token
src/scratchobjects.h:68:21: error: ‘ByteStream’ has not been declared*facepalm*
The #include "scratchio.h" part was SUPPOSED to be below the forward declarations.
Lol. Ok...
Offline
Can I join this project? I cannot make a full commitment but every now and again I will come out with a commit.
Github: @logiblocs
Offline
logiblocs wrote:
Can I join this project? I cannot make a full commitment but every now and again I will come out with a commit.
Github: @logiblocs
added!
Offline
What compile flags should I use (if any) like libraries etc? I am making a makefile so I can work on it on my linux box.
EDIT: Got it working in the end using sdl-config
Last edited by logiblocs (2012-09-23 05:32:38)
Offline
is their anything i need to do to prepare for testing
Offline
At the moment, no.
Offline
So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.
EDIT: GAHH! Seg Faults! From a <=?
|
\/
for (uint32_t i = 0; i <= this->spriteCount; i++) {
this->sprites[i]->drawOn(cr);
}
Last edited by pwiter (2012-09-23 21:39:42)
Offline
pwiter wrote:
So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.
EDIT: GAHH! Seg Faults! From a <=?
|
\/
for (uint32_t i = 0; i <= this->spriteCount; i++) {
this->sprites[i]->drawOn(cr);
}
Use '<' instead of '<='.
Offline
MathWizz wrote:
pwiter wrote:
So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.
EDIT: GAHH! Seg Faults! From a <=?
|
\/
for (uint32_t i = 0; i <= this->spriteCount; i++) {
this->sprites[i]->drawOn(cr);
}Use '<' instead of '<='.
But that is why It doesn't draw all sprites...
Actually no, my fail knowledge of C++. Java is what I'm coming from.
Last edited by pwiter (2012-09-23 22:01:19)
Offline