Jump to content




Yasuda Game Engine - Collision detection and camera locking


8 replies to this topic

#1 Exerro

  • Members
  • 801 posts

Posted 09 March 2013 - 10:02 AM

Yasuda Game Engine!
Latest update: camera locking & bug fixes

Yasuda is a game engine I have been working on for about a week now. It is designed to be easy to use, and open but have add-ons that specialize it to make it better for certain tasks. The main engine has collision detection but the map addon uses auto collision and will eventually have things like following and attacking in built ( so you can set entities to attack/follow other entities automatically )

Well, how good is it really? Here's an example:
Spoiler


What is so good about it?
-Easy to make add-ons for/overwrite current ones to suit your needs
-Per pixel and rectangle collision detection
-Entity storage and management
-Addons:
--Map - auto collision
--RPG - extra variables & functions related to role playing games such as money and health & collision attacking


Still to come:
entity actions such as following, attacking, eating and mining
terrain add-on that lets you make a 2d minecraft style terrain
animation support ( either .nfa or one I will make or both )

What do I need to know?
to load all addons use game.loadAddons( ) or game.loadAddon( path ) to load individually.
to create an entity use game.add( x, y, w, h, image, name ( used for map collision ) )
to make an addon create a file and make a table called game.addon ( these will be inserted into the game table.
to check collision do rec, pix = [entity]:isColliding( [entity], [per pixel collision?] )
to move and entity use [entity]:move( x, y ) or [entity]:teleport( x, y )

How can I get it?
pastebin: PiA7Sw5T <-- latest version
Spoiler

map addon:
Spoiler

RPG addon: coming soon

#2 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 10 March 2013 - 07:50 PM

Cool and awesome

#3 Exerro

  • Members
  • 801 posts

Posted 11 March 2013 - 12:39 AM

Thanks :D I will be adding in loads more addons soon that will hopefully make things more suited to your needs. If you have any suggestions of an addon to add in just tell me and I will get right on it!

#4 NeptunasLT

  • Banned
  • 147 posts
  • LocationVilnius,Lithuania

Posted 11 March 2013 - 12:55 AM

Getting Black Screen :(

#5 Exerro

  • Members
  • 801 posts

Posted 11 March 2013 - 01:04 AM

:( can you pm me your code? you have to draw the entities with [entity]:draw( )

#6 NeptunasLT

  • Banned
  • 147 posts
  • LocationVilnius,Lithuania

Posted 11 March 2013 - 01:32 AM

Downloaded the file as "s" then run "s" and i get black screen :(

#7 Exerro

  • Members
  • 801 posts

Posted 11 March 2013 - 01:35 AM

It's an API not a program, it won't execute any code...if you downloaded the example program then you have to make images called player and a

#8 Papa_Beans

  • Members
  • 12 posts

Posted 26 November 2013 - 10:12 AM

Okay, I downloaded the game API. I also downloaded the map API as map.gma. Then I creates a simple char[named player], and a simple map(black line)[named a]. Whenever I try to run it I get game:15: attempt to get length of nil . Why is this?

#9 Exerro

  • Members
  • 801 posts

Posted 29 November 2013 - 01:41 PM

although i stopped work on this as while ago, its something going wrong when you try and load an image... make sure that all the images you try to load are formatted right





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users