前阵子用AI鼓捣了阵子游戏开发,搞了个太空大战游戏,如下图,  两个小家伙开始玩的不亦乐乎,后来增加了个每天游戏时间限定,限制只能玩10分钟每天。 到后边,除了爆炸效果之后,给游戏增加了个终极武器:核武器, [](https://postimg.cc/2qwfk0Fb) 每次游戏启动核武器后,眼前一强光出现,随后蘑菇云缓缓出现,伴随着巨大的声响,核武器爆破。 嗯,游戏结束了。 想到以前小时侯常常玩的俄罗斯方块游戏,决定用AI开发一款适合小孩子玩的俄罗斯方块。 说干就干那,现在有了AI加持,果然是“走遍天下都不怕”的感觉。 上次开发那个太空大战,因为初开始没经验,代码都写在同一文件里,导致后续升级更新时非常麻烦,加上AI的缺点幻觉等,搞的非常麻烦。 于是这次,我从一开始就简单的定了个模块框架,将文件分成多个,为后续升级和改进提前做好准备。  除了游戏主文件main之外,其它分别为游戏初始化、游戏逻辑、方块、显示、结束画面。 显然,这次的结构比之前明显合理多了,最大的益处,就是我只需要针对单独几个文件进行改进,避免了大模型输出时间过久,以及幻觉导致的一些错误。  初代版本 第一个版本出来后,我尝试玩了下,感觉画面和试玩的感觉都不是很理想。 比如画面这块,没有纹理,几个方块叠加在一起也不好看。 至于游戏的可玩性,操作性方面,也不是很好。比如,按键变换位置,时常会出现变换不了,比如方块靠近屏幕边上时,就会出现无法变换方向。 另外,按键移动,无论是左右移动,或者向下移动,都不够丝滑,移动的很机械,感觉比较差。 我给孩子玩了下,也是验证了我的猜测,孩子们玩了一会,就说不好玩,跑开了。 于是我再次改进了下游戏,这次如下如,  这次无论从画面,或者游戏的流畅、操作性方面,都改进了不少。 目前我将游戏设置了总共10关,从简单到复杂,我玩了多次,目前最新的记录,也只是玩到第7关而已。 哦,这次增加了暂停等,如果到后边过关觉得难的话,可以按空格键暂停。 希望这次的改进,孩子们能喜欢。:)
author | rivalhw |
---|---|
permlink | 6ty5fv |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1","format":"markdown","image":["https://images.hive.blog/DQmdMt3THHwpfbtxLqoSXbPG2AsDoq1jG8AaaSEDNnQzLha/V1.0.png","https://images.hive.blog/DQmR9sLt9zTaddvtQSCbKDASuaDyJDBSX5TWkMG18Ep5Lpw/v3.8.png","https://i.postimg.cc/9M3XBSDp/frame-480.png","https://images.hive.blog/DQmU3rH3UFMsfFseT7NpUUS26QV1PCE1cPu1T9xwJkwKHqa/image.png","https://images.hive.blog/DQmXoTpeVqasGN5bYk56nNjZ82wvPXAgBJpnMDrnjCkfYMh/V0.1.png"],"links":["https://postimg.cc/2qwfk0Fb"],"tags":["kids","story","game","life","cn-reader","cn"]} |
created | 2024-09-16 09:30:57 |
last_update | 2024-09-16 11:57:45 |
depth | 0 |
children | 15 |
last_payout | 2024-09-23 09:30:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 8.612 HBD |
curator_payout_value | 8.599 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,315 |
author_reputation | 1,779,927,843,543,128 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 137,119,695 |
net_rshares | 58,613,829,457,897 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
abit | 0 | 17,507,209,327,189 | 75% | ||
good-karma | 0 | 11,859,310,896 | 1% | ||
deanliu | 0 | 6,038,104,928,121 | 100% | ||
lemooljiang | 0 | 46,579,749,460 | 100% | ||
ace108 | 0 | 1,290,354,547,042 | 28% | ||
jamesbrown | 0 | 1,018,526,693,009 | 100% | ||
magicmonk | 0 | 9,006,499,088,457 | 100% | ||
laoyao | 0 | 50,094,640,195 | 75% | ||
midnightoil | 0 | 177,082,532,342 | 75% | ||
xiaohui | 0 | 15,568,878,667 | 75% | ||
oflyhigh | 0 | 2,943,070,027,179 | 75% | ||
bert0 | 0 | 157,573,672 | 20% | ||
rivalhw | 0 | 2,177,786,897,915 | 100% | ||
helene | 0 | 1,125,841,806,160 | 75% | ||
ffcrossculture | 0 | 193,819,092,270 | 100% | ||
netaterra | 0 | 109,366,382,047 | 10% | ||
penguinpablo | 0 | 227,964,153,440 | 14% | ||
cnfund | 0 | 114,917,036,758 | 50% | ||
funnyman | 0 | 1,465,931,026 | 5.6% | ||
btshuang | 0 | 746,785,498 | 50% | ||
dapeng | 0 | 95,308,713,325 | 100% | ||
esteemapp | 0 | 2,626,616,586 | 1% | ||
lucknie | 0 | 146,123,820 | 100% | ||
dumping | 0 | 111,643,624 | 100% | ||
bxt | 0 | 712,712,481,368 | 100% | ||
sudutpandang | 0 | 21,962,446 | 100% | ||
laodr | 0 | 3,703,201,870 | 100% | ||
passion-fruit | 0 | 12,286,405,696 | 92% | ||
htliao | 0 | 15,843,273,914 | 100% | ||
fortune-master | 0 | 11,939,233,833 | 92% | ||
cryptoemperor | 0 | 3,960,352,666 | 10% | ||
exec | 0 | 1,458,755,318,626 | 75% | ||
eval | 0 | 2,971,382,288,133 | 75% | ||
alphacore | 0 | 7,283,112,449 | 7.12% | ||
joeyarnoldvn | 0 | 555,399,113 | 1.76% | ||
susanli3769 | 0 | 1,410,467,161,905 | 100% | ||
mrpointp | 0 | 672,125,826,832 | 100% | ||
mygod | 0 | 743,197,974 | 50% | ||
catwomanteresa | 0 | 520,892,057,976 | 100% | ||
liangfengyouren | 0 | 3,374,848,026 | 50% | ||
idx | 0 | 20,430,345,101 | 75% | ||
mangoanddaddy | 0 | 3,235,232,207 | 80% | ||
fr3eze | 0 | 1,146,716,451 | 100% | ||
aafeng | 0 | 937,555,279,059 | 100% | ||
cn-reader | 0 | 27,516,704,055 | 100% | ||
floatinglin | 0 | 8,334,341,440 | 100% | ||
mrspointm | 0 | 861,701,147,107 | 100% | ||
liumei | 0 | 11,499,072,438 | 100% | ||
kimzwarch | 0 | 17,521,610,618 | 4% | ||
yellowbird | 0 | 10,277,775,914 | 100% | ||
chenlocus | 0 | 89,569,726,648 | 100% | ||
davidke20 | 0 | 232,765,925,996 | 100% | ||
rosatravels | 0 | 762,586,325,959 | 100% | ||
sorin.cristescu | 0 | 2,782,940,084 | 0.5% | ||
blc | 0 | 4,324,007,001 | 100% | ||
minloulou | 0 | 5,886,112,399 | 70% | ||
metten | 0 | 139,077,914 | 100% | ||
esteem.app | 0 | 308,862,491 | 1% | ||
namchau | 0 | 5,885,405,670 | 70% | ||
jychbetter | 0 | 866,178,026,530 | 100% | ||
cn-book | 0 | 411,492,050 | 100% | ||
paulmoon410 | 0 | 13,222,927,408 | 45% | ||
cn-movie | 0 | 196,888,506 | 100% | ||
angelina6688 | 0 | 7,073,335,364 | 100% | ||
vivia | 0 | 742,016,682 | 100% | ||
ahmadmangazap | 0 | 1,301,899,835 | 0.5% | ||
cryptonized | 0 | 236,820,472 | 14% | ||
tryskele | 0 | 5,461,901,988 | 20% | ||
xiaoli | 0 | 468,399,188 | 100% | ||
yumisee | 0 | 781,152,509 | 50% | ||
joeliew | 0 | 4,602,382,117 | 100% | ||
emmali | 0 | 270,094,103,159 | 100% | ||
vamos-amigo | 0 | 4,739,333,288 | 100% | ||
ethanlee | 0 | 5,845,117,047 | 100% | ||
aellly | 0 | 436,697,807,843 | 100% | ||
tresor | 0 | 61,195,659,947 | 20% | ||
hmayak | 0 | 37,058,538,025 | 100% | ||
archisteem | 0 | 1,277,160,787 | 7.5% | ||
theluvbug | 0 | 7,402,043,402 | 100% | ||
moneybaby | 0 | 634,257,412 | 100% | ||
wittywheat | 0 | 35,007,546,901 | 100% | ||
julian2013 | 0 | 86,306,297,751 | 100% | ||
pet.society | 0 | 14,812,597,395 | 6% | ||
minminlou | 0 | 582,351,048 | 56% | ||
annepink | 0 | 650,503,333,415 | 100% | ||
bichen | 0 | 1,951,146,886 | 100% | ||
sasaadrian | 0 | 15,682,256,631 | 20% | ||
ketcom | 0 | 12,972,827,874 | 100% | ||
starrouge | 0 | 767,718,979 | 37.5% | ||
wherein | 0 | 18,039,944,153 | 75% | ||
zerofive | 0 | 637,009,945 | 37.5% | ||
jacuzzi | 0 | 685,387,272 | 1.4% | ||
cnstm | 0 | 85,820,695,883 | 75% | ||
lianjingmedia | 0 | 694,480,696 | 75% | ||
hungrybear | 0 | 620,741,830 | 14% | ||
pedrobrito2004 | 0 | 17,730,520,499 | 14% | ||
lovelemon | 0 | 363,472,815,781 | 50% | ||
guysellars | 0 | 2,369,252,679 | 100% | ||
epicdice | 0 | 23,507,197,512 | 20% | ||
dailyke20 | 0 | 2,718,165,815 | 100% | ||
isaaclim | 0 | 1,557,388,597 | 100% | ||
ying82 | 0 | 249,066,293,646 | 100% | ||
cxy | 0 | 1,885,252,541 | 50% | ||
atyh | 0 | 387,396,771,949 | 100% | ||
moleah | 0 | 666,034,382 | 100% | ||
therealyme | 0 | 8,066,187,577 | 1.5% | ||
lnakuma | 0 | 42,247,288,449 | 75% | ||
starnote | 0 | 343,816,550 | 100% | ||
moochain.net | 0 | 346,338,113 | 100% | ||
warmstill | 0 | 851,471,842 | 50% | ||
lovequeen | 0 | 408,230,224,105 | 100% | ||
bnk | 0 | 7,165,301,321 | 20% | ||
ecency | 0 | 412,715,483,528 | 1% | ||
ecency.stats | 0 | 347,283,861 | 1% | ||
hive-108278 | 0 | 888,882,736 | 50% | ||
blogstats | 0 | 595,658,545 | 100% | ||
philipmak | 0 | 1,381,765,822 | 50% | ||
netaterra.leo | 0 | 643,880,742 | 9% | ||
drricksanchez | 0 | 56,079,795,484 | 10% | ||
celeste413 | 0 | 920,125,251 | 75% | ||
pishio | 0 | 450,532,708,203 | 10% | ||
alpha-omega | 0 | 80,970,019,622 | 50% | ||
lexansky | 0 | 1,175,287,014 | 100% | ||
eolianpariah2 | 0 | 1,515,647,152 | 0.5% | ||
ilark | 0 | 75,626,576,630 | 100% | ||
diochen | 0 | 12,058,222,115 | 20% | ||
theindiankid | 0 | 1,696,759,066 | 100% | ||
dr-animation | 0 | 737,071,738 | 45% | ||
xiaoyaodidi | 0 | 382,897,158,735 | 100% |
大伟兄,别忘记更换砖块(暂时跳过,换去下一块)。会好玩很多,也给用户个喘息机会。
author | davidke20 |
---|---|
permlink | re-rivalhw-2024916t195158971z |
category | hive-105017 |
json_metadata | {"content_type":"general","type":"comment","tags":["hive-105017","kids","story","game","life","cn-reader","cn"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-16 11:52:00 |
last_update | 2024-09-16 11:52:00 |
depth | 1 |
children | 8 |
last_payout | 2024-09-23 11:52:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 40 |
author_reputation | 944,278,315,766,461 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 137,121,690 |
net_rshares | 0 |
谢谢建议,不过我还没明白你的意思,更换砖块是?
author | rivalhw |
---|---|
permlink | sjwmmg |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2024-09-16 11:59:06 |
last_update | 2024-09-16 11:59:06 |
depth | 2 |
children | 7 |
last_payout | 2024-09-23 11:59:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 23 |
author_reputation | 1,779,927,843,543,128 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 137,121,804 |
net_rshares | 0 |
比如说,出块前,系统会在左方一个小格子,预览下一块是啥。 若我们在做Tetris ,留着一条缝等藤条时,万一没等到,最怕就是出S或Z。出T,L或7还能躺平。所以,这时如果可以按一个键,跳过S块,还有个机会换去下一块。 不知我酱说有没解释到。
author | davidke20 |
---|---|
permlink | re-rivalhw-2024917t04410328z |
category | hive-105017 |
json_metadata | {"app":"ecency/3.1.6-mobile","content_type":"general","format":"markdown+html","tags":["ecency"],"type":"post"} |
created | 2024-09-16 16:44:12 |
last_update | 2024-09-16 16:45:09 |
depth | 3 |
children | 6 |
last_payout | 2024-09-23 16:44:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 122 |
author_reputation | 944,278,315,766,461 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 137,126,491 |
net_rshares | 0 |
大伟哥威武 祝大伟哥及家人,中秋节快乐
author | jychbetter |
---|---|
permlink | re-rivalhw-2024916t161644251z |
category | hive-105017 |
json_metadata | {"tags":["kids","story","game","life","cn-reader","cn"],"app":"ecency/3.2.0-vision","format":"markdown+html"} |
created | 2024-09-16 14:16:45 |
last_update | 2024-09-16 14:16:45 |
depth | 1 |
children | 1 |
last_payout | 2024-09-23 14:16:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 19 |
author_reputation | 1,218,141,387,731,713 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 137,123,947 |
net_rshares | 0 |
祝友哥和他的替身AI节日快乐 😊
author | rivalhw |
---|---|
permlink | sjxo0e |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2024-09-17 01:26:39 |
last_update | 2024-09-17 01:26:39 |
depth | 2 |
children | 0 |
last_payout | 2024-09-24 01:26:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 16 |
author_reputation | 1,779,927,843,543,128 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 137,146,983 |
net_rshares | 0 |
娃有个会做游戏的老爸真不错👍
author | liumei |
---|---|
permlink | re-rivalhw-2024916t1947946z |
category | hive-105017 |
json_metadata | {"content_type":"general","type":"comment","tags":["hive-105017","kids","story","game","life","cn-reader","cn"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-16 11:47:12 |
last_update | 2024-09-16 11:47:12 |
depth | 1 |
children | 1 |
last_payout | 2024-09-23 11:47:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 14 |
author_reputation | 70,058,884,272,651 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 137,121,619 |
net_rshares | 0 |
谢谢,跟孩子玩而已
author | rivalhw |
---|---|
permlink | sjxo0r |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2024-09-17 01:26:51 |
last_update | 2024-09-17 01:26:51 |
depth | 2 |
children | 0 |
last_payout | 2024-09-24 01:26:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 1,779,927,843,543,128 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 137,146,999 |
net_rshares | 0 |
很棒,也想试试。👍🏻
author | mrpointp |
---|---|
permlink | re-rivalhw-2024916t175447998z |
category | hive-105017 |
json_metadata | {"content_type":"general","type":"comment","tags":["hive-105017","kids","story","game","life","cn-reader","cn"],"app":"ecency/3.1.6-mobile","format":"markdown+html"} |
created | 2024-09-16 09:54:48 |
last_update | 2024-09-16 09:54:48 |
depth | 1 |
children | 1 |
last_payout | 2024-09-23 09:54:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 1,083,622,913,777,214 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 137,119,935 |
net_rshares | 0 |
可以试一下,挺好玩👍👍
author | rivalhw |
---|---|
permlink | sjxo1a |
category | hive-105017 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2024-09-17 01:27:12 |
last_update | 2024-09-17 01:27:12 |
depth | 2 |
children | 0 |
last_payout | 2024-09-24 01:27:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 11 |
author_reputation | 1,779,927,843,543,128 |
root_title | 俄罗斯方块,童年的回忆 |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 137,147,015 |
net_rshares | 0 |