Questions tagged [gamecanvas]

The GameCanvas class provides the basis for a game user interface.

In addition to the features inherited from Canvas (commands, input events, etc.) it also provides game-specific capabilities such as an off-screen graphics buffer and the ability to query key status.

8 questions
3
votes
1 answer

Blackberry ads on J2me GameCanvas

I want to add blackberry ads on my GameCanvas. But we can only show the Blackberry ads on Blackberry MainScreen. Is there any way to show the ads on GameCanvas?
Mubbashar
  • 613
  • 6
  • 15
2
votes
2 answers

Java2 ME: keyPressed() not working inside GameCanvas

I know J2ME is pretty outdated, but I have to do this for an assignment. Currently, I am using the GameCanvas class, and my game is a thread, so my code looks something like this.. class Game extends GameCanvas implements Runnable { public…
matt
  • 2,857
  • 7
  • 33
  • 58
1
vote
1 answer

How can i make the bullet not move with the character when looking either right or left?

I am having a problem where when I fire either left or right, once i move the character the bullets direction will change while its still fired. I am using the protagonist picture as the condition to either shoot right or left but i would like the…
1
vote
1 answer

Java ME Drawing multiple dynamic Sprites on GameCanvas

I want to draw on GameCanvas multiple dynamic Sprites such as gun shots. I have 2 main classes: GameCanvas and GameController GameController holds a Vector of my gun shots. GameCanvas has an access to GameController's Vector of Sprite and it also…
jkigel
  • 1,592
  • 6
  • 28
  • 49
0
votes
1 answer

Why is the ball walking inside the paddle in my breakout game javascript?

I created a game based on Mozilla Developer's breakout game, but at a certain moment when the ball collides with the paddle, it zig zags inside it and comes out. How can I solve this problem? Here is my javascript code: const canvas =…
0
votes
2 answers

JS Canvas game using keypress event to modify speed when holding shift button

I am learning how to make a game with the canvas via JavaScript, and I have the arrow keys set to move a block on the canvas. I want to add a modifier in which while holding shift, the block moves twice as fast, and I cannot get my function to work…
Joel Lark
  • 29
  • 5
0
votes
2 answers

Canvas games - is it worth learning?

I am very into creating a canvas game, but im not sure if its worth the effort, and this is why... Flash has Adobe Flash which is an interface for creating very complex animations, games and apps. So im sure that a program is soon to come where,…
Tomas Katz
  • 1,653
  • 1
  • 13
  • 27
0
votes
1 answer

AS3 change stage size - virtual camera

Edit: Is there any way to adjust the stage size and position from inside flash? Hey Im making a flashgame right now, its a 2D game with 2charakters. You can move them right now trought the level as you want to, but my problem is, its only one fourth…
tschery
  • 153
  • 2
  • 15