Jump to content




GameAPI

api utility game

  • You cannot reply to this topic
4 replies to this topic

#1 YoYoYonnY

  • Members
  • 49 posts

Posted 30 December 2013 - 10:35 AM

Sneak Peak:
Update: Yay! More Progress! I'll probably release v1.1 code next week!
Posted Image
Posted Image
Posted Image
Last Update:
Posted Image
Achievement Notifications!
Currently working on:
Spoiler
EDIT: Sorry for this many updates.

I just created a new API that will make storing data for games a bit easier. In this first version:
  • easier game instalation (including pastebin)
  • saving and loading
  • players
  • achievements
  • stats
  • score
Example codes (not tested)
installing a game
Spoiler
adding or removing achievements and score
Spoiler
Currently working on:
Spoiler
Download
pastebin get emQ0KxDw gameapi

Edited by YoYoYonnY, 26 January 2014 - 11:51 AM.


#2 Zee

  • Members
  • 42 posts
  • LocationIndiana

Posted 05 January 2014 - 07:49 PM

Why do you use
 shell.run("gameapi")
instead of
os.loadAPI("gameapi")
gameapi.install()

EDIT: fix code

Edited by Zee, 05 January 2014 - 07:53 PM.


#3 YoYoYonnY

  • Members
  • 49 posts

Posted 08 January 2014 - 10:41 AM

View PostZee, on 05 January 2014 - 07:49 PM, said:

Why do you use
 shell.run("gameapi")
instead of
os.loadAPI("gameapi")
gameapi.install()

EDIT: fix code
Well, I am not exactly sure, but looking at the bios.lua file it will create functions like _G.gameapi.game.install, and I dont need Global table, because not all programs will need my API (games only). So games could enable gameapi, whitout making a mess in the Global table.
EDIT: Also, gameapi.install() wont install gameapi, it will install a new game. BTW, in the original version I used the startup file.

Edited by YoYoYonnY, 08 January 2014 - 10:43 AM.


#4 Zee

  • Members
  • 42 posts
  • LocationIndiana

Posted 11 January 2014 - 06:18 PM

I just looked at the code for the API again and noticed that it's a local function. *facepalm*

Thanks for responding.

#5 YoYoYonnY

  • Members
  • 49 posts

Posted 26 January 2014 - 11:52 AM

BTW, I would like to see some better names for the API and Launcher, because next release v1.1 will probably be out next week.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users