➤ Download GameMaker for free (sponsored): opr.as/JonasGM I never thought I'd be able to fit 5 entire games into a KZbin comment. Feel free to use the code below as you please. :) GAME 1 SOURCE CODE: // In the step event of the duck: vspeed += 1.3 if keyboard_check_pressed(vk_space) vspeed = -24 image_angle = -vspeed * 2 if position_meeting(x, y, obj_floor) room_restart() with obj_gate do { x -= 5 } GAME 2 SOURCE CODE: // In the step event of the mat: x = mouse_x with obj_ball do { vspeed += 0.4 if place_meeting(x, y, obj_mat) { vspeed = -25 hspeed = (x-obj_mat.x) / 8 } move_bounce_solid(false) } with obj_destructable_block do { if place_meeting(x, y, obj_ball) { instance_destroy() with instance_nearest(x, y, obj_ball) do vspeed *= -1 if (sprite_index == spr_multiball_block) instance_create_layer(x, y, "Ball", obj_ball)}} if (instance_number(obj_destructable_block) == 0) room_goto_next() if (instance_nearest(960, -100000, obj_ball).y > 2000) room_restart() GAME 3 SOURCE CODE: // In the step event of the fish parent (enemies and player obj are children): if (instance_number(obj_fish) 0) { motion_add((sprite_index == spr_fish_red) ? point_direction(x, y, instance_nearest(x, y, obj_fish).x, instance_nearest(x, y, obj_fish).y) + sin(x/50+color_get_red(image_blend)*79157)*30 + sin(y/50+color_get_green(image_blend)*79157)*30 : (point_direction(x, y, mouse_x, mouse_y) + sin(x/50+color_get_red(image_blend)*79157)*30 + sin(y/50+color_get_green(image_blend)*79157)*30 + mouse_check_button(mb_right)*180), (sprite_index == spr_fish_red) ? (255/450) : (mouse_check_button(mb_left) and !mouse_check_button(mb_right))*0.2 + clamp(mouse_check_button(mb_right)*(color_get_blue(image_blend)*1.25-point_distance(x, y, mouse_x, mouse_y))/100, -0.25, 1)*0.25) image_angle -= angle_difference(image_angle, direction + sin(x/30)*10 + sin(y/30)*10) * 0.1 image_speed = speed/5+0.5 speed = max(0.2, speed * ((object_index == obj_evil_fish) ? 0.93 : 0.97)) + (random(1) < 0.01)*0.5 if (object_index == obj_fish) and (place_meeting(x, y, obj_evil_fish)) {instance_create_layer(x, y,"Fx", obj_fish_death).image_angle = image_angle instance_destroy()} if (random(1) < ((0.001 + (object_index == obj_evil_fish)) * ((object_index == obj_fish) or (instance_number(obj_evil_fish) < instance_number(obj_fish)/40)))) instance_create_layer(x, y, "Instances", object_index).image_blend = make_color_rgb(200+random(55), 200+random(55), 200+random(55)) }} with obj_evil_fish do {if (instance_number(obj_evil_fish) > (instance_number(obj_fish)/40+1.5)) instance_destroy()}} GAME 4 SOURCE CODE: // In the step event of the car: if ((speed > 0.01) and (!position_meeting(x, y, obj_rocks))) for(dist = 0; dist < 1; dist += 1/point_distance(x, y, x-hspeed, y-vspeed))instance_create_layer(lerp(x-hspeed, x, dist), lerp(y-vspeed, y, dist), "CarTracks", obj_car_track).image_angle = image_angle motion_add(image_angle+keyboard_check(vk_down)*180, (keyboard_check(vk_up) or keyboard_check(vk_down)) * (position_meeting(x, y, obj_rocks) ? 0.2 : (position_meeting(x, y, obj_ice) ? 0.1 : 0.5))) speed *= position_meeting(x, y, obj_rocks) ? 0.9 : (position_meeting(x, y, obj_ice) ? 0.998 : max(0.95, position_meeting(x, y, obj_road) * 0.97)) image_angle += (keyboard_check(vk_left) - keyboard_check(vk_right)) * speed * 0.3 * ((abs(angle_difference(image_angle, direction)) < 90) ? 1 : -1) direction += angle_difference(round((direction-image_angle) / 180) * 180 + image_angle, direction) * (position_meeting(x, y, obj_ice) ? 0 : (0.005 + position_meeting(x, y, obj_road) * 0.05)) with obj_car_track do { if (image_alpha < 0.005) instance_destroy() else image_alpha *= 0.99} with obj_collectible do {if place_meeting(x, y, obj_car) instance_destroy()} // In the Draw GUI event of the car: draw_healthbar(10, 10, 1910, 30, 100-instance_number(obj_collectible)/22*100, c_black, c_yellow, c_yellow, 0, true, true) draw_healthbar(10, 40, 1910, 60, score/50, c_black, c_red, c_red, 0, true, true) if (score++ == 5000) {score = -2} else if (score < 0) {if (instance_number(obj_collectible) > 0) room_restart()} GAME 5 SOURCE CODE: // In the draw event of the building manager: if mouse_check_button_pressed(mb_left) { if !position_meeting(floor(mouse_x/80)*80+40, ceil(mouse_y/40)*40-20, obj_building) { instance_create_depth(floor(mouse_x/80)*80+40, ceil(mouse_y/40)*40, -2000-ceil(mouse_y/40)*40, obj_building).sprite_index = sprite_index sprite_index = choose(spr_building_house, spr_building_road, spr_building_flowers, spr_building_water, spr_building_tree, spr_building_flowers, spr_building_water, spr_building_tree) for(xxx = 40; xxx < room_width; xxx+=80){for(yyy = 20; yyy < room_height; yyy+=40){if (random(1) < 0.1) for(dir=0; dir
@eeshanmarathe33692 жыл бұрын
Now make a game in 1 line of code
@Forcoy2 жыл бұрын
Game 3s code with text wrap is an interesting sight to see
@SteinMakesGames2 жыл бұрын
Finally a convenient way to do source control: The KZbin comment section.
@thedraftingax59632 жыл бұрын
Awesome!
@NinjarioPicmin2 жыл бұрын
Wow that's so cool that you are finally being sponsored by GM
@GameMakerEngine2 жыл бұрын
Loved the video. Was great to work with you Jonas! I wonder if anyone else will take the 10 lines of code challenge 😎
@JonasTyroller2 жыл бұрын
I'd be curious to see that!! 😎
@PumpyGT2 жыл бұрын
@@JonasTyroller 1 scripter vs 1 master
@pyrytheburger38692 жыл бұрын
can you make gms2 back in to a single purchase instead of a subscription based service.
@arandomguythatdoesntpost2 жыл бұрын
i'm thinking of downloading game maker, publish a game, would that be for free?
@pyrytheburger38692 жыл бұрын
@@arandomguythatdoesntpost nope. if you want to publish your game, you have to pay at least 42€ per year
@Dr_Doctor_Lee2 жыл бұрын
a few years later, he finaly, has mastered the fine art of coding, recreating minecraft with only 4 lines of godly code...
@N____er2 жыл бұрын
4 long lines of code
@Tombo222 жыл бұрын
Minecraft is coded in Java, and technically you can write in a single line of code every java program, using different class file, but that's a detail.
@Dr_Doctor_Lee2 жыл бұрын
@@Tombo22 thanks. i feel much smarter now
@_GhostMiner2 жыл бұрын
Jonas: _"I made a game with 10 lines of code."_ *Me: My function that moves the player left and right is 8 lines with NO indentation* 😂 Let's see what I can do with 2 lines of code 🤔
@Maxxomatik2 жыл бұрын
technically you can have all of this in 1 line. the syntax doesn't require any newlines. awesome games though
@JonasTyroller2 жыл бұрын
Yeah, that's true. That's why I specified the rules a bit more clearly at 7:00.
@buzzyrobo2 жыл бұрын
@@JonasTyroller yeah I was about to say I'm pretty sure he already mentioned the rules
@jussivalter2 жыл бұрын
@@JonasTyrollerJonas, I don't know about game maker, but you can do something like this using just one line (pseudo): If (1==1 OR function1() OR function2() OR x = 1 + 2) function3(y = function4(), z = function5(), function6()) Or many many many many!!! other variants of this style. Endless code in one line.
@ScorpioneOrzion2 жыл бұрын
@@jussivalter With js you can have like if (function1() && function2() && function3() ... && true) {} with that all functions give as return value true.
@isheamongus8112 жыл бұрын
Html chicken out
@BeneathTheBrightSky2 жыл бұрын
Me: Only ten lines? Cool! Let's do it! Then I realized... Python: It takes ten lines to make a window because you don't have a game engine.
@maxpoppe2 жыл бұрын
most things in python you can do in 1 line with list comprehension, ternary operators, tuple unpacking, lambda functions and stringing everything together average calculator: print((lambda a:sum(a)/len(a))([int(x)for x in input().split(" ")])) leap year finder (in dutch): print((lambda a: f"{a} is {['g',''][a%4==0 and (a%100!=0 or a%400==0)]}een schrikkeljaar")(int(input()))) real quadratic equasion solver (also in dutch): print((lambda a,b,c:[["geen wortels",f"een wortel {(-b+(b*b-4*a*c)**0.5)/(2*a)}"][b*b-4*a*c==0],f'twee wortels {f"{chr(10)}".join(sorted([str((-b+(b*b-4*a*c)**0.5)/(2*a)),str((-b-(b*b-4*a*c)**0.5)/(2*a))]))}'][(b*b-4*a*c)>0])(float(input()),float(input()),float(input()))) cartesian coordinates to polar coordinates: print(" ".join((lambda a,b: [str(((a**2)+(b**2))**0.5), str(atan2(b,a))])(float(input()), float(input())))) and I've made so many more oneliners, so yea my point, if y ou try hard enough, you could probably reduce the linecount by a lot
@AllanSavolainen2 жыл бұрын
but 10 lines of Perl, buahahahahaaa :)
@BeneathTheBrightSky2 жыл бұрын
@@maxpoppe OK, I admit it was an exaggeration. However, because I work with pygame a lot, I would need 1 line to import pygame, 1 line to make a window, 1 line to set a "run" variable to True, 1 line to start a while loop, 3 lines to check to see if the window should close, and 1 line to update the screen. So, in order to make and constantly update a window that can be closed by the "x" in the corner, I would need 8 lines. There is probably a more efficient way to do this, but I only started learning a few months ago and am almost completely self-taught (thanks reddit/stackoverflow), so a master could probably do that in fewer lines.
@Vivax37942 жыл бұрын
@@BeneathTheBrightSky you can still do all that in one line :p (globals().__setitem__("setvar",lambda k,v:globals().__setitem__(k,v)),setvar("pg",__import__("pygame")),setvar("random",__import__("random")),setvar("sys", __import__("sys")),setvar("locals", __import__("pygame.locals")),setvar("newfood",lambda:setvar("food",pg.Vector2(random.randint(3, 57)*10,random.randint(3, 57)*10))),newfood(),setvar("snakepos", pg.Vector2(30,30)),setvar("snakedir", pg.Vector2(10,0)),setvar("snakebody", []),setvar("clock", pg.time.Clock()),pg.display.set_caption("snake"),setvar("screen",pg.display.set_mode((600,600))),setvar("x",[0]),[(x.append(0),screen.fill((0,0,0)),pg.draw.rect(screen,(255, 0, 0),pg.Rect(food,(10, 10))),[(pg.draw.rect(screen,(255,255,255),pg.Rect(part,(10,10))))for part in snakebody+[snakepos]],snakebody.append(pg.Vector2(snakepos)),snakebody.remove(snakebody[0]),snakepos.__iadd__(snakedir),(setvar("snakepos", pg.Vector2(30, 30)),setvar("snakedir", pg.Vector2(10, 0)))if(snakepos in snakebody or snakepos.x == -10 or snakepos.x == 600 or snakepos.y == -10 or snakepos.y == 600)else None,(snakebody.append(pg.Vector2(snakepos)),newfood(),)if food == snakepos else None,[((pg.quit(),sys.exit(1))if event.type==locals.QUIT else((((setvar("snakedir",pg.Vector2(0,-10)))if event.key==locals.K_w else None,(setvar("snakedir",pg.Vector2(0,10)))if event.key==locals.K_s else None)if snakedir.x!=0 else((setvar("snakedir",pg.Vector2(-10,0)))if event.key==locals.K_a else None,(setvar("snakedir",pg.Vector2(10,0)))if event.key==locals.K_d else None))if event.type==locals.KEYDOWN else None))for event in pg.event.get()],pg.display.update(),clock.tick(10))for _ in x])
@golfgrab94812 жыл бұрын
In my opinion and sry for my bad english Pygame is good for learning codes . But if you really want to make money from coding a game . You should run away from it. Native python code is very slow compared to other languages . Maybe you consider others language or game engine if you want to code a game . But if you really like python or did want to learn new language yet. After you done with pygame you can explore some new stuffs e.g. Data Sci, A.I. or Website,Back End api etc. You will find out much more potential of python 💪💪💪
@maxbradymusic2 жыл бұрын
What a cool concept! I got GameMaker Studio 2 back in 2019 and loved it, but as school took over and I focused more on music in my spare time and didn't really touch the program too much. Maybe I should pick up coding again, I feel really inspired after watching this video!
@JonasTyroller2 жыл бұрын
Making these mini 10 line games in GameMaker was surprisingly fun. Pretty satisfying as they are so fast to make and you can make 2-3 of them each day if you want. Haha. :D
@maxbradymusic2 жыл бұрын
@@JonasTyroller I've got some spare time this weekend, I'll give it a shot!
@igorthelight2 жыл бұрын
@@maxbradymusic This... or Godot ;-) Both are fun!
@murtaza64642 жыл бұрын
Really love the concept for the self building city builder at the end. You should look into fleshing it out, maybe making different terrain expand differently and turning it into a full game! I think it has a ton of potential!
@cedricquilal-lan16162 жыл бұрын
Glad you're back enjoying making new games. Also about the last game, I'm gonna yoink it for upcoming jams.😅
@JonasTyroller2 жыл бұрын
Sure, give it a go! :)
@spoicat54592 жыл бұрын
0:46 We need a game with jonas's *POING* *POING* sound effects
@JonasTyroller2 жыл бұрын
POING
@Khud02 жыл бұрын
I was expecting to see very long lines, but I was surprised how little code you actually needed to make the first 2 games. Since these are "clones" of some very well-known games, it proves that you could technically become a famous game developer by writing just 10 lines of code. 😝
@JonasTyroller2 жыл бұрын
Haha, lol. Never thought about it this way but there is probably a bit of truth to it. Simple but well polished games can do quite well. Or maybe it's just making the correct game at the correct time? Hitting the zeitgeist?
@АлексейСоловьёв-п8х2 жыл бұрын
This simple well-known games was made without any game engines, and they needed a huge amount of optimization for old consoles. Now game development became easier, but games became harder (except for hyper-casuals, IDLEs, etc). What a good balance!
@enderduck42532 жыл бұрын
I know you might not mean that very seriously, but just for fun, I'm going to debunk that theory. Games like those primarily rose to fame because there weren't that many options in the past, while the game market is unbelievably saturated today. Also Jonas managed to fit it in 10 lines because the engine carried, which wouldn't have happened back then, since they didn't have game maker or unity or any other cool engine.
@gamermakingames2 жыл бұрын
As someone who has been attempting to learn game dev, (3 weeks in) this is actually insane
@ChrisVideosGreek2 жыл бұрын
*Puts the entire code into 1 line* "OK now that was the longest line of code l probably wrote" - Jonas Tyroller 2022
@Evoleo2 жыл бұрын
Man, GameMaker is criminally underrated for how simple yet powerful it is, like just compare the code you need to e.x. rotate an object towards the mouse in GML vs Unity, you need like 3 times less code to do the same thing
@SpringySpring042 жыл бұрын
Usually I don't like this type of idea (making a certain type of functionality much easier in one language/environment than under ordinary circumstances where you would have to figure it out yourself), but for GameMaker I'll let it slide because GM does a really good job at making small gamedev very easy and straightforward, whereas an engine like Unity requires a bit more work and therefore more understanding of, for example, rotating an object toward a specific point
@Evoleo2 жыл бұрын
@@SpringySpring04 yeah exactly. and it just got to the point when when I see how just the simplest things are done in Unity it just seems so unnecessarily complicated and bloated after you've seen what's possible (x = 10 instead of transform.position....blah) (I'm only talking about 2D)
@Evoleo2 жыл бұрын
And I love C#, it's just that it's ridiculous to me how people can call Unity beginner-friendly when GM exists and it allows you to make pretty much any game (except for something really bleeding-edge technology-wise) and it's like 10 times faster to implement the same things
@bagandtag43912 жыл бұрын
I think it would've been cool to know how many lines of code there would have been if you formatted your code like you usually do.
@ukaszzajac67042 жыл бұрын
honestly one liners are my favorite pieces of code, they’re so satisfying and in js you can literally completely change the structure of a dataset using one line
@BestTechnoMixes2 жыл бұрын
WOW 10 LINES! Good thing you were being carried by the 1000s of lines of code the is Game Maker.
@michaelperkins11192 жыл бұрын
These car sounds are so realistic. Thought I'm watching a Formula 1 race 😂🤣😂
@gamedevdemonold2 жыл бұрын
I made a game using 1 line and debuging was a mess. Nice video
@JonasTyroller2 жыл бұрын
Oh, you did. Great job!
@gamedevdemonold2 жыл бұрын
@@JonasTyroller yeah it took me 1 week and I also made a video about it. It wasn't long only 2 mins. Please make a video on how to make a good devlog.
@Zer0Flash2 жыл бұрын
ten lines of codes with the curly brackets on seperate lines, damnn
@JonasTyroller2 жыл бұрын
The ultimate flex.
@ImNotGam2 жыл бұрын
That's insane how much you could do in 10 lines of code. I might give it a try in Godot and see what I can do.
@ThankYouESM2 жыл бұрын
Finally! I've been searching for videos like this showing how to create quality graphical games and art with no more than 2000 bytes (which to me is sort of 10 lines of code).
@Vortex-qb2se2 жыл бұрын
I mean if you're gonna format it weirdly, you can write pretty much any code in one line... even if it's supposed to be 2000 lines long...
@blakeevans98862 жыл бұрын
I have an idea for the building/puzle game, like you could only place certain tiles on other certain tiles, like cacti can only be placed on sand or something.
@rodakdev2 жыл бұрын
You love to create games, I love to play games, let's make Valve #SaveTF2!!
@Bababooyii2 жыл бұрын
Jonas:Can you make a game in 10 lines of code? Blueprint developers:I have no such weaknesses.
@Bababooyii2 жыл бұрын
@Barret Wallace No duh,node aren't really lines. That's what I meant.
@mordiemannogenost692 жыл бұрын
and a game engine which does basically everything you need to with premade code.
@unitysparticlesystem2 жыл бұрын
You know you did well when Game Maker Studio sponsors your video. When Jonas uploads I know it's a good day
@powersave22 жыл бұрын
This was super cool! I would love to see some other videos where maybe you break down the code of each one a bit more? Perhaps a secondary challenge where you try to flesh each game out to 100 lines of code, without using all the inception for/if loops?
@RandyAT2 жыл бұрын
I expected every line of code is gonna long as hell but the first game was shorter than I expected. great video btw
@lamenwatch18772 жыл бұрын
6:33 This would be a great game to (given more lines of code) turn into a sort of arcade game where you see how long you survive. Edit: 10:13 This is a lot like GTA on the Game Boy Color.
@SnickarAB2 жыл бұрын
I started coding maybe a couple of days ago and now I finally understand some of the code in programmers videos xD
@conder132 жыл бұрын
That builder game looks really fun! I would want to see a game like that as a full game.
@bimboi2 жыл бұрын
Oh my goodness, very entertaining as usual. I physically reacted to the idea of adding even MORE road types for Driveover just imagining the nested turnery operators!
@greenforest39992 жыл бұрын
It feels really weird how Game Maker has changed over the years, I remember having to write extensions for GameMaker 7, 8, and 8.1 before to add more complex logic and features to games without having multiple page scripts. But now you can just do it in 10 lines.
@marksmod2 жыл бұрын
The step logic would have looked identical back in GM 7 or even earlier. Barely anything has changed as far as I can tell and most of the work has been done on the rendering engine. vspeed, keyboard_check_pressed and image_angle have been around since the beginning, the only thing I don't recognize is position_meeting which seems to check if a point p is within a bounding box
@Pika7822 жыл бұрын
This seems like a cool challenge! Might attempt it.
@usamabinabid30772 жыл бұрын
You are totally awesome man, I am a unity developer and i played your will you snail game. I think now i should try game maker studio 2. I really love your videos and also played your game will you snail too. You are my motivation man ❤️❤️❤️❤️
@assassin_squid2 жыл бұрын
"I like water. Who doesn't like water?" I can hear the underwater track from "Will You Snail?". It haunts me
@thedraftingax59632 жыл бұрын
That’s incredible! This summer my friends and I are making one! And it’s going to be a horror game, based off of that Minecraft-like, underwater adventure, indie game, called Subnautica!
@MikadoVEVO2 жыл бұрын
Will you Snail in 5 lines of Code when?
@JonasTyroller2 жыл бұрын
Ehhhh....
@brujua72 жыл бұрын
The car sounds really crank me up, and I don't laught too often for that kind of stuff, Thank You!!! Btw, the city builder is an amazing game!
@Lugmillord2 жыл бұрын
Wow, this was both very impressive (these games look like really fun minigames) and giving me nightmares from horrible code structure. :D The fish, driving and builder game looked especially nice. I don't think I have seen a game using a cellular automaton like that before. Very creative.
@kashyapp232 жыл бұрын
6:37 best asmr ever lol
@JonasTyroller2 жыл бұрын
"Aggressive Mouth Sounds for Sleep" Hmm.. Time to start a 3rd channel.
@ginofm71422 жыл бұрын
awesome video, I learn a coupple of thing that I dont know in game maker, thanks for the video!
@NewHopeGames2 жыл бұрын
I will also be one to say, it IS very fast to get something up and running in GameMaker. I can go from nothing to a fully playable concept and a fairly complex one in a matter of an hour or two.
@Skeffles2 жыл бұрын
Great video Jonas! I also started out with game maker, I love seeing how it's evolved and still used.
@Napert2 жыл бұрын
So it's 50,000 massive libraries combined
@fenzfendi2 жыл бұрын
You're one of the best and funniest game devs jonas..
@sky_beast51292 жыл бұрын
Now make a game with only 10 assembly instructions
@AgentChick2 жыл бұрын
You could technically make a lot of games in a single line if you're insane enough ;P
@diggitydingdong2 жыл бұрын
7:00
@AgentChick2 жыл бұрын
@@diggitydingdong Yes I watched the video, thank you, lol
@vespirbelmont31312 жыл бұрын
It might be time to try a new challenge! This seems like a ton of fun and the games you've made are really solid for the 10 lines!
@ItsHyomoto2 жыл бұрын
Well, call me uninspired but I recreated the Flappy Duck as shown in three lines of code, and then used three more to make it procedural. If anyone thought ten lines felt small, just know ten was the verbose number of lines. Of course, under the hood GM is processing thousands of lines, but it is only six lines of GML. It really shows off how powerful a lot of GM's tools are though, since with a bit of clever use and abuse we have four more lines to fit more game into. What else could we add :D // oDuck Step vspeed = mouse_check_button_pressed( mb_left ) ? -3 : min( vspeed + 0.14, 4 ); image_angle = -vspeed * 10; if ( place_meeting( x, y, oPipe ) || y > 212 ) game_restart(); // oPipeReset on collision with oPipe, this is the object pipes touch to reset their position other.x += 384; other.y += next[ 0 ] * 16; if ( ++next[ 1 ] == 2 ) next = [ choose( -1, 0, 1 ), 0 ];
@katekyy72 жыл бұрын
In theory, you can even make game in one line, but that would be very VERY hard to read, and some languages don't really like when you do do everything in one line
@Nicolobos772 жыл бұрын
you can write it in one line using ";" to separate every instruction, structure, statements, etc
@sp4c1fy822 жыл бұрын
Ville Cellule could've been perfect for that gamejam, out of control
@thefrenchaxolotl68542 жыл бұрын
Wait this is the guy who made Will you snail That's really cool
@Mimikyu94682 жыл бұрын
I used GameMakerStudio1 as my first ever GameEngine when I was 13, I think.(Now I'm 18). And seeing how it has developed, I think I give it another try, especially when I can't get myself finishing my unity projects.
@qwaneedo32262 жыл бұрын
You should do a challenge where you have to use tons of lines of code for one small game so it ends up super over engineered
@abram-green2 жыл бұрын
I would love to see this as a game jam. Fun video!
@YYYValentine2 жыл бұрын
The city builder gameplay is genious!
@manta_ray2 жыл бұрын
Great video! We should create a game jam with the restriction to only use X lines of code. You would have to post the actual code/YYP and maybe add some other restrictions.
@BadPaddy2 жыл бұрын
Now the question... How much lines of code would it be if the code was formated in an apropriate way?
@Brahvim2 жыл бұрын
Still not a lot, probably just 50 to 100 lines.
@pogchamp10812 жыл бұрын
@@Brahvim yeah
@jaysonbunnell80972 жыл бұрын
A different engine I like is pico-8, which uses lua (tricky after so much practice with oop for me!). I enjoy it!
@absurd73762 жыл бұрын
The third game was actually stunning
@Dummigame2 жыл бұрын
When a game takes the same time to develop as the time you can have fun with it
@SoicBR2 жыл бұрын
Java programmers are literally shaking in disbelief right now
@ChrisM541 Жыл бұрын
Game making programming complexity requirement is directly proportional to the game engine's 'power'. In the future, we'll make games with a simple one line instruction e.g. make a 3D platform game for the following devices (A,B,C) and similar in style to game X, using theme Y.
@NotCursedXD2 жыл бұрын
this was such a smart way to make an ad
@DevCoreFelix2 жыл бұрын
You are a legend, thank you for content.
@j-bit30822 жыл бұрын
I actually understand a bit of this code with 1/2 weeks (and continuing) of experience 😅
@JonasTyroller2 жыл бұрын
Yo, that's cool. Due to the challenge the code is a bit more messy than it usually should be, so that's definitely an achievement! :D
@Flick1192 жыл бұрын
It is really cool seeing zlatan Ibrahimovic making youtube videos, it's good to see you man!
@nathanritter5412 жыл бұрын
Next video: Make Will You Snail with 1000 lines, 100 lines and 10 lines
@temmie33252 жыл бұрын
Me, an intellectual, knowing that semicolons can split statements on a single line
@________________________92 жыл бұрын
honestly for last game,i think its better to just have random objects without spreading,so you can more concentrate on what and where to build,kinda like game islanders.maybe just add some points and logic behind points and thats basically it haha.
@JonasTyroller2 жыл бұрын
Haha. Fair enough. :D
@DeathxStrike182 жыл бұрын
you mean brickbreak, also if your going by "lines" of code just make it all on one line programs only care about ; () and {}. Im not sure if a line has a max length or just keeps incrimenting making the side scroll smaller. vspeed +=; if keyboard_check_pressed(vk_space) vspeed -= 24; image_angle = -vspeed*2; if position_meeting(x, y, obj_floor) roomrestart(); with obbj_gate do { x -= 5} //congrats flappy in 1 line
@GamesBySaul2 жыл бұрын
Well this looked like a lot of fun whilst still being absolutely chaotic, nice work!
@riftmusic52322 жыл бұрын
the last game was really cool, nice video
@queenjamjam2 жыл бұрын
I knew it! I was like is gonna be like flappy bird? 😆
@bellrick28032 жыл бұрын
Love the vid, would like to see more challenges like this!!!
@otto_ueue2 жыл бұрын
Alternative title: German developer rolls his head to make obfuscated code.
@BestBoi82 жыл бұрын
"I can't juggle so many balls!" -Jones Tyroller, 2022
@bullseye09132 жыл бұрын
the thing about gms is you could fit the whole project into one line as indentation is largely irrelevant to the styntax
@_GhostMiner2 жыл бұрын
*10:20** May headphone users rest in peace* 🙂
@denycast2 жыл бұрын
"Puzzle games are easy to make" that made me laugh. 🤣
@haffey22 жыл бұрын
Your content is so amazing, I liked this vid!
@JonasTyroller2 жыл бұрын
Happy you enjoy it. Thanks! :)
@deverellm.63762 жыл бұрын
Ten lines of code... And an ENTIRE GAME ENGINE.
@Vofr2 жыл бұрын
Very cool idea and the last game is my favourite one ❤❤❤
@BookdashYoutube2 жыл бұрын
Jonas, I swear to god, you could make a genuine fortune from making these into basic mobile games with like an hours more coding, then put them on some app stores for free with basic monetization inside the game. This could literally just be 'spend 50p to make your car green' or something. :)
@michaelhannappel19992 жыл бұрын
Those do look like a lot of fun, especially the last one. Also amazing video
@marciomilisse80742 жыл бұрын
Decent vid but a bit misleading bc engine takes care of most of the work, you just set a few variables and called a few functions
@therabidpancake12 жыл бұрын
I know you have hundreds of thousands of subscribers so you probably won't even see this but you should write a book on how to make some small games in Unity or Build Box or some game engine to get people started . Most of the books on Unity are super complicated . I got a book on Blueprint for Unity and the entire book was a tutorial on how to build an animated portal between maps and they had to make it as long and confusing as possible . It is almost like people are not interested in writing good literature anymore as long as it makes money .
@BobbeDev2 жыл бұрын
Jonas please release the Games you can’t Continue torturing us like this
@dbweb.creative2 жыл бұрын
I think I know a loophole for the challenge rules lol... what if you just define a function with many parameters and then just put all the code into arg slots lol Another way you could do is basically assign things inside if statement condition, and then also use the inside of the clause too. Also a for loop basically already has a slot for assigning vars, and inside can be used as well. Maybe even can control the code flow in some weird way like this too.
@findot7772 жыл бұрын
I would love to see you do this with other game engines.
@RngGm2 жыл бұрын
In unity you can make any game using only 1 line of code
@fnoffer2 жыл бұрын
That was actually really entertaining ;) Your humor really reminds me to a friend of mine
@idiotgemr11982 жыл бұрын
Try to make flappy bird using scratch (no tutorials not even one second of one) you are allowed to look at how stuff works tho.
@christophercampbell68842 жыл бұрын
6:35 KZbin compression DESTROYED this.
@pvic69592 жыл бұрын
welllll to be fair the game maker does a lot for you (like the graphics, event handling, collision checks, etc) lol. still coo though!
@puh88252 жыл бұрын
As an intellectual I know that, for a fact, you can write a whole-ass library of functions in just a single line, using any of the "C" languages