我18岁时,在仅仅一周内学会Lua后,独自编写了一款射击游戏。

4 分•作者: DamixLord•3 个月前
大家好。我刚开始接触“真实”的编程世界,因为我以前只是一个人在房间里,完全在自己的电脑上写代码。我叫 NZUKOU DAMIEN(我的用户名是 DamixLord),是一名来自喀麦隆的 18 岁开发者。 我从 12 岁起就迷上了编程。从那时起,我接触过几种语言:Python、JS、Go,现在是 Lua。我也不知道为什么,但我就是喜欢 Lua,没有特别的原因,所以我想学习它。在一周内,我学会了变量、函数、表和面向对象编程(特别是元表,我非常喜欢)。我想做一个项目来检验我的基础是否足够扎实,能够达到中级水平,于是就有了 SPACE CONQUEROR。 我没有采用传统的面向对象方法;相反,我将其与元表混合使用,因为我喜欢它,而且说实话,这非常有趣。我期待你们的反馈、建议等。 快速提醒一下(因为我必须这样做,有些 Reddit 用户因为这个对我大加指责):我确实让 AI 优化了我的代码,使其更具可读性(因为我有时会做一些奇怪的事情,比如声明像高速公路一样长的变量),并且我从网上复制了一些代码片段,因为我的数学和逻辑能力可能很差。我写第一篇文章不是为了炫耀或假装我是个天才(说实话,我有严重的冒名顶替者综合征)。我这样做是为了获得反馈、交流并从错误中学习。 再次感谢!(还有最后一件事:在制作这个项目的过程中,我意识到我的第一个真实项目与埃隆·马斯克 12 岁时编写的 Blastar 非常相似。巧合吗?我留给你们评判)。 项目链接:https://github.com/nzukoudamien/Space-Conqueror
查看原文
Hey everyone. I&#x27;m new to the &quot;real&quot; world of programming because I used to just code alone in my room, strictly on my own PC. My name is NZUKOU DAMIEN (my username is DamixLord), and I&#x27;m an 18-year-old developer based in Cameroon.<p>I&#x27;ve been a fan of programming since I was 12. Since then, I&#x27;ve messed around with several languages: Python, JS, Go, and now Lua. I don&#x27;t even know why, but I just love Lua for no specific reason, so I wanted to learn it. In one week, I learned variables, functions, tables, and OOP (especially metatables, which I absolutely love). I wanted to build a project to check if my fundamentals were solid enough to reach an intermediate level, and that&#x27;s how I made SPACE CONQUEROR.<p>I didn&#x27;t go with a traditional OOP approach; instead, I mixed it up with metatables because I enjoy it, and honestly, it was a blast. I&#x27;m looking forward to your feedback, advice, etc.<p>Just a quick heads-up (because I have to, since some people on Reddit jumped all over me for this): I did feed my code to an AI to make it more readable (because I do weird things like declaring variables that are as long as a highway), and I copied snippets here and there because my math and logic skills can be pretty bad. I&#x27;m not writing my first article to brag or pretend I&#x27;m a genius (honestly, I have major imposter syndrome). I&#x27;m doing this to get feedback, chat, and learn from my mistakes.<p>Thanks again! (And one last thing: while making this, I realized that my first real project is very similar to the one Elon Musk coded when he was 12, Blastar. Coincidence? I&#x27;ll let you be the judge).<p>The Project : https:&#x2F;&#x2F;github.com&#x2F;nzukoudamien&#x2F;Space-Conqueror