看博客学学Android(十一)

原文:

Day 9: It's a shooter, and it has first person perspective. Yet, it is not a darn FPS.

Looks like I'll have a hard time classifing this game when I talk to people. I could say it's a "retro arcade". Although, it differs from retro arcades where you move your ship around and it fires bullets straight. Here your position is static, and gun fires wherever you tell it to. Come to think of it, I've never seen a game that plays exacly like this, so don't try to classify it in some existing genre. The closest I got was "it's like Space Invaders, but without a ship". This got people completely confused.

Today I reworked the alien spawning code. I also redraw all the aliens in white color, so that I can change color at runtime using the same sprite. In case you didn't notice, aliens are single-color. I'm thinking to leave it this way, except for bosses. Maybe just add some glow animation or something like that. Who knows, maybe some artist will see a potential this game has and create some cool graphics. Feel free to contact me about this.

I'm thinking there could be an event in the game when enemies would "upgrade" to better graphics. Accompanied with a message "Aliens have evolved", which would bring in some metallic look and feel, for example.

Explosion code is also unified, so now I just supply a 2D array of "pixels" and enemies get blown to pieces. This has been working for some time, but now I got that code clean and universally usable for any kind of alien. Except maybe bosses, which might fall apart in stages. I still need to ponder on that one.

Anyway, if you're interested in playing, here's an .apk file of what I've done so far. Features are obviously missing, but you can see what I'm up to.

 

第九天:这是一个射击者,同时它拥有第一人视角。但是,它不是一个该死的FPS(第一人称射击类游戏,First-Personal Shooting Game)

看起来,在我和别人谈起这个游戏的时候,我将很难给它一个分类。我会说,这是一个“经典街机”。当然,与经典街机不同的是,你在移动你的飞船,同时它会连续的进行射击。在这里,你的位置是不变的,并且指哪打哪。想想一下,我从来没有在任何游戏里玩到这些,所以不要试图用现有的一些种类来定义它。最贴切的是“它像一个外太空入侵,但是没有飞船”。这会让人彻底的迷惑。

今天我重新编写外星人生成的代码。我也重新用白色重新绘制了外星人,这样使用同样的模型,我可以在运行的时候改变颜色。也许你没有注意到,外星人都是单一颜色的。我想除了首领,就保持这样。或许仅仅加入一些发光的动画或者其它类似的东西。谁知道呢,或者一些艺术家会看到这个游戏的潜力并创建一些很酷的图形。对于这些,可以随时联系我。

我正在思考如何在游戏中,当入侵者升级后,绘制一个更好的图形。例如,伴随着一个“外星人进化”的消息,带有一些金属的外观和质感。

爆炸的代码也是统一的,所以现在我只是提供了一个“像素”的二维数组,以及敌人被炸成碎片。这已经工作了一段时间,所以现在我需要重构代码来保证对不同类型外星人的通用性。除了首领,这可能会导致崩溃。我仍然需要再思考一些时间。

不管怎样,如果你已经有兴趣来玩,这里有我所完成的多有东西的一个apk文件。(游戏)明显是没有完善的,但是你可以看到我在做些什么。

转载于:https://www.cnblogs.com/NorthDrift/p/3417110.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值