Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / will there or is there be any LinkList support in AKG

Author
Message
micky4fun
10
Years of Service
User Offline
Joined: 15th Sep 2013
Location: uk essex
Posted: 13th Apr 2014 00:01
Hi all

Just purchased AKG in the last few days and still getting use to the commands , I have written a few games in a program called playbasic , that program as LinkList commands , is there or will there be any in AKG at all

ie ,
Type tObject
x#,y# ; position
Angle# ; Direction object is moving in
Speed# ; speed object is moving at
Size ; Size of this object
Colour ; colour
EndType

Dim Alien As tObject List

Alien = New tobject

Alien.x#=100
Alien.y#=100
Alien.Size=Random(10,30)
Alien.Angle#=Random(0,360)
Alien.Speed#=Random(1,5)

to remove from list
Alien () = Null

etc

thanks
mick
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Apr 2014 09:04
i believe v2 will get this.
or in tier2 you have more features through c++

in current v1 i use a function that give me a free array index.
in this you can also re dim in steps if u need more entrys.

deleting is just empty the user defined type.
i often have a spr (sprite id) property, if this 0 then this entry is free.
if i want do something with a entry i just give the function the index.
tier1 is unfortunately not object-oriented

example with fix array


AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
micky4fun
10
Years of Service
User Offline
Joined: 15th Sep 2013
Location: uk essex
Posted: 13th Apr 2014 17:25
Hi All

Thanks Markus , excellent code snippet and explanation , many thanks for taking the time to do that , will come in very handy for me and others on site maybe , I wont be using tier 2 c++ that's beyond me , but I do like the linklist command , proberly use it to much , hopefully come up with a few simple games soon using this program , did come up with a few using another basic program called playbasic , called pooyan and for foxs sake amoung others , but looking at AKG this looks more up my street when I get use to the commands

thanks
mick
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Apr 2014 23:28 Edited at: 15th Apr 2014 09:06
what should come in agk v2 this year you can find here.
https://www.kickstarter.com/projects/tgc/app-game-kit-v2

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
micky4fun
10
Years of Service
User Offline
Joined: 15th Sep 2013
Location: uk essex
Posted: 14th Apr 2014 17:28
Hi All

Thanks for the links Markus

mick

Login to post a reply

Server time is: 2024-04-19 23:31:20
Your offset time is: 2024-04-19 23:31:20