Pm me
What is Pm
Personal message me…using the inbox emailing part of the website
Images Class
Images = class()
--[[
Basic class for Images and sprites.Includes tools.
use for building images like houses and animals... etc.
roots Person, Building, etc.
--]]
function Images:init(w, h)
-- you can accept and set parameters here
return image(w, h)
end
function Images:draw(aload)
-- Codea does not automatically call this method
loadstring(tostring(aload))
end
function Images:touched(touch)
-- Codea does not automatically call this method
end
Person class
Person = class(Images)
function Person:init(x)
-- you can accept and set parameters here
self.x = x
end
function Person:draw()
-- Codea does not automatically call this method
end
function Person:touched(touch)
-- Codea does not automatically call this method
return true
end
@aurumcoder2624 if you want to share many versions of you code, in a way easy to use for your team, i suggest that you do one of the following:
- put the code in CC (Codea Community). check this forum to find CC.
- or make 1 gist for the whole project and share the link. You can copy the whole project by long pressing on the project icon.
good luck.
I would also like to help you aurumcoder. Seems like a healthy challenge! PM ME
Thanks and thanks. Remember a lot of things in this game might be near impossible to make.
You can back out anytime, I will NOT be offended.
Rules
- Complain! Am I giving you a hard time? I’ll try to fix the issue!
- Breaks, anytime!
- Take this as a hobby, NOT A JOB!
- Don’t work hard! I’m not pressing you!
- Have fun!!! Never frown!
Thanks! I will PM you if I want u to make a new class or something, but of course u don’t have to.
PM ME!!! :>
The user and all related content has been deleted.
@NatTheCoder - good programmers put as little as possible in main. They use functions and classes to break up the code into packages that can be tested on their own and re-used.
The user and all related content has been deleted.
That’s ok.
@NatTheCoder - it’s ok in small games, but if your program gets over (say) 50 lines, it makes sense to break it up.
Oh, and I realized something, I’m starting to sound like @Noobatcoding, the ultimate enemy of the forums, the scourer of Two Lives Left. Should someone close this conversation?