Results 1 to 1 of 1

Thread: how would i make the play area of this fullscreen?

  1. #1
    Join Date
    May 2014
    Posts
    203
    Thanks
    28
    Thanked 5 Times in 5 Posts

    Default how would i make the play area of this fullscreen?

    how would i increase the play area of this to fullscreen width/height? just increasing canvas size at beginning only increases the black colored background but the play area remains defined by the positioning of the "Agents" and "Ogres" and menus. problem is, it's extremely sensitive to changes. for example, i only need 1 monster (ogre) and 1 player (agent), but it wont let me change the name of either of them or remove excess agents/ogres, otherwise it breaks the script. the creator of the script claims you can put images in a directory and it will pull the associated images from it to depict the ogres and agents. that doesn't work either. admittedly, the images i have placed in the images directory are much bigger than the space he has alloted for them in the canvas, but you'd think it would show them regardless. i realize this means he's assigned maximum width/height for the images but that's kinda shooting yourself in the leg since it would force the game graphics to be extremely pixelated if the canvas size is increased.
    https://thiscouldbebetter.wordpress....in-javascript/

    isnt there a way with css to tell the canvas to resize to browser width/height, like responsive behavior? and in fact, make all images associated with it, usable at any size to depict the agents/ogres? why isolate it to only one size? can it be changed to percentage instead of pixels so that images scale up and down with canvas resize?
    Last edited by jundo12; 05-05-2017 at 11:33 PM.

Similar Threads

  1. Resolved How can I make my .swf play only when clicked?
    By mathewonsu in forum Flash
    Replies: 4
    Last Post: 11-24-2009, 06:36 PM
  2. How to make a gif play only once?
    By olah92 in forum Graphics
    Replies: 9
    Last Post: 01-03-2009, 10:17 PM
  3. Replies: 5
    Last Post: 10-22-2006, 11:16 PM
  4. How do I make an ad area?
    By rctxtreme in forum Other
    Replies: 3
    Last Post: 04-21-2006, 03:04 AM
  5. How do I make an ad area?
    By rctxtreme in forum Graphics
    Replies: 1
    Last Post: 04-20-2006, 12:25 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
  •