I am going to attempt to do this contest. I may not finish anything, but I'll try. Since the first keyword is snow, I'm going to attempt a game where snow is falling, and so you don't have to shovel the driveway later, you are trying to catch every snowflake in a bucket.

I'll try not to procrastinate this time Razz
I've been working on it more, and my snowflake sprite isn't working. I'm not sure what I'm doing. The errors are shown in main.c.

snowflake.h
Code:
// Converted using ConvPNG
// This file contains all the graphics sources for easier inclusion in a project
#ifndef snowflake_H
#define snowflake_H
#include <stdint.h>

extern uint8_t CC18_snowflake_data[258];
#define CC18_snowflake ((gfx_image_t*)CC18_snowflake_data)
extern uint16_t snowflake_pal[256];

#endif

snowflake.c

Code:
// Converted using ConvPNG
#include <stdint.h>
#include "snowflake.h"

uint16_t snowflake_pal[256] = {
 0x0000,  // 00 :: rgba(0,0,0,255)
 0x0081,  // 01 :: rgba(0,32,8,255)
 0x0102,  // 02 :: rgba(0,65,16,255)
 0x0183,  // 03 :: rgba(0,97,24,255)
 0x0204,  // 04 :: rgba(0,130,33,255)
 0x0285,  // 05 :: rgba(0,162,41,255)
 0x0306,  // 06 :: rgba(0,195,49,255)
 0x0387,  // 07 :: rgba(0,227,57,255)
 0x0408,  // 08 :: rgba(8,0,66,255)
 0x0489,  // 09 :: rgba(8,32,74,255)
 0x050A,  // 10 :: rgba(8,65,82,255)
 0x058B,  // 11 :: rgba(8,97,90,255)
 0x060C,  // 12 :: rgba(8,130,99,255)
 0x068D,  // 13 :: rgba(8,162,107,255)
 0x070E,  // 14 :: rgba(8,195,115,255)
 0x078F,  // 15 :: rgba(8,227,123,255)
 0x0810,  // 16 :: rgba(16,0,132,255)
 0x0891,  // 17 :: rgba(16,32,140,255)
 0x0912,  // 18 :: rgba(16,65,148,255)
 0x0993,  // 19 :: rgba(16,97,156,255)
 0x0A14,  // 20 :: rgba(16,130,165,255)
 0x0A95,  // 21 :: rgba(16,162,173,255)
 0x0B16,  // 22 :: rgba(16,195,181,255)
 0x0B97,  // 23 :: rgba(16,227,189,255)
 0x0C18,  // 24 :: rgba(24,0,198,255)
 0x0C99,  // 25 :: rgba(24,32,206,255)
 0x0D1A,  // 26 :: rgba(24,65,214,255)
 0x0D9B,  // 27 :: rgba(24,97,222,255)
 0x0E1C,  // 28 :: rgba(24,130,231,255)
 0x0E9D,  // 29 :: rgba(24,162,239,255)
 0x0F1E,  // 30 :: rgba(24,195,247,255)
 0x0F9F,  // 31 :: rgba(24,227,255,255)
 0x9000,  // 32 :: rgba(33,4,0,255)
 0x9081,  // 33 :: rgba(33,36,8,255)
 0x9102,  // 34 :: rgba(33,69,16,255)
 0x9183,  // 35 :: rgba(33,101,24,255)
 0x9204,  // 36 :: rgba(33,134,33,255)
 0x9285,  // 37 :: rgba(33,166,41,255)
 0x9306,  // 38 :: rgba(33,199,49,255)
 0x9387,  // 39 :: rgba(33,231,57,255)
 0x9408,  // 40 :: rgba(41,4,66,255)
 0x9489,  // 41 :: rgba(41,36,74,255)
 0x950A,  // 42 :: rgba(41,69,82,255)
 0x958B,  // 43 :: rgba(41,101,90,255)
 0x960C,  // 44 :: rgba(41,134,99,255)
 0x968D,  // 45 :: rgba(41,166,107,255)
 0x970E,  // 46 :: rgba(41,199,115,255)
 0x978F,  // 47 :: rgba(41,231,123,255)
 0x9810,  // 48 :: rgba(49,4,132,255)
 0x9891,  // 49 :: rgba(49,36,140,255)
 0x9912,  // 50 :: rgba(49,69,148,255)
 0x9993,  // 51 :: rgba(49,101,156,255)
 0x9A14,  // 52 :: rgba(49,134,165,255)
 0x9A95,  // 53 :: rgba(49,166,173,255)
 0x9B16,  // 54 :: rgba(49,199,181,255)
 0x9B97,  // 55 :: rgba(49,231,189,255)
 0x9C18,  // 56 :: rgba(57,4,198,255)
 0x9C99,  // 57 :: rgba(57,36,206,255)
 0x9D1A,  // 58 :: rgba(57,69,214,255)
 0x9D9B,  // 59 :: rgba(57,101,222,255)
 0x9E1C,  // 60 :: rgba(57,134,231,255)
 0x9E9D,  // 61 :: rgba(57,166,239,255)
 0x9F1E,  // 62 :: rgba(57,199,247,255)
 0x9F9F,  // 63 :: rgba(57,231,255,255)
 0x2020,  // 64 :: rgba(66,8,0,255)
 0x20A1,  // 65 :: rgba(66,40,8,255)
 0x2122,  // 66 :: rgba(66,73,16,255)
 0x21A3,  // 67 :: rgba(66,105,24,255)
 0x2224,  // 68 :: rgba(66,138,33,255)
 0x22A5,  // 69 :: rgba(66,170,41,255)
 0x2326,  // 70 :: rgba(66,203,49,255)
 0x23A7,  // 71 :: rgba(66,235,57,255)
 0x2428,  // 72 :: rgba(74,8,66,255)
 0x24A9,  // 73 :: rgba(74,40,74,255)
 0x252A,  // 74 :: rgba(74,73,82,255)
 0x25AB,  // 75 :: rgba(74,105,90,255)
 0x262C,  // 76 :: rgba(74,138,99,255)
 0x26AD,  // 77 :: rgba(74,170,107,255)
 0x272E,  // 78 :: rgba(74,203,115,255)
 0x27AF,  // 79 :: rgba(74,235,123,255)
 0x2830,  // 80 :: rgba(82,8,132,255)
 0x28B1,  // 81 :: rgba(82,40,140,255)
 0x2932,  // 82 :: rgba(82,73,148,255)
 0x29B3,  // 83 :: rgba(82,105,156,255)
 0x2A34,  // 84 :: rgba(82,138,165,255)
 0x2AB5,  // 85 :: rgba(82,170,173,255)
 0x2B36,  // 86 :: rgba(82,203,181,255)
 0x2BB7,  // 87 :: rgba(82,235,189,255)
 0x2C38,  // 88 :: rgba(90,8,198,255)
 0x2CB9,  // 89 :: rgba(90,40,206,255)
 0x2D3A,  // 90 :: rgba(90,73,214,255)
 0x2DBB,  // 91 :: rgba(90,105,222,255)
 0x2E3C,  // 92 :: rgba(90,138,231,255)
 0x2EBD,  // 93 :: rgba(90,170,239,255)
 0x2F3E,  // 94 :: rgba(90,203,247,255)
 0x2FBF,  // 95 :: rgba(90,235,255,255)
 0xB020,  // 96 :: rgba(99,12,0,255)
 0xB0A1,  // 97 :: rgba(99,44,8,255)
 0xB122,  // 98 :: rgba(99,77,16,255)
 0xB1A3,  // 99 :: rgba(99,109,24,255)
 0xB224,  // 100 :: rgba(99,142,33,255)
 0xB2A5,  // 101 :: rgba(99,174,41,255)
 0xB326,  // 102 :: rgba(99,207,49,255)
 0xB3A7,  // 103 :: rgba(99,239,57,255)
 0xB428,  // 104 :: rgba(107,12,66,255)
 0xB4A9,  // 105 :: rgba(107,44,74,255)
 0xB52A,  // 106 :: rgba(107,77,82,255)
 0xB5AB,  // 107 :: rgba(107,109,90,255)
 0xB62C,  // 108 :: rgba(107,142,99,255)
 0xB6AD,  // 109 :: rgba(107,174,107,255)
 0xB72E,  // 110 :: rgba(107,207,115,255)
 0xB7AF,  // 111 :: rgba(107,239,123,255)
 0xB830,  // 112 :: rgba(115,12,132,255)
 0xB8B1,  // 113 :: rgba(115,44,140,255)
 0xB932,  // 114 :: rgba(115,77,148,255)
 0xB9B3,  // 115 :: rgba(115,109,156,255)
 0xBA34,  // 116 :: rgba(115,142,165,255)
 0xBAB5,  // 117 :: rgba(115,174,173,255)
 0xBB36,  // 118 :: rgba(115,207,181,255)
 0xBBB7,  // 119 :: rgba(115,239,189,255)
 0xBC38,  // 120 :: rgba(123,12,198,255)
 0xBCB9,  // 121 :: rgba(123,44,206,255)
 0xBD3A,  // 122 :: rgba(123,77,214,255)
 0xBDBB,  // 123 :: rgba(123,109,222,255)
 0xBE3C,  // 124 :: rgba(123,142,231,255)
 0xBEBD,  // 125 :: rgba(123,174,239,255)
 0xBF3E,  // 126 :: rgba(123,207,247,255)
 0xBFBF,  // 127 :: rgba(123,239,255,255)
 0x4040,  // 128 :: rgba(132,16,0,255)
 0x40C1,  // 129 :: rgba(132,48,8,255)
 0x4142,  // 130 :: rgba(132,81,16,255)
 0x41C3,  // 131 :: rgba(132,113,24,255)
 0x4244,  // 132 :: rgba(132,146,33,255)
 0x42C5,  // 133 :: rgba(132,178,41,255)
 0x4346,  // 134 :: rgba(132,211,49,255)
 0x43C7,  // 135 :: rgba(132,243,57,255)
 0x4448,  // 136 :: rgba(140,16,66,255)
 0x44C9,  // 137 :: rgba(140,48,74,255)
 0x454A,  // 138 :: rgba(140,81,82,255)
 0x45CB,  // 139 :: rgba(140,113,90,255)
 0x464C,  // 140 :: rgba(140,146,99,255)
 0x46CD,  // 141 :: rgba(140,178,107,255)
 0x474E,  // 142 :: rgba(140,211,115,255)
 0x47CF,  // 143 :: rgba(140,243,123,255)
 0x4850,  // 144 :: rgba(148,16,132,255)
 0x48D1,  // 145 :: rgba(148,48,140,255)
 0x4952,  // 146 :: rgba(148,81,148,255)
 0x49D3,  // 147 :: rgba(148,113,156,255)
 0x4A54,  // 148 :: rgba(148,146,165,255)
 0x4AD5,  // 149 :: rgba(148,178,173,255)
 0x4B56,  // 150 :: rgba(148,211,181,255)
 0x4BD7,  // 151 :: rgba(148,243,189,255)
 0x4C58,  // 152 :: rgba(156,16,198,255)
 0x4CD9,  // 153 :: rgba(156,48,206,255)
 0x4D5A,  // 154 :: rgba(156,81,214,255)
 0x4DDB,  // 155 :: rgba(156,113,222,255)
 0x4E5C,  // 156 :: rgba(156,146,231,255)
 0x4EDD,  // 157 :: rgba(156,178,239,255)
 0x4F5E,  // 158 :: rgba(156,211,247,255)
 0x4FDF,  // 159 :: rgba(156,243,255,255)
 0xD040,  // 160 :: rgba(165,20,0,255)
 0xD0C1,  // 161 :: rgba(165,52,8,255)
 0xD142,  // 162 :: rgba(165,85,16,255)
 0xD1C3,  // 163 :: rgba(165,117,24,255)
 0xD244,  // 164 :: rgba(165,150,33,255)
 0xD2C5,  // 165 :: rgba(165,182,41,255)
 0xD346,  // 166 :: rgba(165,215,49,255)
 0xD3C7,  // 167 :: rgba(165,247,57,255)
 0xD448,  // 168 :: rgba(173,20,66,255)
 0xD4C9,  // 169 :: rgba(173,52,74,255)
 0xD54A,  // 170 :: rgba(173,85,82,255)
 0xD5CB,  // 171 :: rgba(173,117,90,255)
 0xD64C,  // 172 :: rgba(173,150,99,255)
 0xD6CD,  // 173 :: rgba(173,182,107,255)
 0xD74E,  // 174 :: rgba(173,215,115,255)
 0xD7CF,  // 175 :: rgba(173,247,123,255)
 0xD850,  // 176 :: rgba(181,20,132,255)
 0xD8D1,  // 177 :: rgba(181,52,140,255)
 0xD952,  // 178 :: rgba(181,85,148,255)
 0xD9D3,  // 179 :: rgba(181,117,156,255)
 0xDA54,  // 180 :: rgba(181,150,165,255)
 0xDAD5,  // 181 :: rgba(181,182,173,255)
 0xDB56,  // 182 :: rgba(181,215,181,255)
 0xDBD7,  // 183 :: rgba(181,247,189,255)
 0xDC58,  // 184 :: rgba(189,20,198,255)
 0xDCD9,  // 185 :: rgba(189,52,206,255)
 0xDD5A,  // 186 :: rgba(189,85,214,255)
 0xDDDB,  // 187 :: rgba(189,117,222,255)
 0xDE5C,  // 188 :: rgba(189,150,231,255)
 0xDEDD,  // 189 :: rgba(189,182,239,255)
 0xDF5E,  // 190 :: rgba(189,215,247,255)
 0xDFDF,  // 191 :: rgba(189,247,255,255)
 0x6060,  // 192 :: rgba(198,24,0,255)
 0x60E1,  // 193 :: rgba(198,56,8,255)
 0x6162,  // 194 :: rgba(198,89,16,255)
 0x61E3,  // 195 :: rgba(198,121,24,255)
 0x6264,  // 196 :: rgba(198,154,33,255)
 0x62E5,  // 197 :: rgba(198,186,41,255)
 0x6366,  // 198 :: rgba(198,219,49,255)
 0x63E7,  // 199 :: rgba(198,251,57,255)
 0x6468,  // 200 :: rgba(206,24,66,255)
 0x64E9,  // 201 :: rgba(206,56,74,255)
 0x656A,  // 202 :: rgba(206,89,82,255)
 0x65EB,  // 203 :: rgba(206,121,90,255)
 0x666C,  // 204 :: rgba(206,154,99,255)
 0x66ED,  // 205 :: rgba(206,186,107,255)
 0x676E,  // 206 :: rgba(206,219,115,255)
 0x67EF,  // 207 :: rgba(206,251,123,255)
 0x6870,  // 208 :: rgba(214,24,132,255)
 0x68F1,  // 209 :: rgba(214,56,140,255)
 0x6972,  // 210 :: rgba(214,89,148,255)
 0x69F3,  // 211 :: rgba(214,121,156,255)
 0x6A74,  // 212 :: rgba(214,154,165,255)
 0x6AF5,  // 213 :: rgba(214,186,173,255)
 0x6B76,  // 214 :: rgba(214,219,181,255)
 0x6BF7,  // 215 :: rgba(214,251,189,255)
 0x6C78,  // 216 :: rgba(222,24,198,255)
 0x6CF9,  // 217 :: rgba(222,56,206,255)
 0x6D7A,  // 218 :: rgba(222,89,214,255)
 0x6DFB,  // 219 :: rgba(222,121,222,255)
 0x6E7C,  // 220 :: rgba(222,154,231,255)
 0x6EFD,  // 221 :: rgba(222,186,239,255)
 0x6F7E,  // 222 :: rgba(222,219,247,255)
 0x6FFF,  // 223 :: rgba(222,251,255,255)
 0xF060,  // 224 :: rgba(231,28,0,255)
 0xF0E1,  // 225 :: rgba(231,60,8,255)
 0xF162,  // 226 :: rgba(231,93,16,255)
 0xF1E3,  // 227 :: rgba(231,125,24,255)
 0xF264,  // 228 :: rgba(231,158,33,255)
 0xF2E5,  // 229 :: rgba(231,190,41,255)
 0xF366,  // 230 :: rgba(231,223,49,255)
 0xF3E7,  // 231 :: rgba(231,255,57,255)
 0xF468,  // 232 :: rgba(239,28,66,255)
 0xF4E9,  // 233 :: rgba(239,60,74,255)
 0xF56A,  // 234 :: rgba(239,93,82,255)
 0xF5EB,  // 235 :: rgba(239,125,90,255)
 0xF66C,  // 236 :: rgba(239,158,99,255)
 0xF6ED,  // 237 :: rgba(239,190,107,255)
 0xF76E,  // 238 :: rgba(239,223,115,255)
 0xF7EF,  // 239 :: rgba(239,255,123,255)
 0xF870,  // 240 :: rgba(247,28,132,255)
 0xF8F1,  // 241 :: rgba(247,60,140,255)
 0xF972,  // 242 :: rgba(247,93,148,255)
 0xF9F3,  // 243 :: rgba(247,125,156,255)
 0xFA74,  // 244 :: rgba(247,158,165,255)
 0xFAF5,  // 245 :: rgba(247,190,173,255)
 0xFB76,  // 246 :: rgba(247,223,181,255)
 0xFBF7,  // 247 :: rgba(247,255,189,255)
 0xFC78,  // 248 :: rgba(255,28,198,255)
 0xFCF9,  // 249 :: rgba(255,60,206,255)
 0xFD7A,  // 250 :: rgba(255,93,214,255)
 0xFDFB,  // 251 :: rgba(255,125,222,255)
 0xFE7C,  // 252 :: rgba(255,158,231,255)
 0xFEFD,  // 253 :: rgba(255,190,239,255)
 0xFF7E,  // 254 :: rgba(255,223,247,255)
 0xFFFF   // 255 :: rgba(255,255,255,255)
};

CC18_snowflake.c

Code:
// Converted using ConvPNG
#include <stdint.h>
#include "snowflake.h"

uint8_t CC18_snowflake_data[258] = {
 16,   /* width */
 16,   /* height */
 0xFF,0x1F,0x1F,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0x1F,0x1F,0xFF,
 0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,
 0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x1F,0xFF,0xFF,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x1F,
 0xFF,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0xFF,
 0x1F,0x1F,0xFF,0x1F,0xFF,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0xFF,0x1F,0xFF,0x1F,0x1F,
 0x1F,0x1F,0xFF,0x1F,0x1F,0xFF,0x1F,0xFF,0xFF,0x1F,0xFF,0x1F,0x1F,0xFF,0x1F,0x1F,
 0x1F,0xFF,0x1F,0x1F,0x1F,0x1F,0xFF,0xFF,0xFF,0xFF,0x1F,0x1F,0x1F,0x1F,0xFF,0x1F,
 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
 0x1F,0xFF,0x1F,0x1F,0x1F,0x1F,0xFF,0xFF,0xFF,0xFF,0x1F,0x1F,0x1F,0x1F,0xFF,0x1F,
 0x1F,0x1F,0xFF,0x1F,0x1F,0xFF,0x1F,0xFF,0xFF,0x1F,0xFF,0x1F,0x1F,0xFF,0x1F,0x1F,
 0x1F,0x1F,0xFF,0x1F,0xFF,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0xFF,0x1F,0xFF,0x1F,0x1F,
 0xFF,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0xFF,
 0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x1F,0xFF,0xFF,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0x1F,
 0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,
 0xFF,0x1F,0x1F,0xFF,0x1F,0x1F,0x1F,0xFF,0xFF,0x1F,0x1F,0x1F,0xFF,0x1F,0x1F,0xFF,
};

main.c

Code:
// Program Name:
// Author(s):
// Description:

/* Keep these headers */
#include <tice.h>

/* Standard headers - it's recommended to leave them included */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <lib/ce/keypadc.h>
#include <lib/ce/fileioc.h>
#include <lib/ce/graphx.h>

/* Put your function prototypes here */
void newsnowflake();
void movesnowflake();
/* Put all your globals here. */
int x=1, y=1, i;
/* Put all your code here */

void main() {
   gfx_Begin(gfx_8bpp);
        gfx_SetPalette(snowflake_pal, sizeof(snowflake_pal), 0);
                                       /*↑ Identifier "snowflake_pal" not defined within current scope*/
   gfx_FillScreen(63);
   gfx_Sprite( snowflake, 0, 96 );
                              /*↑ Identifier "snowflake" not defined within current scope*/
}
You didn't include the snowflake header file. Add the:


Code:
#include "gfx/snowflake.h"


To your code Wink Also, shouldn't 'snowflake' be 'CC18_snowflake'?
Thank you so much guys! I am such a noob Razz
Is there any way to generate a random number?
calcnerd_CEP_D wrote:
Is there any way to generate a random number?



Code:
randInt(min, max);


Starting to wonder if you have looked at any of the examples; this is in the first graphics one haha. Wink
I'm proud to announce that I've finished my game. Very Happy I'm doing the title screen now.
I'm very curious, have you screenshots so far?
Does anyone have a suggestion for a good name? I have no idea what to name it.

EDIT:
Here are screenshots. CC18 Snow is just a placeholder.



EDIT 2:
My entry has been submitted! Thank you for all your help, and Merry Christmas! Smile
Well, for the second entry the keyword is "present". I'm visiting my grandparents, so I may not be able to finish this one. But I still have some computer access, so I'm going to try.

My plan is to make a present tracker. What it would do is track the presents you are giving to each person. It will show the price, number of gifts, and notes about that specific gift. It will also be password protected so your relatives can't see what your getting them Laughing
Well, this is the one I won't be able finish. I'm definitely not going to have enough time this week. Its Wednesday, and I still haven't been able to do anything.
I feel your pain calcnerd... I'm going to have to opt out this week as well... Very Happy
This week the keyword is party. So I plan to do a screen saver that shows balloons floating up with a background that says "PARTY!". This will go in the Graphics/Simulation category.
I finished my entry Smile




EDIT:
The new keyword just came out-
freeze
My plan is to make a math exercise where you must solve a math problem before your time runs out and you freeze. This will go in the Math category.
Since final exams are coming up, I had very little time to make anything, so here's my entry.

It colors the screen blue and then starts and endless loop. You must reset your calculator to get out of it.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement