[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/g/ BTFO This guy creates a video game without using loops o

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 35
Thread images: 6

File: no-loops.png (869KB, 970x520px) Image search: [Google]
no-loops.png
869KB, 970x520px
/g/ BTFO This guy creates a video game without using loops or Arrays

https://gist.githubusercontent.com/alessonforposterity/832da4fab11e10609dad/raw/258df12378399919ae088ba8731a7571d9c2c947/drgn.txt
>>
>>61278584
>guy creates a video game without using loops or Arrays

Sounds like a typical indie dev
>>
>all that code for a shitty platformer
he's just shit at programming you idiot
he's probably too stupid to understand how loops and arrays work or doesn't know they exist
>>
File: ai-chan.png (416KB, 527x536px) Image search: [Google]
ai-chan.png
416KB, 527x536px
I can't really imagine writing a whole game without using loops or arrays unless it effectively runs itself and doesn't accept user input of any kind, because how else would you accept controls?

I don't even see any gotos in this code.
>>
Wasn't the entirety of Terraria written in if statements?
>>
>>61278702
>there are people who only know baby-tier programming concepts such as oop end eop
>these people can't understand how to even program without arrays or loops
What the fuck? Read a book nigger.
>>
>Not using arrays

literally replaced by generic lists anyway
>>
>>61278584
>or Arrays
>>61278584
>t using loops
idiot op doesn't know about gameloop

i would reccomend reporting this thead as an ad for some shity game /v/

does author of this game manualy putpixel exery pixel on the screen on every possible resolution

also any images already mean array of color data
>>
CS grad tier
>>
>>61278734
How do you keep the game loop running and redrawing the screen without a fucking loop?
>>
>>61278749
Recursion.
>>
>>61278767
Recursion is still a loop.
>>
>>61278749
Not him but Id guess he wants to use recursive functions.
>>
WOW LET ME JUST SYSTEMATICALLY PUT PIXELS DOWN AT EVERY POSSIBLE RESOLUTION FOR EVERY POSSIBLE OUTCOME

I hope nobody is actually defending this garbage code.
>>
>>61278702
It's a lie. He's using a game framework that handles the main loop and he just implements a method the framework will then invoke.
>>
How did this guy create a game if he doesn't understand loops and arrays?
I mean what software did he use that even a retard can create games?
The only time I've worked with GUIs I used Qt, and would like to make some shitty games too.
>>
File: 1484868025532.jpg (21KB, 400x400px)
1484868025532.jpg
21KB, 400x400px
>>61278584
Did you just assume someone's gender on Github?
>>
>>61279371
Barron looks like his mom
>>
>scanned drawings
holy shit
>>
>>61278584
Is it this easy to get your game on Steam?
I better start writing my boilerplate variables.
>>
>>61278767
recursion is a loop, nigger
>>
>>61279323
use rpgmaker or some other shitty software like this
>>
File: anime_girl_sicp.jpg (174KB, 825x713px)
anime_girl_sicp.jpg
174KB, 825x713px
>>61278767
If the language supports tail-call optimization it's implictily converted to a loop, if it doesn't, it would crash due to call stack overflow.
>>
>>61278584
>windows only
>costs money
um
>>
>>61278744
Is it really an array if it's hidden behind a library??
>>
>>61278749
I think the Microsoft game library he uses maintains its own loop and all you do is write functions for events like user input or collisions.
>>
File: 1489300964406.png (127KB, 601x508px)
1489300964406.png
127KB, 601x508px
Oh yes loops that is very important.
>>
why did anyone respond to this thread?
Is just saying BTFO enough to trigger everyone ffs
>>
>>61278813

My stack is the stack that will pierce the heavens.
>>
>>61278818
this.
>>
>>61278767
>THEY'RE NOT LOOPS, THEY'RE HOOPS!! :DDD
>>
>>61278584
holy shit this is just bad programming
>>
File: 1468602076611.jpg (40KB, 550x512px)
1468602076611.jpg
40KB, 550x512px
>>61278584
                        #region cancel knockback
if ((touchLe1 == true || touchRe1 == true) && e1HP <= 0)
{
touchLe1 = false;
touchRe1 = false;
}
if ((touchLe2 == true || touchRe2 == true) && e2HP <= 0)
{
touchLe2 = false;
touchRe2 = false;
}
if ((touchLe3 == true || touchRe3 == true) && e3HP <= 0)
{
touchLe3 = false;
touchRe3 = false;
}
if ((touchLe4 == true || touchRe4 ==
touchRe4 = false;
}
if ((touchLe5 == true || touchRe5 == true) && e5HP <= 0)
{
touchLe5 = false;
touchRe5 = false;
}
if ((touchLe6 == true || touchRe6 == true) && e6HP <= 0)
{
touchLe6 = false;
touchRe6 = false;
}
if ((touchLe7 == true || touchRe7 == true) && e7HP <= 0)
{
touchLe7 = false
>>
>>61278584
>without loops or arrays
easy as fuck, just use recursion and linked lists. anyone who can't do this is a codemonkey and shouldn't bother doing anything other than writing shitty code for other people
>>
>>61278734
why oop is baby tier?
Thread posts: 35
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.