[contest entry] MAGGOTS

Posted By: Wjbender

[contest entry] MAGGOTS - 08/15/14 21:30



intro:
---------------------------------------------------------------

hi george and the community

has been a while since i posted but never say never
tongue

my contest entry :

name:MAGGOTS


this is a 2d demo of my, 1 on 1, 2 player ,turn based projectile game.

its main features are ,2d per pixel collision ,destructable terrain.

there is only one availabe weapon ,the grenade .

the objective is to reduce your enemy's health to win the round.
throw your enemy with grenades or win by removing the ground your enemy stands upon.

on each start of a new game ,1 of 10 terrains will be generated of
wich there is two modes ,a cave mode and an outside mode.

upon victory the game wil shut down ,ready to be started again for a new round
of fun.

each turn lasts a short period!

each grenade takes 20 hitpoints!

grenades are in endless stock!

the keys are :
w - jump
a - left
d - right
space - throw
mouse - set throw direction
1...0 - set throw power


run main.exe to get started!!

if a player falls off the landscape he loses.

regards:wjbender
ps.i hope you enjoy it !!!
---------------------------------------------------------------

credit goes to
wjbender(myself) for ,coding,art etc

Kartoffel for helping me with 2d linear physics for the projectile math and all the others on the forum that replied

included with the zip is a readme file similir to this post


further credit goes to:
---------------------------------------------------------------
//royalty free with credit
http://wrathgames.com/blog for the happyland ogg music loop

//creative commons attribution 3.0 licence
psychobird for screaming hawk 2 soundfx at http://soundbible.com/1505-Screaming-Hawk-2.html

//public domain sounds license
water sound effect http://soundbible.com/2032-Water.html
wind sound effect http://soundbibile.com/1247-Wind.html


let me know if there is anything else you need

edit: re uploaded the zip with a published version..
Posted By: DLively

Re: [contest entry] MAGGOTS - 08/15/14 23:15

Chrome is suggesting your file may be malicious.. Does anyone else get this message?
Posted By: Ch40zzC0d3r

Re: [contest entry] MAGGOTS - 08/16/14 07:52

Fuck off Chrome...
Chrome also thinks that my Game launcher is a virus, its just a downloader in .net 4.5
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 07:58


ps. i have a8 free ,i do not know if this works on other versions as it should but i darn hope so lol
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/16/14 09:24

Haha, I like it.

Although a bazooka would be more convinient because the grenades explode on impact.
Also I would add the controls to the startup screen.

But except for that it's nicely done, good job grin

Edit: Source code works perfectly with A8.45 beta Pro.

Edit2: I actually found a bug:
I can't throw grenades when using the published .exe, running the source code from sed works fine, though.
(could be a problem with my pc. The f-keys aren't working for my projects either)

Also the bitmaps kind of break when I tab out and in again, but that might be an engine related issue.
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 10:06

thank you Kartoffel !

yes there is a couple of bugs (pun intended) ;-)

oh yes more weapons and more destruction + physics would make it !!

I wanted to add physics and all kinds of features , at first I thought to make a game where war is fought on
a pixel level , the characters would have represented
pixels and you would have zoomed in on them with
a magnifying glass to see them , but ... as time had it
I wrote this up in a short period and opted for things
that would speed up the development .

on my pc both works just fine when you need tp throw grenades , although during development I
had the issue with not being able to throw , I do not
know how it manifested but I thought I had it ironed
out , what used to work if the bug became apparent
I pressed space along with a movement key like "up"
then it worked , but on mine it doesn't do this at the time ....

yes , I designed it sticking to only one screen resolution , just didnt know how to disable f5 .

thanks haha I love it when those little sprites goes
uphill with short fast hops ,looks way comical

oh and you cannot throw whilst moving , you have to be stationary , could this br it ?
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/16/14 10:19

nope, I just tried it again, didn't work. But it's no big deal.
If I publish it myself it works... so yeah, could be an engine related bug.

Oh, and to disable f5 you can just reset the event: on_f5 = NULL;
BUT, I strongly recommend you to not include default.c in a release version of a game... this enables the player to do lots of stuff ;P

btw. I always loved the worms games ( I'm still playing worms armageddon occasionally, although I own much newer ones laugh ).
I actually wanted to try programming something like that myself... maybe I'll try grin
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 10:32

same here ,I simply love the worms game , nice to
have a laugh when something comical happens !

I always wanted to do a game in 2d that captures the
worms theme with the destructive terrains ,and simply being able to draw up a level and put it in my game .

per pixel collision is so outdated yet theres something to it I like .

this was my first attempt at such a game , although
I am working on a game of similar features in sdl and irrlicht and maby I will try out blitz and others too , I am experimenting with different engines/libraries to base my game on , and when I find one I like I will
throw in the whole shebang physics the lot .

when worms went 3d I lost my interest in the series.
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/16/14 10:42

Quote:
same here ,I simply love the worms game , nice to
have a laugh when something comical happens !
"when something comical happens"... just like all the time? grin


Quote:
when worms went 3d I lost my interest in the series.
well I have to say I enjoy the last two, worms revolution and clan wars, although I didn't buy the latter because it came
out too quick after revolution and has it's own issues (worse performance, doesn't look as good as revolution although it's pc only, etc.).
Okay... they're actually 2.5D and now that I think of it you probably mean worms mayhem or something like that.

I just think the graphics could be better... they're still not using bloom or any kind of hdr/tonemapping which annoys me (meh, too much shader programming knowledge ._.)
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 13:13

the things you mentioned about graphics quality/effects would surely appeal to me .

I am not sure which one it was that I did not like
it was really crappy , the last 3d version I played and
enjoyed were fortress .

I played a little with wormux today , kinda fun ,I had
a few good laughs .

worms is a classic that will never die , there are a couple of other games I love just because of those
silly situations you can get yourself into as a player ,
like gta from the very first version upwards , and then
some old fashioned style quest games .

I just played a top down shooter wich reminded me of
the top down gta games , would like to try doing a game in a similar top down style.
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/16/14 14:06

getting kind of offtopic, but I have to add that gta was meant to be a totally different game, but the ai behaviour lead to lots of funny situations and during the development they noticed that it's much more fun to run around and mess with the ai, blow things up, etc. so they've changed their game concept.
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 17:02

a guy with the kind of skills you have ,could make
such a game beautiful , i have been looking for something to break into the Android market , simple
conceptual games like worms could just perhaps do it.

just a pity there's so many worms style games out there , it would need to be quite unique.
Posted By: sivan

Re: [contest entry] MAGGOTS - 08/16/14 18:02

a long time ago we made several worms parties grin I will definitely try it soon!
Posted By: DLively

Re: [contest entry] MAGGOTS - 08/16/14 18:44

With some more work, you can really make this something great.

I found a couple bugs.

1. (which I tried to reproduce but had a hard time with it) On the first turn, I waited until the timer went to 0-5 and shot an grenade. The game said player twos time was up, and player 1 had a turn again.

2. This works for either turn. When the timer is almost up, if a grenade is thrown by for example player 1, and player 2 walks into it, it is no longer player 2's turn.

Perhaps you want to use a clamp for when the player launches their grenade, and keep the -0 from going below 0. Also, make a wait time, so the next player can't have their turn until the last players grenade has been blown up.

All in all, its fun and well designed. Not sure if anyone else has experience this but the sprites aren't either overlayed or have no alpha channels.
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/16/14 19:48

Originally Posted By: DLively
With some more work, you can really make this something great.

I found a couple bugs.

1. (which I tried to reproduce but had a hard time with it) On the first turn, I waited until the timer went to 0-5 and shot an grenade. The game said player twos time was up, and player 1 had a turn again.

2. This works for either turn. When the timer is almost up, if a grenade is thrown by for example player 1, and player 2 walks into it, it is no longer player 2's turn.

Perhaps you want to use a clamp for when the player launches their grenade, and keep the -0 from going below 0. Also, make a wait time, so the next player can't have their turn until the last players grenade has been blown up.

All in all, its fun and well designed. Not sure if anyone else has experience this but the sprites aren't either overlayed or have no alpha channels.


1 I saw and did correct I believe in the two separate downloads , when I worked on the turn timer
I forgot that I also switched turns when the grenades exploded , so I simply changed that so it just timed out the turn timer and let the turn timer handle the turns .

the third one I have not experienced except when
changing resolution or tabbing out as Kartoffel said , I did not plan for different resolutions .

However I cannot explain why it blacks out , maby its due to locking the bitmaps frequently and blitting .

edit : okay I just saw it too on timer 0 , probably a wait error , I think the timer switches before the wait in check players return with a switch or something , hope I am allowed to update if I correct it
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/16/14 22:18

having some fun with the source code grin



...by the way, I'm sure that there are a few memory problems which cause all these bugs.
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/17/14 00:30

haha !

check the remove_pixels_with function i started but did not quite
really work through it ,i wanted to use bitmap shapes to remove pixels
from the terrain .

by the way i re uploaded after fixing(hopefully) all i can.

there were/is something wrong with the pix_xollide function
but i hope it works okay now ,seems okay on my px.
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/17/14 08:27

Well, what happens when I change some code is that really weird behaviour occurs.

Like I've said I really think it's a memory related problem on your side which overwrites parts in the memory that belongs to other vars/pointers/etc.
Would be a shame if the final version doesn't work :S
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/17/14 10:08

I saw the same thing and shall take care of it .

thanks Kartoffel
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/17/14 19:19

okay i believe i am done now ... hope you like it

Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/17/14 19:44

sorry to say that but it seems like the problem still isn't solved.

with the new versions the spacebar works neither in the compiled exe nor in the soure code launched from sed.
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/17/14 20:57

O_o man whats wrong with this , on my pc it has no issues with anything on the version I have .

I am stumped , if I cannot observe an issue how am I to know what's happening.



i tried uploading again ,after basicly just guessing whats
wrong ,is there no way to have GS to pick up more on errors ?

why is mine so forgiving ?

edit :
this has been a difficult bugger to sort out ,everything worked
fine on my pc in every way but

i really hope i am not making a fool of myself again eek
i think i found the bug and uploaded the fixed version at:

DOWNLOAD
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/18/14 13:04

bump / poke
Posted By: Kartoffel

Re: [contest entry] MAGGOTS - 08/18/14 13:30

good news, everything works fine now, good job
Posted By: Wjbender

Re: [contest entry] MAGGOTS - 08/18/14 13:35

thanks to you !
© 2024 lite-C Forums