Author Topic: Aino's Functions  (Read 24641 times)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Aino's Functions
« on: July 11, 2011, 11:54:38 PM »
I think it is time for me to release all of my functions and stuff I've made, some fo them are large and others are small snippets I use in almost everything!

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)

(click to show/hide)

Added leaderboards ;D
« Last Edit: February 01, 2012, 04:50:46 AM by Aino »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Aino's Functions
« Reply #1 on: July 12, 2011, 02:18:12 AM »
This is awesome dude.  :>  I have used DrawText and GetMouseX/Y a lot myself, they are extremely useful.  Thanks.  ^_^

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #2 on: July 12, 2011, 03:50:48 AM »
You're welcome :)

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 275
Re: Aino's Functions
« Reply #3 on: July 12, 2011, 12:12:35 PM »
now then,
would it be best to simply put one link to this page in the Custom Level thread, or put them all seperately in the Level thread??

im thinking the first option for the same reasons as the maps themselves...


Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #4 on: July 12, 2011, 01:52:11 PM »
Choose what you like :P

This topic might be updated fairly often, so it's a good idea with the first option :)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #5 on: July 26, 2011, 02:51:25 AM »
Adding my Minimap function up: AWS, update! :D

It'll be one of my most fancy thing I've done here till now(IMO), but now... I'm proud of everything I make x)

So I'll be adding the actual code and a nice demo map, to show how it works! :D

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #6 on: July 26, 2011, 04:07:59 AM »
Also, hoping not asking too much: can I get this stickied? :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Aino's Functions
« Reply #7 on: July 27, 2011, 10:06:05 AM »
We are getting a lot of stickies.
Maybe it would be better to just un-sticky Annikk's Mechanics, since both this thead and Annikk's Mechanics are linked to from this sticky..

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #8 on: July 27, 2011, 07:20:38 PM »
Thats true... Maybe just have it like is :P

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Aino's Functions
« Reply #9 on: July 27, 2011, 08:18:21 PM »
Well it's not really fair that my thread is stickied and yours isn't.. :>  And we already have too many stickies to be honest.  I think this would be a sensible way to reduce them a bit.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: Aino's Functions
« Reply #10 on: July 28, 2011, 01:46:08 AM »
1. Make subforum.
2. Move threads.
3. ????
4. PROFIT

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #11 on: July 28, 2011, 04:07:56 AM »
I vote up for Subforum :D

I think the forum needs it, since there is such a large mess between the help topics and map releases! :P

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #12 on: July 30, 2011, 11:15:30 PM »
Added my map-editor into here :)

The list is getting very long ;D

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 275
Re: Aino's Functions
« Reply #13 on: July 31, 2011, 07:20:21 AM »
aino - so, i had a thought....
firstly - i LOVE the fact that you have 2 versions of the minimap - Playable and Unplayable (just code) version... VERY helpful for the moron coder like myself...

secondly - i admit i havent looked at it yet, but is there a way for the player to choose whether the minimap is on or off?? if not, it would be good to add that option so that if you want to see it breifly, you can turn it on, and then when youre done with it, turn it off.
otherwise i can envision the player getting irritated that a box is taking up valuable screen space.

just a thought, and as i said, i havent seen it yet so maybe youve already thought of that.

ps- we'll sort out what we PMd about once all the other code stuff is working... ;D

aws

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #14 on: July 31, 2011, 07:22:30 AM »
Taking up valuable screen space? It magnifies by 3 if you hold over it :P Other than that it barely take any space :P

AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 275
Re: Aino's Functions
« Reply #15 on: July 31, 2011, 07:25:03 AM »
ok, cool.


AWS

  • Achiever
  • Arboreal Being
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 275
Re: Aino's Functions
« Reply #16 on: July 31, 2011, 07:27:51 AM »
where should i put your minimap code in relation to levellogic, etc??

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #17 on: July 31, 2011, 07:37:05 AM »
Minimap ain't uning LevelLogic, add the init and the DrawMinimap function, then add the content of the screendraw if you use it already(which I reckon you do with the Rally code) and just do an init similiar to the demo, the first value is a true/false(boolean) if the whole map should be shown even if the player haven't discovered it yet, or false if not. The two others will only move the map, or display alittle if you have placed asteroids on one side only, they are x and y respectively :)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #18 on: August 01, 2011, 11:18:43 AM »
Added the new AI!

Check it out, try the demo!

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #19 on: August 16, 2011, 04:58:48 AM »
Updated the AI... Expect a new one soon though :P

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Aino's Functions
« Reply #20 on: October 22, 2011, 10:01:56 AM »
Added Leaderboards :D