top of page
COZY COZY WORLD
I am an ordinary Japanese salaryman in his 50's.
The posts are mostly about my attempts at programming which I have taken up recently to maintain logical thinking.
And a bit about my travels around the country.
Home: ようこそ!
Search
cedarcantab
Feb 28, 20226 min read
Understanding 2D Physics Engines with Phaser 3, Part 5: Circle vs Line Collisions
Handling collisions between Circle and Line We covered the topic of colliding circles against axis aligned lines. In this post we cover...
34 views0 comments
cedarcantab
Feb 22, 20225 min read
Understanding 2D Physics Engines with Phaser 3, Part 4: Circle Collision Response with Mass
Collision Response in Circle2Circle with mass In the previous post I developed the crudest form of collision response; that of two...
2 views0 comments
cedarcantab
Feb 9, 20224 min read
Physics Simulation in Javascript: Circle to Circle Collision Resolution
Resolution of collisions between two circles In the previous post we discussed how to assess whether two circles are colliding, or...
16 views0 comments
cedarcantab
Feb 7, 20223 min read
Physics Simulation in Javascript: Circle to Circle Collision Detection
Collision Detection and Collision Resolution between 2 Circles One of the core functions of a physics engine is of course to detect when...
29 views0 comments
cedarcantab
Feb 4, 20227 min read
Phaser Coding Tips 7 Revisited: Creating a Shoot-em-up Tutorial
For those new to the art of creating shoot-em-up games using Javascript/Phaser framework like me, there is a fantastic tutorial here by...
76 views0 comments
cedarcantab
Feb 1, 20224 min read
Understanding 2D Physics Engines with Phaser 3, Part 1.6: Affine Transformation Matrix
Phaser 3 TransformMatrix In the previous post we looked at how a point can be rotated about the origin through multiplying the position...
5 views0 comments
cedarcantab
Jan 31, 20224 min read
Understanding 2D Physics Engines with Phaser 3, Part 1.5: Rotation Matrix
There is one special type of matrix that will come up time and time again, particularly we start to deal with rotating bodies; that is...
3 views0 comments
cedarcantab
Jan 29, 20223 min read
Understanding 2D Physics Engine with Phaser 3, Part 1.3: The Cross Product
The Cross Product Some mathematicians will tell you that the vector cross product does not exist in 2D. If you search for a wiki page on...
10 views0 comments
cedarcantab
Jan 27, 20223 min read
Physics Simulation: Vector object
2D Vectors in Javascript Before I start actually trying to code the laws of physics, it's useful to remind ourselves about vectors and...
15 views0 comments
cedarcantab
Jan 26, 20224 min read
Physics Simulations in Javascript: Introduction
(Let's code a Physics Engine from scratch) When you code any game involve stuff moving about and colliding with each other using some...
28 views0 comments
cedarcantab
Jan 21, 20224 min read
Space Invaders in Phaser 3 (Part 15): Beginning Game Sequence & Flashing Text
In this post I look at the beginning of game sequence. Prompt Player Screen In the original game, when the game starts, the screen is...
4 views0 comments
cedarcantab
Jan 21, 20223 min read
Space Invaders in Phaser 3 (Part 14): Typewriting Text and the End of Game
Game Over Sequence When the player is hit, and last life is lost it is game over. As soon as the player is hit, the aliens stop moving,...
3 views0 comments
cedarcantab
Jan 15, 20229 min read
Space Invaders in Phaser 3 (Part 9): Drawing the Shields
I am sure you would be familiar with hte 4 shields in the game. The distinguishing feature is the way the shields get damaged gradually...
8 views0 comments
cedarcantab
Jan 12, 20226 min read
Space Invaders in Phaser 3 (Part 7): Heads Up Display
Further to the previous blog, this is another simple and short one, where I document the way I created the "heads-up-display" (HUD)....
5 views0 comments
cedarcantab
Jan 10, 202214 min read
Space Invaders in Phaser 3 (Part 5): Drawing and Moving the Invaders
Now we start getting into the guts of the game. Drawing and moving the aliens. For those who have played the actual game, the behaviour...
5 views0 comments
cedarcantab
Jan 10, 202211 min read
Space Invaders in Phaser 3 (part 4): The Splash Screen (or at least a part of it)
The order is a bit backwards, but before I go onto documenting the guts of the game, here's a post about how I created the splash screen....
9 views0 comments
cedarcantab
Jan 10, 20229 min read
Space Invaders in Phaser 3 (Part 3): Making the Player shoot
In the previous post I documented how I created the Space Invader' player which can move left and right by pressing the cursor keys. In...
14 views0 comments
cedarcantab
Jan 9, 20224 min read
Space Invaders in Phaser 3 (Part 1): Structuring the Game Code
Having played the game in the arcades in my teenage years a lot, I needed to understand the game logic. There are numerous tutorials on...
26 views0 comments
cedarcantab
Dec 4, 20212 min read
Danmaku using Phaser 3 (lesson 40 part 6): Angle Offset as Arrays
We continue our series of accepting arrays as parameters - in this post, it is the angle offset paramter. Changing the angle of the...
5 views0 comments
cedarcantab
Nov 28, 20213 min read
Danmaku using Phaser 3 (lesson 40 part 4): Curve, Gravity, Acceleration, Rotation as Arrays
I continue to expand the scope of parameters which can be passed as arrays. With parameters that are passed "as-they-are" to the...
3 views0 comments
Home: Blog2
Home: 配信登録
bottom of page