Тёмный
No video :(

ULTIMATE Test of My Coding Skills 

Kedrigern
Подписаться 1,1 тыс.
Просмотров 3,1 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@FoxSlyme
@FoxSlyme Месяц назад
Yay, another coding video! 11:18 "I'm gonna copy the carrot code" Or, if you had it as a function, you could just call it... oh yeah, you did it later and even generalized it
@FoxSlyme
@FoxSlyme Месяц назад
16:05 Dive... into the water...ing, yeah, right
@3DPDK
@3DPDK Месяц назад
A pumpkin takes 2 seconds to grow on dry ground. The pumpkin can die at any point during that 2 seconds. Watering the ground makes the pumpkin grow in 1 second which means the odds of dying are cut in half. A second pass over the grid using *get_entity_type()* will tell you if the pumpkin died in that square. If it did, replant it. If you then (loop) test that square until the pumpkin fully grows before moving on, when you reach the last square you will have a "mega pumpkin" the size of the grid.
@KedrigernGaming
@KedrigernGaming Месяц назад
I do something similar (coming up in the next video on Tuesday) but now I see I could probably optimize it a lot. I try to keep the code quite simple which can sometimes go against good optimization.
@leamir0
@leamir0 Месяц назад
30:15 those are called speed upgrades, at the very top
@KedrigernGaming
@KedrigernGaming Месяц назад
Takes me some time to realize these things. And even longer to edit the videos. So by this time, I have a very speedy drone xD
@PennyEvolus
@PennyEvolus Месяц назад
as a dev im dying right now this was painful to watch it reminded me of when i started programming😭
@realdragon
@realdragon Месяц назад
You can upgrade drone so it goes faster
@KedrigernGaming
@KedrigernGaming Месяц назад
These videos are hard to edit (takes time). My present drone in flying faster than light lol
@poorlittlemonkey
@poorlittlemonkey Месяц назад
The visualization of running code is really cool! Does anyone know if that’s custom for this game?
@KedrigernGaming
@KedrigernGaming Месяц назад
Do you mean how the currently executed lines get highlighted in the editor? Given that the language is custom (as other comments point out under this video) I would say the highlighting is custom as well (and dare I say easy to make since you 'parse' the commands yourself). I myself don't like because as the code execution speed increases, it just starts flashing very fast.
@leamir0
@leamir0 Месяц назад
25:30 you set world size to a var, you didnt break anything lol. You're just not setting the var again lol
@KedrigernGaming
@KedrigernGaming Месяц назад
Damn :/
@dozwhite
@dozwhite Месяц назад
This is what i wanted to point out lol
@leamir0
@leamir0 Месяц назад
22:26 why dont u make sure it didnt plant any pumpkings before harvesting? You eould get the yield of the whole field ^3 Edit: there is a function for getting the plant in ur corrent tile Edit: theres no way im reading ur mind (28:00)
@KedrigernGaming
@KedrigernGaming Месяц назад
Yeah, have to go step by step :D
@leamir0
@leamir0 Месяц назад
1:13 why do you buy seeds if u don't use them? Pls fix /J Would be nice if u fixed tho Edit: nvm u fixed it
@FoxSlyme
@FoxSlyme Месяц назад
I'm still not quite sure why do you iterate over the world size instead of just going until you loop around move(North) if get_pos_y() == 0: move(East) Then you can just ignore the world size unless you really need it for something specific like a giant pumpkin check
@KedrigernGaming
@KedrigernGaming Месяц назад
Isn't it faster? get_pos_y() takes time to execute and I like to make my layout dependent on the coordinates.
@FoxSlyme
@FoxSlyme Месяц назад
@@KedrigernGaming How much time does it take exactly?
@KedrigernGaming
@KedrigernGaming Месяц назад
'1 command worth' or '1 time unit' is the wording I think :D
@tarsow7741
@tarsow7741 Месяц назад
because that is much worse than world size, you would need to use get_pos every iteration, what would mean about world_size² time wasted, in contrast to the world_size() function that would be called just one time
@gametec_live
@gametec_live Месяц назад
I wonder if the game has its own interpreter or if its actually a python interpreter behind the scenes... Maybe the Code is saved to a file somewhere? Then you could use a proper text editor...
@KedrigernGaming
@KedrigernGaming Месяц назад
Worst case I could copy&paste it into the in-game editor but where is the challenge in that, right? Imagine a video where I don't mess anything up. Unthinkable
@leamir0
@leamir0 Месяц назад
The game says it's not Python, it's a custom language. As for using external editor/modifying filés directly, all scripts are in a save folder "import" statements are ignored.There is a setting for it to watch file changes. Use Python for Intellisense Edit: check the "External Editor" documentation entry for a better explanation and paths
@alanibrahim1059
@alanibrahim1059 Месяц назад
Is this an actual game? Can I play it or not?
@KedrigernGaming
@KedrigernGaming Месяц назад
The farmer was replaced is the name of the game ;)
Далее
The 100 Games That Taught Me Game Design
2:13:14
Просмотров 1,3 млн
I was hired to automate farming...
24:17
Просмотров 473 тыс.
This is Why Programming Is Hard For you
10:48
Просмотров 809 тыс.
Linux from Scratch
2:35:42
Просмотров 154 тыс.
My Python-Automated Pumpkins are Now Efficient...
57:40
Decrusting the tokio crate
3:31:48
Просмотров 86 тыс.
The Entire History of RPGs
2:43:35
Просмотров 3,2 млн
The Farmer Was Replaced, timed run in 29:58 [no code]
30:46
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,5 млн
2022 Yearly Blitz Arena: TRICKY CHESS
3:57:16
Просмотров 986 тыс.