0 Members and 1 Guest are viewing this topic.
DISTDIR = Example.tns
the "directory for the tns file" means the name and directory were the compiled .tns will be. For example this line could be Code: [Select]DISTDIR = Example.tnsIn the OBJS line you have to write the names of the .c files you want to compile, but with .o instead of .c at the end of each name.
GCC = nspire-gccLD = nspire-ldGCCFLAGS = -Os -nostdlib -I"c:/nRGBlib/sdk/include/"LDFLAGS = -L "c:/nRGBlib/sdk/lib/"OBJCOPY := "$(shell (which arm-elf-objcopy arm-none-eabi-objcopy arm-linux-gnueabi-objcopy | head -1) 2>/dev/null)"ifeq (${OBJCOPY},"") OBJCOPY := arm-none-eabi-objcopyendifOBJS = main.o bar.o -> hello.oDISTDIR = .vpath %.tns $(DISTDIR)all: hello.tns%.o: %.c $(GCC) $(GCCFLAGS) -c $<%.o: %.S $(GCC) $(GCCFLAGS) -c $<hello.tns: $(OBJS) $(LD) $(LDFLAGS) $^ -o $(@:.tns=.elf) -lRGB @mkdir -p $(DISTDIR) $(OBJCOPY) -O binary $(@:.tns=.elf) $(DISTDIR)/$@clean: rm -f *.o *.elf rm -f $(DISTDIR)/hello.tns
So, does "character drawing" mean sprite support or text?Sprite support would be really nice. At arbitrary sizes, ideally.Also, have you considered image importing?
Is there a pixel test command? That would be highly useful.
In nRGBlib, how do you make sprites? Or has that not been implemented yet?Also, as ive posted multiple times , rand() doesnt work because RGBlib has a rand function that conflicts with yagarto's one, so how do I get it to work? The snake game uses rand() and it works fine.... I can't really spot any differences between snake's code and mine that could have made snake's work, other than that it included nMATHS, but that didn't change anything for me when I included itEdit: Ouch, triple post