Jump to content
MakeWebGames

Christmas Advent Calendar [ WORKING COPY }


Uridium

Recommended Posts

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

you can create your own images to cover tthe doors each image should be about 100 x 100 then just do your maths with the co-ords on windows paint

if(!$ir['frame1'] !=1) { imagecopymerge_alpha($img_a, $img_b, 25,25,0,0, imagesx($img_b), imagesy($img_b), 50); }

if(!$ir['frame2'] !=1) { imagecopymerge_alpha($img_a, $img_c, 401, 402, 0, 0, imagesx($img_c), imagesy($img_c), 50); }

if(!$ir['frame3'] !=1) { imagecopymerge_alpha($img_a, $img_d, 25, 405, 0, 0, imagesx($img_d), imagesy($img_d), 50); }

if(!$ir['frame4'] !=1) { imagecopymerge_alpha($img_a, $img_e, 400, 305, 0, 0, imagesx($img_e), imagesy($img_e), 50); }

if(!$ir['frame5'] !=1) { imagecopymerge_alpha($img_a, $img_f, 104, 200, 0, 0, imagesx($img_f), imagesy($img_f), 50); }

if(!$ir['frame6'] !=1) { imagecopymerge_alpha($img_a, $img_g, 402, 103, 0, 0, imagesx($img_g), imagesy($img_g), 50); }

if(!$ir['frame7'] !=1) { imagecopymerge_alpha($img_a, $img_h, 25, 100, 0, 0, imagesx($img_h), imagesy($img_h), 50); }

if(!$ir['frame8'] !=1) { imagecopymerge_alpha($img_a, $img_i, 200, 200, 0, 0, imagesx($img_i), imagesy($img_i), 50); }

if(!$ir['frame9'] !=1) { imagecopymerge_alpha($img_a, $img_j, 103, 100, 0, 0, imagesx($img_j), imagesy($img_j), 50); }

if(!$ir['frame10'] !=1) { imagecopymerge_alpha($img_a, $img_k, 104,300,0,0, imagesx($img_k), imagesy($img_k), 50); }

if(!$ir['frame11'] !=1) { imagecopymerge_alpha($img_a, $img_l, 200, 100, 0, 0, imagesx($img_l), imagesy($img_l), 50); }

if(!$ir['frame12'] !=1) { imagecopymerge_alpha($img_a, $img_m, 200, 400, 0, 0, imagesx($img_m), imagesy($img_m), 50); }

if(!$ir['frame13'] !=1) { imagecopymerge_alpha($img_a, $img_n, 301, 300, 0, 0, imagesx($img_n), imagesy($img_n), 50); }

if(!$ir['frame14'] !=1) { imagecopymerge_alpha($img_a, $img_o, 100, 25, 0, 0, imagesx($img_o), imagesy($img_o), 50); }

if(!$ir['frame15'] !=1) { imagecopymerge_alpha($img_a, $img_p, 301, 200, 0, 0, imagesx($img_p), imagesy($img_p), 50); }

if(!$ir['frame16'] !=1) { imagecopymerge_alpha($img_a, $img_q, 402, 25, 0, 0, imagesx($img_q), imagesy($img_q), 50); }

if(!$ir['frame17'] !=1) { imagecopymerge_alpha($img_a, $img_r, 401, 202, 0, 0, imagesx($img_r), imagesy($img_r), 50); }

if(!$ir['frame18'] !=1) { imagecopymerge_alpha($img_a, $img_s, 300, 400, 0, 0, imagesx($img_s), imagesy($img_s), 50); }

if(!$ir['frame19'] !=1) { imagecopymerge_alpha($img_a, $img_t, 200, 25, 0, 0, imagesx($img_t), imagesy($img_t), 50); }

if(!$ir['frame20'] !=1) { imagecopymerge_alpha($img_a, $img_u, 200, 300, 0, 0, imagesx($img_u), imagesy($img_u), 50); }

if(!$ir['frame21'] !=1) { imagecopymerge_alpha($img_a, $img_v, 300, 25, 0, 0, imagesx($img_v), imagesy($img_v), 50); }

if(!$ir['frame22'] !=1) { imagecopymerge_alpha($img_a, $img_w, 25, 300, 0, 0, imagesx($img_w), imagesy($img_w), 50); }

if(!$ir['frame23'] !=1) { imagecopymerge_alpha($img_a, $img_x, 25, 200, 0, 0, imagesx($img_x), imagesy($img_x), 50); }

if(!$ir['frame24'] !=1) { imagecopymerge_alpha($img_a, $img_y, 301, 100, 0, 0, imagesx($img_y), imagesy($img_y), 50); }

if(!$ir['frame25'] !=1) { imagecopymerge_alpha($img_a, $img_z, 0, 0, 0, 0, imagesx($img_z), imagesy($img_z), 50); }

Link to comment
Share on other sites

I suppose adding a cron for each door date would help if the cron dont match the sql for the door date then that door cant be opened

Or simply check the timestamped date against the server? So make sure only the doors prior to the current date open. Not all to hard.

Link to comment
Share on other sites

  • 1 year later...
  • 10 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...