CodeTapper's Recent Forum Activity

  • I'm having problems with a Construct 2 project ignoring the canvas size and displaying the project as the full size of the screen. eg:

    <!-- The canvas must be inside a div called c2canvasdiv -->
    <div id="c2canvasdiv" style="width: 618px; height: 463px;">
         <!-- The canvas the project will render to... -->
         <canvas id="c2canvas" width="618" height="463">
              Your browser does not appear to support HTML5...
         </canvas>
    </div>

    I would expect the project to be exactly 618 pixels wide by 463 pixels high, but it takes up the full screen!

    I have tried setting a size in the document ready and resize function too:

    // Start the Construct 2 project running on window load.
    jQuery(document).ready(function ()
    {
         // Create new runtime using the c2canvas
         cr_createRuntime("c2canvas");
         cr_sizeCanvas(618, 463);
    });
    
    jQuery(window).resize(function() {
         cr_sizeCanvas(618, 463);
    });

    I cannot understand how the game window can be more than 618 x 463 when it's hardcoded as the canvas size! Help!

    You can have a look at the game here: http://www.numberworks.com/arcade/steve-storm-and-the-tables-of-doom

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • BluePhaze: I've never played Megaman so can't comment on that, and Mario - is that Mario Bros, Super Mario Bros or something else? I'm only familiar with the original Super Mario Bros on NES, and that game you can certainly fire up for a quick game. But there's an awful lot of levels, enemies, tactics you have to learn etc.

    I think any game you can fire up for a quick blast is a casual game. Most coin-ops would fall into that category by that definition, as they want to kill you off in a couple of minutes so you have to insert more coins.

    My 2c: Based on what I've seen in this thread, I would classify your app as casual.

CodeTapper's avatar

CodeTapper

Member since 23 Jan, 2013

None one is following CodeTapper yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies