Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: XiiDraco on September 27, 2013, 12:57:57 pm

Title: [2013 Contest][Axe] Siege
Post by: XiiDraco on September 27, 2013, 12:57:57 pm
Ok, so I've just now been getting better with Axe, and I like contests, even if my game sucks XD.

Anyway so siege is a game were you spawn randomly in a forest with 5 pixlets (pixlets are villager). You then build buildings with the supplies you are given to upgrade your production. You can't move the actually pixlets themselves. you can only build buildings that so certain things. So in a sense its kind of a simulation. By building the different buildings you can eventually build an army, Or just a small force of troops. Your objective is to destroy the castle that is in the woods before the castles guards kill your village.

I don't have any screenshots at the time, but progress is coming along nicely.
Title: Re: [2013 Contest][Axe] Siege
Post by: TheMachine02 on September 27, 2013, 01:07:24 pm
Yeah sound a really good game  :D
Title: Re: [2013 Contest][Axe] Siege
Post by: Sorunome on September 27, 2013, 01:15:42 pm
yup, sounds awesome! :D
Title: Re: [2013 Contest][Axe] Siege
Post by: Streetwalrus on September 27, 2013, 03:09:26 pm
^That
Title: Re: [2013 Contest][Axe] Siege
Post by: AssemblyBandit on September 28, 2013, 01:15:53 am
I can't wait to see this game! Thats a good concept, should be getting a high originality score!
Title: Re: [2013 Contest][Axe] Siege
Post by: TIfanx1999 on September 28, 2013, 09:41:30 am
Interesting, good luck!
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 04, 2013, 08:23:40 pm
So I still don't have a lot of screen shots or anything but I have gotten the behaviors for the pixlets pretty much done. Now when they are about 10 pixels away from a tree or pile of rocks they will go to it, mine some/cut some materials from the object.

Working hard.  ;D

EDIT: I'm so pissed right now I'm probably going to drop out of the contest. I made a 3 more lines of code that say. If you are a pixlet and not a tree add random values to your coordinates. Normally this would work just fine but now it just doesn't.

I tell the calc to display the coordinates to my screen, as I run the program it is telling me on the screen that the data value is 1. So my calc is somehow COMPLETELY DISREGARDING the if statement and saying its not true, even though it is telling ITSELF that the given statement is true!  :mad: :banghead:
Title: Re: [2013 Contest][Axe] Siege
Post by: AssemblyBandit on October 05, 2013, 02:38:08 am
Don't drop out, It sounds awesome! Sometimes you just got to take a little rest from it!
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 05, 2013, 02:42:00 am
Isn't the contest tomorrow?

Without this little line of code working im afraid it will be very hard to play. :/
I'll keep working tomorrow morning. ;)

Title: Re: [2013 Contest][Axe] Siege
Post by: AssemblyBandit on October 05, 2013, 02:51:16 am
I think you have until Nov. 5th to send it in! It would suck if it was tomorrow, I don't even have a title screen yet!

*Edit: Yeah, we still have a month!
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 05, 2013, 04:24:36 am
Wait WAHT??? It's November???  ???

Wow, I failed it. Oh then I'll keep working hard  :thumbsup:
Title: Re: [2013 Contest][Axe] Siege
Post by: Sorunome on October 05, 2013, 05:12:57 am
Otherwise it would be a pretty short contest >.<
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 05, 2013, 03:08:10 pm
Ya, I was thinking it was due TODAY and that's why I was so frantically working on it XD. Anyway since It's not today I'm definitely still in the contest.
I'm probably going to take a small break and give some screenies though cause I'm already like 1/3 of the way done. XP
Title: Re: [2013 Contest][Axe] Siege
Post by: Sorunome on October 05, 2013, 03:52:40 pm
Better get it sooner done, coding always turns out to take longer than expected ;)
Title: Re: [2013 Contest][Axe] Siege
Post by: TIfanx1999 on October 06, 2013, 07:57:55 am
@XiiR3CR34T10N: Yea, not to worry, plenty of time left still. ^^
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 16, 2013, 01:37:46 am
OK I thought I might update. I've finished the logic with the AI's for the pixlets finding cutting and bring wood from trees. I've also made them think smarter, so if there aren't any trees nearby they will start to move around randomly until they find some. I also made them not do anything if there isn't a wood cutting building. (they wont cut trees if there is nothing to return too)

So I have figured out that really frustrating bug. I was using an OR. I don't know if it's just me or if it's broken, but OR's and AND's don't seem to work properly. I usually try to avoid them in AXE because of this, but Force of habit made me try and use them. So I have fixed that now. I also figured out why they wouldn't go after the left and right closer edge trees! Instead of using a distance formula, I decided to just calculate how close a tree is X then Y. Since doing so the game is checking into negative numbers which will then return positive for the trees location. (AKA I'll fix that tomorrow)

I'm also going to give a screenie later.

Thanks all!
Title: Re: [2013 Contest][Axe] Siege
Post by: DJ Omnimaga on October 17, 2013, 01:58:06 pm
Good luck on this. Can't wait to see screenies, though. Also don't go overboard on features since the contest has a limited timeframe (eg don't do a full Starcraft clone :P)
Title: Re: [2013 Contest][Axe] Siege
Post by: Streetwalrus on October 21, 2013, 12:44:17 pm
If you were using OR and AND, be careful as these are bitwise, not logical. The logical counterparts are ?? and ? which can also be used as single line conditionals or ternary operators (see Commands.html for details). ;)
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 21, 2013, 12:58:24 pm
Oh! That is quite helpful, so ?? = AND and ? = OR.   Right?
Title: Re: [2013 Contest][Axe] Siege
Post by: Runer112 on October 21, 2013, 04:51:22 pm
Oh! That is quite helpful, so ?? = AND and ? = OR.   Right?

Other way around. :P
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 25, 2013, 02:11:26 am
So again with AND and OR with axe, I tried something like

If [type]=1??[type]=11
execute command
End

Is this how you do it because I tried this and the types I dont want still perform this command anyway...
Title: Re: [2013 Contest][Axe] Siege
Post by: Streetwalrus on October 25, 2013, 03:51:32 am
This is the way you do it. It's weird it doesn't work though since I use and abuse it in all my programs. :/
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 25, 2013, 12:25:30 pm
coul it have to do something with chaining it?

example.
If x=1??x=11??x=21??x=31??x=41??...
command
End

Becuase I have like 10 onjust one.
Title: Re: [2013 Contest][Axe] Siege
Post by: Matrefeytontias on October 25, 2013, 04:37:48 pm
I think there's a maximum of nested conditions like this. Not sure how much.
Title: Re: [2013 Contest][Axe] Siege
Post by: Streetwalrus on October 25, 2013, 05:57:16 pm
It would throw an error at compile time if that was the issue.
Title: Re: [2013 Contest][Axe] Siege
Post by: XiiDraco on October 27, 2013, 07:23:57 pm
OK, unfortunately I will not be putting this in the contest, for two reasons. 1) I deleted Axe Parser on my calc to get a new version and now I cannot get it on at all. 2) I still haven't gotten the ? and ??'s to work so the program can't function properly.

I'll work on this when I get the time later.