跳到正文
DEV Community· Jeevan Chandra Joshi·· 7 小時前AI 評分22

從讓球彈跳到扭轉重力:兩款遊戲展現作者的開發歷程

From Making a Ball Bounce to Bending the Laws of Gravity

AI 導讀

作者從 2022 年的 Ping-Pong 開始學習遊戲開發,並在 2026 年製作以維度切換和重力操控為核心的物理平台遊戲 PhaseDrift。玩家可在 Solar 和 Void 兩個維度間切換,以反轉重力、穿越地形並運用動量;作者亦運用 AI 工具加快構思、實作和迭代,但仍自行理解程式碼、測試及修正問題。

正文

Two games, a few years apart, and a journey from learning the fundamentals of game development to experimenting with physics-driven gameplay.

Game development has always been an interesting space for me. There's something fascinating about turning an idea into an interactive experience where every movement, interaction and decision contributes to the gameplay.

My journey into game development started back in 2022 with a simple project: Ping-Pong.

A few years later, in 2026, I found myself building something quite different: PhaseDrift, a physics-based platformer built around dimension switching and gravity manipulation.

Looking back at these two projects, it's interesting to see how the journey evolved.

1. The Beginning: Ping-Pong (2022)

My first game, Ping-Pong, was a simple attempt to step into game development.

The concept was familiar: a ball, two paddles and the objective of keeping the ball in play. But behind that simplicity was an opportunity to understand how games actually work.

Building it introduced me to some of the fundamental concepts of game development:

  • Game loops: Continuously updating and rendering the game.
  • Physics: Handling ball movement, velocity and direction.
  • Collision detection: Detecting interactions between the ball, paddles and boundaries.
  • Player input: Translating keyboard or user actions into gameplay.
  • Game logic: Managing scores, game states and rules.

It wasn't an ambitious project, but it gave me a starting point and helped me understand the relationship between code and interactive gameplay.

2. Returning to Game Development: PhaseDrift (2026)

After a few years, I returned to game development with a different kind of idea.

This time, instead of recreating a familiar game mechanic, I wanted to experiment with something more unusual.

The idea started with a question:

What if switching dimensions could also change the direction of gravity?

That question became PhaseDrift.

PhaseDrift is a physics-based platformer built around two realities: Solar and Void.

Players can switch between these dimensions to invert gravity, navigate different terrains and use momentum to progress through the game.

The central mechanic connects the game's movement, environment and level design. Switching dimensions isn't just a visual change; it directly affects how the player interacts with the world.

3. Building the Gameplay Experience

With PhaseDrift, the challenge went beyond implementing the core mechanic.

I explored different aspects of gameplay development, including:

  • Physics interactions and gravity manipulation.
  • Player movement and control systems.
  • Collision handling and environmental interactions.
  • Level design and obstacle placement.
  • Visual feedback and player experience.

I also spent time experimenting with how these elements work together. The goal was to make the dimension-switching mechanic an integral part of gameplay rather than just an additional feature.

4. Experimenting with AI-Assisted Development

One interesting part of building PhaseDrift was the use of AI-assisted development.

I experimented with AI tools to explore ideas, speed up implementation and iterate on different parts of the game.

It helped make experimentation faster, but the development process still involved understanding the generated code, testing implementations, identifying issues and refining the overall experience.

For me, AI became another tool in the development workflow—not a replacement for understanding the underlying systems.

5. Looking Back: Two Projects, Different Stages

Comparing these projects is a good way to see how my approach to game development has evolved.

Ping-Pong was about understanding the building blocks: game loops, physics, collision detection and basic game logic.

PhaseDrift gave me the opportunity to combine those fundamentals into a more involved gameplay experience, experiment with interconnected mechanics and explore a different development workflow.

The projects are very different in scope and concept, but both started with the same thing: curiosity and the desire to build something interactive.

Try Both Games

If you'd like to explore the projects yourself, both are playable in the browser.

🏓 Ping-Pong

⚡ PhaseDrift

What's Next?

These two projects represent different stages of my journey into game development.

From understanding how to make a ball bounce to creating a platformer where gravity itself becomes part of the gameplay, it's been an interesting progression.

I'm looking forward to experimenting with more ideas, building new experiences and continuing to learn along the way.

Still building. Still experimenting. Still learning.


Have a look at the games, try them out, and let me know what you think!

來源:DEV Community · dev.to