Results 1 to 10 of 13

Thread: Help SDL behaves strangely...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Oh I forgot. To make this clear and precede any further questions about this.WILL so you are saying my program in the end should look something like this:
    Code:
    Program torpedo;
    uses sdl;
    {-type definitions
    -variable definitions
    -input procedure with local mouse coordinate variables
    -other game procedures such as drawing the boards and other sprites, playing the sounds
    -calculating the shots etc...}
    BEGIN
    //-graphics, sound and other initialization.
    While loopconditions=true do
    begin
    {-input procedure
     -other procedures, including looping music, refreshing graphics and gameplay status}
    if somecondition then loopconditions:=false;
    end;
    {-freeing current sdl surfaces except for screen
    -drawing victory/lose screen
    -waiting for keypress for example
    -shutting down SDL}
    end.
    Last edited by asdfarkangel; 27-10-2010 at 09:38 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •