前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【看动漫学编程】程序员在异世界生个娃 第一篇:太极村

【看动漫学编程】程序员在异世界生个娃 第一篇:太极村

原创
作者头像
1_bit
修改2021-02-16 11:10:56
3130
修改2021-02-16 11:10:56
举报
文章被收录于专栏:我的知识小屋我的知识小屋

前言

作者文笔比较水,还请见谅。

以下内容还将使用视频动态漫画表现,剪辑完将会贴出链接。

小说剧情为链接知识点设定,部分篇幅可能没有技术知识点还望谅解。

由于没有经费支持,所以画出来的东西是我自己用代码慢慢画的,质量不好效果也不好,还望见谅。

代码自己写了个小工具,还是个demo,只能自己用用。工具将会随着个人需求逐步更新~

使用链接:/developer/article/1929494

代码仓库:https://codechina.csdn.net/A757291228/draw_pixel/-/tree/master

0篇:太极村

太极世界,码道为尊。

这个世界的人,被称为开发者。

弱小的开发者只能够使用基础术法,而强大的开发者可以一念成山河、一发成世界。

太极世界无边无际,每时每刻在太极世界边缘都有新的小世界诞生,或又有新的小世界灭亡。

在整个大陆最中心存在着一条混沌地带。在混沌地带最中心,有一个村庄,叫做太极村。

整个太极村一共有20多万人。这个村庄中的最强者叫做忽融。忽融既是村长也是村庄中唯一的术法学院——颈椎病预防学院的院长。

学院正中央有一座高台,高台上插着一把类似于梳子样的武器。据说这是宇宙诞生之初所孕育的世界武器,若有人能将它拔出,可以让太极村重见天日。

01-0篇:零奕

太极村东门太极路一号

零奕正在练习术法。在太极村,每一个人都要练习名叫C的术法,若在5岁前还未学会使用printf进行交流,那么他今后就不能进入学院学习术法做一个强者,留给他时间不多了。

01-1篇:易零

华夏东省

易零是某大厂的算法工程师,他已经好久没下班了。他是部门中最年轻的,但也是看起来最老的。

凌晨4点30分,此时易零刚写完最后一行代码,按下了Enter键。

“怎么感觉有点呼吸不上来?”易零心中嘀咕一声。易零站起来想透透气,突然眼前一黑。

“我...”

“这是要死了吗?”

“也好。”

01-2篇:易零的灵魂

太极村

“嘿...嘿...嘿...”零奕依旧不会说话,在没学会使用交流术法printf前,所有开发者只能发出“嘿”的声音。

突然间,整个太极村混沌四散,半空中突然出现一团银蓝色气团冲向零奕。

“嘿...”零奕怪叫一声,失去意识后倒地。

“这是什么地方?”零奕恢复意识后发现自己在一篇漆黑之中。

“小家伙,你醒了?”零奕顿时吓了一跳。

“小家伙我刚刚查看了你的记忆,你不用嘿,听我说”

“我叫林易,用你们的话说,我就是一个开发者。”

“时间不多了,你的灵魂正在吸取我的灵魂,你将拥有我的一切编程知识,加油吧”林易说完,瞬间消散。

以上所有精灵的绘图逻辑如下

代码语言:txt
复制
#0
zero=[
        'length:6;direction:right;fcolor:black;pos:0,0;symmetrical:13;symmetrical_direction:down;',
        'length:1;direction:right;fcolor:black;pos:-10,-10;symmetrical:7;',
        'length:10;direction:down;fcolor:black;pos:-20,-20;symmetrical:9;',
        'length:1;direction:down;fcolor:black;pos:-10,-120;symmetrical:7;',
]

one=[
       'length:14;direction:down;fcolor:black;pos:0,0;', 
]

#云
cloud=[
        'length:1;direction:down;fcolor:black;pos:0,0;', 
        'length:1;direction:down;fcolor:black;pos:10,10;', 
        'length:3;direction:right;fcolor:black;pos:20,20;', 
        'length:1;direction:down;fcolor:black;pos:50,30;', 
        'length:4;direction:right;fcolor:black;pos:60,40;', 
        'length:2;direction:right;fcolor:black;pos:100,30;',
        'length:1;direction:right;fcolor:black;pos:120,20;',
        'length:1;direction:right;fcolor:black;pos:130,10;',
        'length:2;direction:down;fcolor:black;pos:140,0;',
        'length:1;direction:down;fcolor:black;pos:130,-10;',
        'length:1;direction:down;fcolor:black;pos:120,-20;',
        'length:10;direction:left;fcolor:black;pos:110,-30;',
        'length:1;direction:left;fcolor:black;pos:10,-20;',
        'length:1;direction:left;fcolor:black;pos:0,-10;',
]

#牌匾
plaque=[
        'length:20;direction:right;fcolor:black;pos:0,0;',
        'length:21;direction:up;fcolor:black;pos:200,0;symmetrical:7;',
        'length:10;direction:left;fcolor:black;pos:200,200;symmetrical:39;',
        'length:10;direction:up;fcolor:black;pos:100,200;symmetrical:49;',
        'length:50;direction:right;fcolor:black;pos:100,300;',
        'length:21;direction:up;fcolor:black;pos:490,0;symmetrical:7;symmetrical_direction:left;',
        'length:16;direction:left;fcolor:black;pos:420,200;',
]

#忽融
face1=[
        'length:20;direction:right;fcolor:black;pos:0,0;symmetrical:15;symmetrical_direction:down;',
        'length:15;direction:down;fcolor:black;pos:0,0;',
        'length:1;direction:down;fcolor:black;pos:200,-10;',
        'length:1;direction:down;fcolor:black;pos:210,-20;',
        'length:13;direction:down;fcolor:black;pos:220,-30;',
        'length:3;direction:left;fcolor:black;pos:220,-150;',
]
eye1=[
        'length:5;direction:right;fcolor:black;pos:0,0;symmetrical:7;symmetrical_direction:down;',
        'length:8;direction:down;fcolor:black;pos:0,0;symmetrical:5;',
        'length:1;direction:down;fcolor:black;pos:20,-20;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-20;',
        'length:1;direction:down;fcolor:black;pos:40,-20;',
        'length:1;direction:down;fcolor:black;pos:20,-30;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-30;',
        'length:1;direction:down;fcolor:black;pos:20,-40;',#眼珠
        'length:1;direction:down;fcolor:black;pos:40,-40;',
        'length:1;direction:down;fcolor:black;pos:20,-50;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-50;',
        'length:1;direction:down;fcolor:black;pos:40,-50;',
]

eye2=[
        'length:5;direction:right;fcolor:black;pos:0,0;symmetrical:4;symmetrical_direction:down;',
        'length:4;direction:down;fcolor:black;pos:0,0;symmetrical:5;',
        'length:1;direction:down;fcolor:black;pos:20,-20;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-20;',
        'length:1;direction:down;fcolor:black;pos:40,-20;',
        'length:1;direction:down;fcolor:black;pos:20,-30;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-30;',
]

eye3=[
        'length:5;direction:right;fcolor:black;pos:0,0;symmetrical:3;symmetrical_direction:down;',
        'length:3;direction:down;fcolor:black;pos:0,0;symmetrical:5;',
        'length:1;direction:down;fcolor:black;pos:20,-20;',#眼珠
        'length:1;direction:down;fcolor:black;pos:30,-20;',
        'length:1;direction:down;fcolor:black;pos:40,-20;',
]

smile=[
        'length:2;direction:down;fcolor:black;pos:0,0;symmetrical:9;',
        'length:9;direction:right;fcolor:black;pos:0,-20;',
]

cry=[
        'length:2;direction:down;fcolor:black;pos:0,-20;symmetrical:9;',
        'length:9;direction:right;fcolor:black;pos:0,-20;',
]

hair=[
        'length:1;direction:right;fcolor:black;pos:0,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:30,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:60,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:90,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:120,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:150,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:180,0;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:210,0;',#内存条金手指
]

body=[
       'length:22;direction:right;fcolor:black;pos:0,0;symmetrical:3;symmetrical_direction:down;',
       'length:4;direction:down;fcolor:black;pos:0,0;symmetrical:22;', 
]

leg=[
       'length:5;direction:down;fcolor:black;pos:0,0;symmetrical:8;', 
       'length:3;direction:left;fcolor:black;pos:0,-50;symmetrical:8;', 
]

hand=[
       'length:4;direction:left;fcolor:black;pos:0,0;',  
       'length:5;direction:up;fcolor:black;pos:-30,0;',  
       'length:2;direction:up;fcolor:black;pos:-40,50;', 
       'length:2;direction:up;fcolor:black;pos:-20,50;', 
]

#高台
step1=[
        'length:18;direction:right;fcolor:black;pos:0,0;symmetrical:38;',  
        'length:5;direction:up;fcolor:black;pos:180,0;symmetrical:20;',  
        'length:21;direction:right;fcolor:black;pos:180,50;',  
]
#内存条
ddr3=[
        'length:28;direction:right;fcolor:black;pos:0,0;',
        'length:2;direction:down;fcolor:black;pos:0,0;symmetrical:28;',
        'length:2;direction:right;fcolor:black;pos:0,-20;symmetrical:27;',
        'length:1;direction:right;fcolor:black;pos:10,-30;symmetrical:26;',
        'length:2;direction:left;fcolor:black;pos:10,-40;symmetrical:27;',
        'length:2;direction:down;fcolor:black;pos:0,-40;symmetrical:28;',
        'length:2;direction:right;fcolor:black;pos:0,-60;symmetrical:27;',
        'length:2;direction:down;fcolor:black;pos:10,-70;symmetrical:26;',
        'length:27;direction:right;fcolor:black;pos:10,-80;',
        'length:1;direction:right;fcolor:black;pos:30,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:60,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:90,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:120,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:150,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:180,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:210,-70;',#内存条金手指
        'length:1;direction:right;fcolor:black;pos:240,-70;',#内存条金手指    
]

#气团
airc=[
        'length:1;direction:right;fcolor:black;pos:0,0;',
        'length:1;direction:right;fcolor:black;pos:10,-10;',
        'length:1;direction:right;fcolor:black;pos:20,-20;',
        'length:1;direction:right;fcolor:black;pos:30,-30;',
        'length:1;direction:right;fcolor:black;pos:40,-40;',
        'length:1;direction:right;fcolor:black;pos:50,-50;',
        'length:1;direction:right;fcolor:black;pos:30,-10;',
        'length:1;direction:right;fcolor:black;pos:40,-20;',
        'length:1;direction:right;fcolor:black;pos:50,-30;',
        'length:1;direction:right;fcolor:black;pos:60,-40;',
        'length:1;direction:right;fcolor:black;pos:70,-30;',
        'length:2;direction:right;fcolor:black;pos:80,-20;',
        'length:2;direction:right;fcolor:black;pos:100,-30;',
        'length:2;direction:right;fcolor:black;pos:120,-40;',
        'length:1;direction:right;fcolor:black;pos:140,-50;',
        'length:2;direction:down;fcolor:black;pos:150,-60;',
        'length:1;direction:right;fcolor:black;pos:140,-80;',
        'length:1;direction:right;fcolor:black;pos:130,-90;',
        'length:1;direction:right;fcolor:black;pos:120,-100;',
        'length:3;direction:left;fcolor:black;pos:120,-100;',
        'length:3;direction:left;fcolor:black;pos:90,-110;',
        'length:1;direction:left;fcolor:black;pos:60,-100;',
        'length:4;direction:up;fcolor:black;pos:50,-90;',
]

enter_key=[
        'length:12;direction:right;fcolor:black;pos:0,0;',
        'length:6;direction:down;fcolor:black;pos:0,0;',
        'length:15;direction:down;fcolor:black;pos:120,0;',
        'length:18;direction:left;fcolor:black;pos:120,-150;',
        'length:9;direction:up;fcolor:black;pos:-60,-150;',
        'length:7;direction:right;fcolor:black;pos:-60,-60;',
]

注:转载请联系作者,违者必究

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 前言
  • 0篇:太极村
  • 01-0篇:零奕
  • 01-1篇:易零
  • 01-2篇:易零的灵魂
  • 以上所有精灵的绘图逻辑如下
  • 注:转载请联系作者,违者必究
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com