Skip to content
Discussion options

You must be logged in to vote

@keawade Try this

const game = new MyEngine({
  canvasElementId: "game",
  width: 240,
  height: 160,
  // artificially bump the physical resolution by 4x to give the sampler more pixels to work with, the logical rez stays 240x160
  pixelRatio: 4, 
  // antialiasing: false sets the sampler to nearest neighbor which can have a tough time when you're moving sub-pixel amounts
  // pixelArt: true does some fancy sub-pixel filtering but preserves the pixel art look 
  pixelArt: true, 
  displayMode: DisplayMode.FitScreen,
  scenes: {
    world: World,
    playerHouse01: PlayerHouse01,
    playerHouse02: PlayerHouse02,
    pokecenter: PokeCenter,
    battle: Battle,
  },
});

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@keawade
Comment options

Answer selected by keawade
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants