Codesnippets > Userlibs [ *.gbal]

2DEntitySystem

(1/5) > >>

backslider:
Hi guys,

here is my first verison of the 2DEntitySystem for GLBasic!
I added some demos where you can see how it can work.

It's really easy to use and I hope you like it!
The code isn't finished yet. If you have any cool ideas or functions then post it here and I will add it to the system.

Please comment it, use it in your games and mention me in the credits.  :good:

Cheers

[attachment deleted by admin]

erico:
just tried demo #2...

gasp cough, how can people come up with that! :o
Heck, so much math going on these days...

Amazing, I will give a go on the caanoo too!

Thanks Backslider, amazing work! :good:


Edit: when I re-run the code, the last entity seems to get stuck on the top left corner and wont move, I will give more tests on this and let you know, it must be on my messy side of things, of course.

backslider:

--- Quote from: erico on 2012-Jun-18 ---Edit: when I re-run the code, the last entity seems to get stuck on the top left corner and wont move, I will give more tests on this and let you know, it must be on my messy side of things, of course.

--- End quote ---

Hoops, it was my mistake that the first box did not move.
I update them in a loop from i = 0 to 9 and set the speed = i. So the first had speed 0.  :good:

In the new version the problem is solved. ;)

It was only a test of your attention.  :whistle: =D

erico:

--- Quote from: backslider on 2012-Jun-18 ---...It was only a test of your attention.  :whistle: =D

--- End quote ---

...and I failed! couse I´m sure I only noticed it on the second run... :O

Great stuff, must try this on caanoo soon just for the fun!
Must also try to understand what is going on...would come nice on a worm boss kind of thing :good:

backslider:
If you have ideas for more demos, then tell me please!
I will try to implement them. :)

Navigation

[0] Message Index

[#] Next page

Go to full version