hello everyone!
I want to make a tower defense game, but I completely new to all this so basically I have no idea what to do. Questions that interest me now are: How do I create a map for it?(do I just draw it somewhere and put there as an image?)
How can I make creeps walk only on a line that I draw on a map?(should I just use coordinates and waypoints to move them where I want on the screen? if so, how can I find coordinates for my line? just randomly try different until I find which represents my line on a map?)
How do I do that turrets can be placed anywhere but line for creeps?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
tower defense game help
there are many tutorials online on this topic.
for example:
http://www.goofballgames.com/2010/01/31/how-to-build-a-tower-defense-flash-game-part-1-waypoints-and-enemies/
and
http://www.flashgametuts.com/tutorials/as3/how-to-create-a-tower-defense-game-in-as3-part-1/
there you can get tips for your own td game.
Can we get a corona example as in the ones doe for Magic Defense? Thanks
Since no one wants to comment or share an example. With my little code kungFu book emphasis on "Little" i will try something. Please help me extend it, fix, or design one better :)
Waypoint:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | local wp0 -- player spawns here local wp1 = false; local wp2 = false; local function wpListener () -- check for collision between waypoints and game object -- set each waypoint to true/false based collisions if (wp1 == true) then -- transition game object (go) to wp 2 end if (wp2 == true) then -- transition game object to wp 3...etc end end Runtime:addEventListener("enterFrame", wpListener) |
views:1736 update:2011/10/4 17:12:07
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
How do you specify a new "grab point" for a draggable object?
Blanked, now free!
What's the latest and best documentation to implement Inneractive to my app?
No Build Error Output on windows
Similar functionallity as JavScript functions/closures "direct calling"
Lua for ActionScript Developers: Crash Course
Help with multiplayer?
alpha range warning
static to dynamic ??
need advice to setup lime with CPM
Blanked, now free!
What's the latest and best documentation to implement Inneractive to my app?
No Build Error Output on windows
Similar functionallity as JavScript functions/closures "direct calling"
Lua for ActionScript Developers: Crash Course
Help with multiplayer?
alpha range warning
static to dynamic ??
need advice to setup lime with CPM
corona forums © 2003-2011