What's everyone working on? (tigsource inspired)
- gtothereal
- Prole
- Posts: 42
- Joined: Thu Jan 06, 2011 3:17 pm
Re: What's everyone working on? (tigsource inspired)
Im Creating a game based on gravity and teleporation for my vocational class. Im new too lua and love and programming in general. I think i've earn the title of biggest noob on the site. i'll be taking my crown now.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: What's everyone working on? (tigsource inspired)
I'm working on a game for TIGSource too.gtothereal wrote:Im Creating a game based on gravity and teleporation for my vocational class. Im new too lua and love and programming in general. I think i've earn the title of biggest noob on the site. i'll be taking my crown now.
- gtothereal
- Prole
- Posts: 42
- Joined: Thu Jan 06, 2011 3:17 pm
Re: What's everyone working on? (tigsource inspired)
tigsource?TechnoCat wrote:I'm working on a game for TIGSource too.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: What's everyone working on? (tigsource inspired)
I seem to have mistaken the thread title "Re: What's everyone working on? (tigsource inspired)" as part of your post. Oops! Whatever, I'm dumb.gtothereal wrote:tigsource?TechnoCat wrote:I'm working on a game for TIGSource too.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: What's everyone working on? (tigsource inspired)
TechnoCat wrote:I seem to have mistaken the thread title "Re: What's everyone working on? (tigsource inspired)" as part of your post. Oops! Whatever, I'm dumb.gtothereal wrote:tigsource?TechnoCat wrote:I'm working on a game for TIGSource too.
Re: What's everyone working on? (tigsource inspired)
As you can tell from my player sprite, I'm not a very good artist. Like, at all.
Re: What's everyone working on? (tigsource inspired)
Completed my bullet behaviour scripting.
I realise that this approach may be ...scary. Any feedback is appreciated.
Code: Select all
-- syntax to create a bullet:
mybullet = Bullet(sprite, position, spriteRadius, hitboxRadius, events)
-- the events table is an array of {time, func} items.
-- the func will execute when the bullet's lifetime exceeds time.
-- the bullet also has a backend "updatefuncs" table, which contains functions that are executed on every bullet update
-- you add functions to it by making an event at 0.
-- here's an example bullet:
Bullet(self.files.gfx.bullet, Vector(math.random(50, 450), math.random(50, 450)), 8, 4, {
{0, function(self) -- executes on first bullet update
self.updatefuncs.move = function(self, dt)
self:modPosition(Vector(100, 100):rotate(self.angle) * dt) -- move in our direction for 100 pixels per second
end
self.updatefuncs.updateangle = function(self, dt)
local add = math.pi * dt -- move half a turn a second
if math.floor(self.lifetime) % 2 == 0 then -- if an odd second
add = -add -- negate the angle to add
end
self.angle = self.angle + add -- change the direction
end
self.updatefuncs.outofbounds = function(self)
if self:outOfBounds(550, 550) then -- 550x550 is the size of the game field
self.remove = true -- the Game class removes the bullet later on
end
end
self.color = Color(math.random(200, 255), math.random(200, 255), math.random(200, 255), 255) -- needs more fabulous
end},
{5, function(self) -- executes after five seconds of lifetime
self.updatefuncs.move = function(self, dt) -- you can override the old updatefuncs!
self:modPosition(Vector(200, 200):rotate(self.angle) * dt) -- move in our direction for 200 pixels per second
end
self.color = Color(math.random(200, 255), math.random(200, 255), math.random(200, 255), 255) -- why not?
},
})
- StoneCrow
- Party member
- Posts: 199
- Joined: Sat Apr 17, 2010 9:31 am
- Location: Wales the land of leeks and leaks
- Contact:
Re: What's everyone working on? (tigsource inspired)
remember my last post on this thread here
well i have progressed and finished the tile loader, scrolling and player movement.
Once again i hit a wall with collisions code but im building a library or two to make things easier for me
that is what it looks like at the moment
well i have progressed and finished the tile loader, scrolling and player movement.
Once again i hit a wall with collisions code but im building a library or two to make things easier for me
that is what it looks like at the moment
Dull but sincere filler.
Re: What's everyone working on? (tigsource inspired)
Hey. I just wanted to properly say hi, as I've popped in a few times for advice and am hoping to stay around more since I'm using Love almost daily.
I'm working on a game for TIGsource's almost-closed VERSUS competition. It's a two-player Roguelike; my first complete game, really (when it's, uh, complete...).
Added the ol' avatar to feel more at home. Just wanted to thank the community for being so cool so far.
I'm working on a game for TIGsource's almost-closed VERSUS competition. It's a two-player Roguelike; my first complete game, really (when it's, uh, complete...).
Added the ol' avatar to feel more at home. Just wanted to thank the community for being so cool so far.
- gtothereal
- Prole
- Posts: 42
- Joined: Thu Jan 06, 2011 3:17 pm
Re: What's everyone working on? (tigsource inspired)
Just finished and posted version 2.7 of my gravity game.
Who is online
Users browsing this forum: No registered users and 13 guests