X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbakapee.c;h=dfc476816079a86fc09ff77f19f8363fb416810c;hb=51b40bfb7f114e300c6739f98292bc7c5fe6c2d9;hp=1639f242006bf99ba07d4fa53d9a2a400d87ff5d;hpb=9a1de7bcc2d740e7d1424e7efe86e02e6a9e3bc8;p=16.git diff --git a/src/lib/bakapee.c b/src/lib/bakapee.c index 1639f242..dfc47681 100755 --- a/src/lib/bakapee.c +++ b/src/lib/bakapee.c @@ -1,10 +1,10 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * * Project 16 is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as publipage->shed by + * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * @@ -13,7 +13,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You page->should have received a copy of the GNU General Public License + * You should have received a copy of the GNU General Public License * along with this program. If not, see , or * write to the Free Software Foundation, Inc., 51 Franklin Street, * Fifth Floor, Boston, MA 02110-1301 USA. @@ -34,7 +34,7 @@ void colortest(page_t *page, bakapee_t *pee) { //if(pee->coor < 256) //{ - cls(page, pee->coor, VGA); + modexcls(page, pee->coor, VGA); pee->coor++; //}else pee->coor = 0; } @@ -44,7 +44,7 @@ void colorz(page_t *page, bakapee_t *pee) { if(pee->coor <= HGQ) { - cls(page, pee->coor, VGA); + modexcls(page, pee->coor, VGA); pee->coor++; }else pee->coor = LGQ; } @@ -228,7 +228,7 @@ void ding(page_t *page, bakapee_t *pee, word q) break; case 6: pee->coor = rand()%256; - cls(page, pee->coor, VGA); + modexcls(page, pee->coor, VGA); break; case 7: if(pee->coor <= HGQ) @@ -239,7 +239,7 @@ void ding(page_t *page, bakapee_t *pee, word q) break; case 8: colorz(page, pee); - modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi", 1); + modexprint(page, page->sw/2, page->sh/2, 1, 47, 0, "bakapi"); break; case 9: if(pee->coor <= HGQ) @@ -266,7 +266,7 @@ void ding(page_t *page, bakapee_t *pee, word q) ty+=pee->yy+TILEWH+4; modexClearRegion(page, tx, ty, 4, 4, pee->coor); if(pee->tile) - modexClearRegion(page, (rand()*TILEWH)%page->width, (rand()*TILEWH)%(page->height), TILEWH, TILEWH, 0); + modexClearRegion(page, (rand()*4)%page->width, (rand()*4)%(page->height), 4, 4, 0); else modexputPixel(page, rand()%page->width, rand()%(page->height), 0); //printf("%d %d %d %d %d %d\n", pee->xx, pee->yy, tx, ty, TILEWH);