It is currently Mon Nov 20, 2017 7:36 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sun Jul 16, 2017 7:33 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19237
Location: NE Indiana, USA (NTSC)
Just pretend there's a little Spirou inside the elevator.


Top
 Profile  
 
PostPosted: Mon Jul 17, 2017 10:17 pm 
Offline

Joined: Thu Jul 23, 2015 7:54 pm
Posts: 147
Location: USA
"Entity" is the word I prefer over object and actor. I've been using "ent" im my game as an abbreviation. Anything that has it's own logic, and similar variables like X, Y, active, state, etc., falls into this category.

I'd have to check the code, because I forget off the top of my head how exactly I structured it, but I also needed to have metatiles that would need logic themselves but be separate from ents; like for example entrances to caves (which could be abstracted further by just calling them "doors", if they need to be), and sharp grass that can cut the player. I treat these as types of collisions, or interactions, and can have up to 256 of them, and the type is defined in the metatile structure. I use these as indices for a jump table, which is also based off the ent whose logic is currently being processed. That way I can have whatever logic needs to happen as a simple subroutine. If nothing needs to happen for a given metatile, it's just a simple rts.


Top
 Profile  
 
PostPosted: Tue Jul 18, 2017 6:09 am 
Offline
User avatar

Joined: Sun Nov 09, 2008 9:18 pm
Posts: 987
Location: Pennsylvania, USA
While I've been using "entity" in my NES games, I just started using "ntt" for Pico-8, haha. en tee tee. Entity. "Ent" makes me think of one of these:
Attachment:
download.jpg
download.jpg [ 10.17 KiB | Viewed 479 times ]


Top
 Profile  
 
PostPosted: Tue Jul 18, 2017 7:35 am 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
Sounds like pico-8 is a living antipattern factory, if it rewards people for picking bad names. This kind of stuff is unacceptable for a potential education tool.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Tue Jul 18, 2017 7:24 pm 
Offline
User avatar

Joined: Sat Feb 16, 2013 11:52 am
Posts: 223
It makes sense to me to use actor to refer to any object that can interact with the world on its own and entity anything that doesn't do anything on its own, at most only respond to stimuli (static props, trigger zones, physics enabled object, etc).

_________________
This is a block of text that can be added to posts you make. There is a 255 character limit.


Top
 Profile  
 
PostPosted: Thu Jul 20, 2017 5:20 am 
Offline
User avatar

Joined: Sun Nov 09, 2008 9:18 pm
Posts: 987
Location: Pennsylvania, USA
Dwedit wrote:
Sounds like pico-8 is a living antipattern factory, if it rewards people for picking bad names. This kind of stuff is unacceptable for a potential education tool.

Tell that to my nephew who is currently learning programming with it :)


Top
 Profile  
 
PostPosted: Thu Jul 20, 2017 7:28 am 
Offline
User avatar

Joined: Sat Jan 09, 2016 9:21 pm
Posts: 245
Location: Central Illinois, USA
Dwedit wrote:
Sounds like pico-8 is a living antipattern factory, if it rewards people for picking bad names. This kind of stuff is unacceptable for a potential education tool.


People said the same thing about BASIC. In one sense, they were right, it encourages bad habits and teaches you some of the "wrong things". In another sense, it's a platform that gets kids excited about programming, they learn basic algorithms and concepts, and then (hopefully) move on to doing things more correctly later. So I'm not going to complain.

_________________
My games: http://www.bitethechili.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group