Get A gun, build a house & shoot aliens
Made with olcPixelGameEngine
(Linux version in github repo down below, just copy assets folder and "OtherPlanetSurvival" executable to one folder on your disk)
Warning ! Did not finished this game on time. (And idk if i will ever do)
I know it's basicly pile of garbage but Javidx told us to upload even to submit unfinished projects so here i'am.
2 phases at start you gathering resources, after 20 seconds comes "night" and you got teleported to your house when you shoot aliens.
Gathering/building mode:
WSAD - movement
left mouse button - chopping wood down(or walls),
right mouse button - building
Key 1 set tile you will build to wooden wall
Key 2 set tile you build to wooden floor
Fight mode:
left mouse shoots but fighting is REALLY BUGGY. it dosn't even register hits properly and i have no idea how to fix that.
If for some reason you want to see sauce code i mean source code here is git hub repo
https://github.com/radekrudak/Crus_Submission_OLC2021CodeJam
Status | Released |
Platforms | HTML5 |
Author | Radosław Rudak |
Comments
Log in with itch.io to leave a comment.
As has been said before the bullets sometimes phaze through the enemies. I think the reason is probably just that the bullets move too quickly, so one frame it's in front of the enemy, does a collision check, and sees no collision. The frame after it has moved far enough that it's behind the enemy instead, and again, no collision. That's my hypothesis at least. Good work anyway!
OHH that would make sense.
It basic just check distance between every bullet and enemy, if it's bellow certain value it accounts a hit. On my Linux Desktop worked fine but Web not so much but at the same time web seems to have lower frame rate (see how long yellow lines that represent flying bullets are ? on PC those are like 2 pixels) So that add up. Thanks. (I can't edit it now but maybe i will come back to this project in the future)
Indeed the game no finished, it is quite tedious to play and it is a pity not to be able to move the player when shooting.
Yea at start i wanted enemies attacking you while player is moving but integrating "A start" path finding turned out to be too hard for me to do in time, so i kinda improvised, and after trying doing something too complex i kinda went to far in other direction and made something too simple. Instead of making aliens goings in strait line and slowly destroying blocks after colliding with blocks while player is moving(as was it was one of my ideas) i made something like... this... well mistakes were made.