Flappy Frog 你给我搞的这个游戏啊…

2016-11-30 12:27:41 +08:00
 Garantion

FlappyFrog

一个基于 Flappy Bird 的魔改,对就是你想的那样。里面的音乐是借鉴别人的,但是 Frog 的图标是自己一个像素点一个像素点画的。好久之前弄得了,给大家图个乐呵,建议不要在实验室和办公室里玩,会笑出声的…… 谢谢大家

Github 地址: https://github.com/Yaoshicn/FlappyFrog

预览图

5195 次点击
所在节点    分享创造
13 条回复
Phariel
2016-11-30 12:48:50 +08:00
Excited!
kokutou
2016-11-30 12:55:00 +08:00
2to3 处理一下就可以在 py3.5 上运行了。。。
```
kiritsugu@KIRITSUGU-PC C:\Python35\Tools\scripts
$ 2to3 -w C:\Users\kiritsugu\Desktop\FlappyFrog-master\flappy.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored C:\Users\kiritsugu\Desktop\FlappyFrog-master\flappy.py
--- C:\Users\kiritsugu\Desktop\FlappyFrog-master\flappy.py (original)
+++ C:\Users\kiritsugu\Desktop\FlappyFrog-master\flappy.py (refactored)
@@ -175,7 +175,7 @@

# adjust playery, playerIndex, basex
if (loopIter + 1) % 5 == 0:
- playerIndex = playerIndexGen.next()
+ playerIndex = next(playerIndexGen)
loopIter = (loopIter + 1) % 30
basex = -((-basex + 4) % baseShift)
playerShm(playerShmVals)
@@ -262,7 +262,7 @@

# playerIndex basex change
if (loopIter + 1) % 3 == 0:
- playerIndex = playerIndexGen.next()
+ playerIndex = next(playerIndexGen)
loopIter = (loopIter + 1) % 30
basex = -((-basex + 100) % baseShift)

@@ -442,8 +442,8 @@
x1, y1 = rect.x - rect1.x, rect.y - rect1.y
x2, y2 = rect.x - rect2.x, rect.y - rect2.y

- for x in xrange(rect.width):
- for y in xrange(rect.height):
+ for x in range(rect.width):
+ for y in range(rect.height):
if hitmask1[x1+x][y1+y] and hitmask2[x2+x][y2+y]:
return True
return False
RefactoringTool: Files that were modified:
RefactoringTool: C:\Users\kiritsugu\Desktop\FlappyFrog-master\flappy.py
```
Garantion
2016-11-30 13:00:14 +08:00
@kokutou 很强,无敌!
caomu
2016-11-30 13:41:12 +08:00
lz 你想搞个大新闻,不过还是图样。之前看到有人做了一个在线版的:
https://bgm.tv/subject/174522
https://github.com/tusenpo/FlappyFrog
Garantion
2016-11-30 13:55:21 +08:00
@caomu
我还是需要学习一个……
那个是在线版的,我的声音素材是直接用的他的。
(主要我搞了个自动无限续的……你可以看看这个: https://github.com/Yaoshicn/DeepLearningFlappyFrog )/滑稽
wizardforcel
2016-11-30 15:19:20 +08:00
你们啊,_____!( 1 分)
ragnaroks
2016-11-30 16:32:46 +08:00
@wizardforcel 这是一道送命题
SourceMan
2016-11-30 17:01:34 +08:00
Garantion
2016-11-30 18:48:44 +08:00
Garantion
2016-11-30 18:49:07 +08:00
@SourceMan 这个是在线版的…… 很给力
wsph123
2016-12-01 00:28:44 +08:00
Garantion
2016-12-01 10:47:37 +08:00
@wsph123 卧槽 卜卜 dalao 竟然出现了
wsph123
2016-12-01 12:11:34 +08:00
@Garantion 容易送命😂

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/324311

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX