Ludum Dare 36 — August 26th-29th, 2016 — Theme: Ancient Technology

Back to Browse Entries

farm defence

by yoel1234 - Competition Entry

the game takes a few seconds to load,there i no preloader.
the game is a computer game, it dosnt work on tablets and smartphones.


movement = w,a,s,d or arrow keys

place farm and traps etc with mouse left click(long click and not on top of other stuff).
also left click to use sword.

build:(1,2,3,4 keys)
farm = press 1 (costs :40 credits)
spike trap = press 2 (costs :10 credits)
wood fence = press 3 (costs :20 credits)
crossbow tower = press 4 (costs :50 credits)

if anything is not clear write in the comments.

/////how to play////////

at first build only farms to build your economy(build farms only).
you can do that until wave 10 or 8.
then you build a crossbow tower on each side.
add some fences and spike trap,survive a few waves.
when you reach 900 credits you win.

the monsters are weak at the first 10 waves,after that you will need traps and turrets.
they have an attack timer so if you hit them fast you wont get hurt.

the monsters will attack farms at random, you will have a small amount of time to save the farm when they reach it.

//////devlopment experience////////

this is my second ludum dare.

i wanted to make a top down shooter. but becuse of the theme i made a top down slasher.
the genre i choose was arcade defence. its easy to implement and ive done this before (i have a tower defence framework prototype and other defence type games under my belt).
after the first day and all the bugs and proformnce issus my dom based js engine have.
i realised i wont be able to implement everything i wanted it wasnt realistic.
i droped sound effects and ui...

next time i wont be using it im moving on to phaser,it has everything i need and more, plus i can port my framework on top of it so my workflow wont change.

the code of this game is a mess becuse of time pressure usually i try to be more efficent and create reusable methods and classes.
i manged to create two behaviors before it went to hell, i had to sacrifice alot to be able to make time for everything.
writing this,uploading the game to github. creating a small 8bit track and a logo (almost two hours).
also i had to use a gif recorder to record gameplay.

i created the --game art-- on the first day, im a programmer not an artist.

in the last ludum dare it was easier i only had to implement 2-4 mechanics to create. an original game is harder to create.
and most of the time 2-4 mechanics is not enough.

but as i get used to it i will be able to take larger scope two day projects.

ludum dare have thought me alot about myself,my tools ,self discipline,staying calm under pressure,setting goals,and "finishing" another game.
this compo/jam is great for the aspiring game developer, which is a dream of alot of us.
i hope one day i will get into the indie industry and make a living from what i love to do.

if you have any critique shot. i know of alot of bugs. but i wouldn't mind hearing from other people.

-------previous ludum dare:------

////////contact form:

------------bugs and error fixed--------------

*" when i buy anything, it spawn far off to the right (outside of the frame), thus at first i tho its didnt spawn. "fixed 3 hours before compo was over thank you Ghen

*player rotation problem,i think i fixed it (mouse difference between game container and global page xy)fixed 3 hours before compo was over.

converted my game framework to phaser and ported the game partially do to lack of time

Downloads and Links


Ghen says ...
Aug 28, 2016 @ 8:50pm

while the game itself not bad, i enjoy it tbh, but, the character didnt look at the mouse correctly

it didnt spin correctly with the mouse, and also when i buy anything, it spawn far off to the right (outside of the frame), thus at first i tho its didnt spawn.

and also it'll be nice if the ground have some texture, cause i dont have any point reference if i'm moving or not , thats what i experience when i cant/not see the farm that i spawn

CMLSC says ...
Aug 28, 2016 @ 8:58pm

The game was okay.
I think that the graphics could use some improvement.
I would've liked it if the player rotated properly. XD
The game would be a lot more interesting if there were different towers and different enemies.

yoel1234 says ...
Aug 28, 2016 @ 9:03pm

the rotation i think its becuse of the img position, i switching game engines anyway (to phaser). ill make a remake in the future (and post it here).

ill fix the spawn problem.

about the texture it will probbly be in the future vertion too.

yoel1234 says ...
Aug 28, 2016 @ 9:33pm

i agree it would be more fun with more monsters and towers...but i only had 48 hours. i planned for a much bigger scope with powerups and upgrades, teleporting enemy once you hit it,shooting enemy, and more...
i had to sacrifice a lot of features even basic ones like ui and sound effects.

SetTheBet says ...
Aug 28, 2016 @ 10:00pm

Yes, as said before. Really hard to play due to the offset of screen/rotation/mouse.
I like the music a lot. Gives a good ambience to it. Art could get better,

yoel1234 says ...
Aug 28, 2016 @ 10:03pm

SetTheBet: oh the rotation problem persists, it sholdnt affect gameplay to much the attack is an aoe hits all monsters around the player.

Aug 29, 2016 @ 12:48am

I really enjoyed the music. Pretty entertaining game.

ValiaP says ...
Aug 29, 2016 @ 5:42am

The character didn't rotate properly, but then i found the hit area was a circle. :D
I guess more tower and enemy would be great.

Kitkom says ...
Aug 29, 2016 @ 6:13am

Interesting game. I like it.
And it would be better with background

But it seems hard turn around in a browser, I can't facing up and attack.

Aug 29, 2016 @ 6:23am

I won at wave 21 or 22 with a cross of 5 farms with a crossbow in the four corners. The fact the crossbows are immortal make them too good of an investment. I don't think I even lost one of my five farms.

A little more mechanical depth is needed for it to be more interesting.

Nice music even if it does not scream medieval!

yoel1234 says ...
Aug 29, 2016 @ 11:38am

emmett_shatley :thank you.
ValiaP : yep you are an ideal player, you get it.
Kitkom :well background is one of the things i had to sacrifice to finish it. the attack is in all directions and if you have to face somthing just move the move a little more. when i move on to phaser engine i wont have this problem in future games.

Rico The Jammer :good im glad you finished wasnt meant to be a hard game. the crossbows are immortal to make it easier.

when i remake it with the new game engine ill add more depth(and make the crossbow mortal).

im not a great musician but i can compose simple stuff.
medieval music with 6 instruments or more demand alot more time then i had in this compo.

QwaKlak says ...
Aug 29, 2016 @ 12:55pm

Wave 15 :D I don't know why but i have wired move control. My mouse doesn't work fine in this game.

tenpn says ...
Aug 29, 2016 @ 4:57pm

I found navigation and aiming quite hard. I would add a ground texture, and maybe have WSAD move in the direction the character is facing?

yoel1234 says ...
Aug 29, 2016 @ 5:55pm

tenpn : aiming? with a sword and aoe (aka hit everything around you), well the players know best.
i didnt want to confuse so the movement is simple you push up the character goes up.
didnt have time left for ground texture or ui or sound efects,next time il plan better.
but ill consider all that for my next games.

qkerguelen says ...
Aug 30, 2016 @ 1:37am

As it has already been said, a little bit more work on the graphics would be better, and also more diversity. But hey that's a 48h gamejam game, so well done! I hope you'll keep working on it to improve it!

kingpirux says ...
Aug 30, 2016 @ 1:28pm

well the game works ^^

Efmi_ says ...
Aug 30, 2016 @ 2:09pm

Music is great. But i`m sad that backround is only black.

Xakkar says ...
Aug 30, 2016 @ 3:26pm

Cool game!

MrBrenan says ...
Aug 30, 2016 @ 4:00pm

A nice game !
I've played to something like 500 credits when I died.
It was repetitive, i've read onthe description thar I could build other things but I just have one farm, don't find the input ?

I'm a newbie i think sorry if i didn't play well but you should show controls in game.

The graphics are simple but stay nice and gameplay works well but as I said is repetitive.
You should add some other enemies like big red one, ...

The audio loop is annoying :/

Otherwise great job, continue :)

DifferentName says ...
Aug 30, 2016 @ 4:34pm

It felt pretty cool when I had a bunch of farms and crossbows up and running. I didn't notice any bugs, but would have liked something to make it clearer where I can place items. Like making the farm turn red if it was too far away from me or colliding with another farm, so it would be really clear that I couldn't put it there. Also, your "How to play" comments is more of a strategy guide, rather than letting us know what farms do, or what we're supposed to be trying to do.

jscottmiller says ...
Aug 30, 2016 @ 4:37pm

Nice work! A little tricky to figure out at first but it quickly became pretty intense. The action escalated nicely and became pretty challenging after wave 25.

It would be nice if there was a little more feedback from the monsters, like which direction they will be attacking from and how much damage they are capable of taking. At the higher levels, it wasn't clear that my manual attacks were doing much damage at all. Also, the crossbows would seem to fire a ton at first, then stop. I wasn't sure if this was an ammo or reload issue or a glitch.

bushmango says ...
Aug 30, 2016 @ 4:50pm

fun game!

Vaiaphraim says ...
Aug 30, 2016 @ 4:57pm

Nice minigame! I sadly had to stop playing after lv22, with a ton of farmtiles and crossbows - the game slowed down to 4-6 FPS. But up to then, it was a lot of fun, with a bit of difficulty, having to build, expand and defend at the same time.

The ambient part of the sound loop is quite nice, too. The farm graphics look great, by the way, just the black background is a bit dull (not that it remained black for long, with all the blue squashed circles on it :P)

yoel1234 says ...
Aug 30, 2016 @ 10:19pm

Efmi_ :time constraint.didnt have time to make background .


MrBrenan : press 1 to buy farm,2 for trap,3 fence,4 crossbow .

DifferentName :great idea, and ye it is a strategy guide. ill fix that too. thanks for the help.

jscottmiller :ye i wanted to implemt it and a mini time too...but didnt have time. did you build farms and traps? how did you reach wave 25?

bushmango: thank you.

Vaiaphraim: yes its becuse of dom elemnts proformence...thats why im switching to phaser...
ye i didnt have time to work on the music,thanks i tried to draw the best i could. didnt have time for background texture.

darthbox1 says ...
Sep 7, 2016 @ 8:43am

I really enjoyed this! i managed to win by spamming crossbows mainly. it was enjoyable and felt suitably tense. it did slow down a bit towards the end with all the objects everywhere but it was playable. well done!

yoel1234 says ...
Sep 7, 2016 @ 10:08pm

im glad you enjoyed this is only a prototype.
ye i know im the original crossbows spammer.
i will have a post mortom version in a week. im porting my engine to phaser.
there wont be any slow down or performance issue in that version .

ramoncb says ...
Sep 19, 2016 @ 4:56am

Good job! Mixing a top-down shooter with resources management seems a very good idea, this can be quite addicting with further development.

Maybe in the future you could add an HUD with point-and-click options to build stuff, an animation for the player when he gets hurt, and I really think that this game will work better with guns/ammo and upgrades for both player and the created bases.

Keep up the good work! and sorry my broken english! ^^'

You must sign in to comment.

Mini Submission FAQ

TEAMS: Teams entering the Jam should pick a single representative to submit your game, or create a team specific account you can share. We currently do not support Team Voting, but sharing an account and together playing and rating games is acceptable.

CAN I ENTER BOTH EVENTS?: You should pick 1 event, whichever you think it’ll do better in. If the idea is strong, and everything plays well enough, you can go Compo. If you’re a perfectionist, and would prefer people to play a more polished game, do the Jam. Many solo participants enter the Jam.

If you made 2 games, unfortunately, the website doesn’t support multiple submissions per user. To submit your 2nd game, you will have to make a 2nd account. Only do this if you made 2 games. Alternatively, if one game is better than the other, then consider just entering the better game.

CAN I KEEP WORKING UNTIL THE DEADLINE?: Yes! Immediately after the 48 or 72 hours, we do something called Submission Hour. As the name suggests, it’s an extra hour for you to package, upload, and submit your games. If there were catastrophic issues trying submitting your game, or you misunderstood how submissions work, that’s okay. It happens. We’re flexible. If you need advice, check with the folks on IRC. If you need an admin, get in touch.

CAN I KEEP WORKING ON MY GAME?: Oh definitely! You should! But for the sake of judging, keep the Compo or Jam version around. You can include a link to the Post-Compo/Post-Jam version of your game on your games page, but sure your main links are the original version.

PORTS: Ports to other platforms can be done after the deadline. That said, the sooner you finish your port, the sooner people can play your game, improving your chances of placing in the final results. For best results, provide a Web version of your game, or a Windows version with no dependencies. Also be sure to rate at least 20 games to improve your visibility (Coolness).

MY GAME CRASHES, IS UNBEATABLE, OR I MADE A TYPO: We allow you to fix crashes, win condition, or tiny bugs after the deadline. In a sense, this is like “porting” to support more players. We leave this open to interpretation, but generally speaking your game should be identical to the game you submitted. No new features, just fixing mistakes you should have caught had you been better rested.

MY GAME DOESN’T SHOW UP: If you can’t find your game, it’s usually because the URL to your downloads are missing ‘http://‘. Fix your URLs ( and you will show up. Alternatively, if you just posted it, wait a minute. The cache may not have refreshed yet.

NOT LOGGED IN?: If you get a message about not being logged in, even though you are, it’s because your web browser cached the non-logged in page. You can fix this by either refreshing your cache or clearing your cache. CTRL+F5 in many browsers. Chrome is a bit more work. Press F12 to enable Developer Mode, then you can right click on the refresh button and select “Empty Cache and Hard Reload”. This option is unavailable if you are not in Developer Mode.

[cache: storing page]