Not signed in (Sign In)
Welcome guest!
Want to take part in these discussions? Please Sign In or Apply for membership now!
    • CommentAuthorjain
    • CommentTimeSep 17th 2009 edited
     
    DiScusS hErE aBOut the FrisT GAmInG prOjecT!!!
  1.  
    thanks jain,but in simple font.:P
    • CommentAuthorvijparas
    • CommentTimeSep 17th 2009
     
    here is link of first tutorial on allegro that all members of cuclante game development team should go through so as to get some knowledge about allegro library.IN this tutorial loading,editting and dispaly of bitamp images using diff functions is discussed.
    http://www.loomsoft.net/resources/alltut/alltut_index.htm
    go through all 9 chapters gievn in tutorial.
    • CommentAuthorvijparas
    • CommentTimeSep 17th 2009
     
    here is the second tutorial of allegro library.IN this all I/O functions like textout_ex is expalined apart from that drawing images like circle rectangle is also explained lot of examples and game cdes vailable which will help u out in getting grip over allegro library.Go through the codes and explanation of functions given at bottom of page and plz post ur queries in this thread so we can work it out as soon as possible
    http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegfiles
  2.  
    21 C:\Dev-Cpp\main.cpp expected primary-expression before '{' token

    polygon(screen,{300,160,300,200,340,200,340,160},makecol(255,0,0));

    wats the error????
    • CommentAuthorjain
    • CommentTimeSep 19th 2009 edited
     
    @manpreetkaur:
    U can use this syntax to draw a polygon..

    polygon (bmp, sides, vertex[sides * 2], color);
  3.  
    @manpreetkaur:
    user syntax is wrong { never come ad argument.. , re-check the syntax
  4.  
    @sanchit
    syntax is correct


    104 C:\Dev-Cpp\include\allegro\inline\draw.inl too many arguments to function `void polygon(BITMAP*, int, const int*, int)'

    as if i dont use '}' braces compiler gives the abv error
  5.  
    Draws a filled polygon with an arbitrary number of corners. Pass the array "vertices" in one of three possible formats:


    a):

    vertices={{x=100,y=100},{x=200,y=130}, ... ,{x=130,y=200}}

    or

    b):

    vertices={{100,100},{200,130}, ... ,{130,200}}

    or

    c):

    vertices={100,100,200,130, ... ,130,200}



    All three ways of passing vertices coordinates are legal and will be detected automatically.

    Third way is tricky. Number of items in a table must be even.

    Example:

    allegro.clear_to_color(screen, makecol(255, 255, 255));
    allegro.polygon(screen, { 50, 50, 100, 100, 100, 150,
    50, 200, 0, 150, 0, 100 }, makecol(0, 0, 0));




    source:http://luallegro.luaforge.net/api/primitives.htm
    • CommentAuthorvijparas
    • CommentTimeSep 20th 2009
     
    manpreet the syntax given by u wont work...check the below synatx
    rect( screen, 70, 70, 90, 90, makecol( 0, 0, 255));
    make certain changes in accordance with parameters of polygon.if still error comes do reply. will check out
    rect() and rectfill() draw rectangles which start at the point defined by the second and third parameters and end at the point defined by the fourth and fith parameters.
    • CommentAuthorvijparas
    • CommentTimeSep 20th 2009
     
    @manpreet
    have u added the header file refferd in the tutoriaol reffered by u plz make sure add it as it may be giving error due to this or go for the function given by me in previous commnet as it needs jst needs basic allegro library<allegro.h>.
  6.  
    @paras
    this works
    but wat if i want to draw a pentagon or hexagon....i cant be able to find the error
    nd yes i wanna correct u rect(bmp,x1,y1,x2,y2,makecol()) ......
    as the rectangle starts and ends at the same point so the co-cordinates here represent the diagonal of the rectangle......
    • CommentAuthorvijparas
    • CommentTimeSep 20th 2009 edited
     
    actually very frankly i havent tried this as we are busy in prep of tecch fest so we will be covering all things practically after 2oct.rite now we have jst read all theoritical concepts so we can help u out in that
    • CommentAuthorvijparas
    • CommentTimeSep 20th 2009 edited
     
    it feels gr8 all of u showing gr8 intrest in initiative taken by us.
    cheers!!!!!!!!!!!
    • CommentAuthorjain
    • CommentTimeSep 20th 2009
     
    @manpreet Nd @vijparas:

    syntax:

    void polygon(BITMAP *bmp, int vertices, const int *points, int color);

    Explanation:

    Draws a filled polygon with an arbitrary number of corners. Pass the number of vertices and an array containing a series of x, y points (a total of vertices*2 values).

    Example:

    int points[12] = { 50, 50, 100, 100, 100, 150,
    50, 200, 0, 150, 0, 100 };
    ...
    .......
    polygon(screen, 6, points, makecol(0, 0, 0));
    • CommentAuthorarushi
    • CommentTimeSep 23rd 2009
     
    hey m nt abl 2 update the libraries in dev c++ thru devpack.org
    its sayin 'not able to connect to remote site try another mirror site'
  7.  
    could be because of busy server or error in connection because of proxy settings.
    I will further look into this.
    • CommentAuthorarushi
    • CommentTimeSep 23rd 2009
     
    no yar...no server prob . i hav tried around 50 tyms. evn avinash tried 2day bt no soln.

    can i gt d liraries n al stuf 4m u guys..wil dat work..??
    • CommentAuthorvijparas
    • CommentTimeSep 23rd 2009
     
    no yaar u have to get libraries updated on ur own..................
  8.  
    http://devpaks.org/details.php?devpak=1
    • CommentAuthorarushi
    • CommentTimeSep 24th 2009 edited
     
    hey i hav instald dat....thnx yar...its workin nw..
  9.  
    how to delete the previous value in while loop.........
    like i want to change the dimensions of a figure(line) each time the while loop execute.
  10.  
    So everytime is while loop put a black BITMAP on screen to erase all data.
    Then re draw the clock everytime while loop is exec.
    P.S. Read abt double buffering will help.
  11.  
    dino.codeplex.com is the project development area..every source code with exec would be uploaded there.
    I request all to create your account on the website and report your username back to cuclante@gmail.com so we would add you as developers..
    P.S Abhi empty hai project space...srry
  12.  
    Sorry we are unable to upload the source code for DINO . Only can assure you that work is in progress and a meeting would be announce before session breaks before diwali.
    P.S chd.osscamp.in is on, kindly do check that out