Well. How do I start. For LA class, me and my group must create a theme park about a book we read. (Scorpio Races for those wondering) I have been tasked with the electronic part, and I have to create something to show, I.e a website. I decided, because I know how to code a little and have Codea, to make a 3D interactive world that the user can explore, that is a replica of our theme park. One problem occurs though. I don’t know how to code that advanced. So, I ask, how? How should I get started? I know I want to us Sprites but that’s about it. Help.
Whats your time limit? Also, 3D… That would take months maybe to make a themepark, and not even a acceptable one to hand in if it has to be a replica. my suggestion; Look at @Ignatz’s 3D town
I have until the end of January. Maybe not even 3D, I just need to show a layout using buildings. It would be nice to be able to have a character walk through it but that’s not that important. I could even just make it a 2D birds eye view
Honestly, if you have no idea where to start I doubt you can learn enough to make something so ambitious within the month.
Hey! Message to all Newbees! you newbees should stop choosing a forum name with ‘newbee’ in it! Because after a couple month, you become experienced, but you still have to keep your old name… look at the experienced CodeaNoob teaching a NoobieCoder who will teach NewNewbie in two months etc… Lol!
@NoobieCoder Here’s something that you can start with. Just keep adding the sprites you want and their x,y values to a table. You can add different tables and draw routines for other sprites. Move your finger around the screen to move the character. A double tap will move the character back to the center.
displayMode(FULLSCREEN)
function setup()
gdx=WIDTH/2
gdy=HEIGHT/2
dx=0
dy=0
size=3000
move=false
tree={vec2(300,300),vec2(100,600)}
rocks={vec2(400,300),vec2(-200,-300)}
buildings={vec2(-100,100),vec2(300,-100)}
end
function draw()
background(40, 40, 50)
if move then -- move the character
dx=dx-(sx-mx)/10
dy=dy-(sy-my)/10
end
-- scroll the grid and character left or right
if dx>WIDTH-50-gdx then
gdx=WIDTH-50-dx
elseif dx<gdx*-1+50 then
gdx=50-dx
end
-- scroll the grid and character up or down
if dy>HEIGHT-50-gdy then
gdy=HEIGHT-50-dy
elseif dy<gdy*-1+50 then
gdy=50-dy
end
pushMatrix()
translate(gdx,gdy) -- move grid and character
sprite("Planet Cute:Grass Block",0,0,size*2,size*2) -- draw background
drawSprites()
sprite("Planet Cute:Character Boy",dx,dy) -- draw character
popMatrix()
end
function drawSprites()
drawTree()
drawRocks()
drawBuildings()
end
function drawTree()
for a,b in pairs(tree) do
sprite("Planet Cute:Tree Tall",b.x,b.y)
end
end
function drawRocks()
for a,b in pairs(rocks) do
sprite("Planet Cute:Rock",b.x,b.y)
end
end
function drawBuildings()
for a,b in pairs(buildings) do
sprite("Small World:Mine",b.x,b.y)
end
end
function touched(t)
if t.tapCount==2 then -- double tap to move character back to center position
dx=0
dy=0
gdx=WIDTH/2
gdy=HEIGHT/2
end
if t.state==BEGAN then -- finger starting x,y position
sx=t.x
sy=t.y
elseif t.state==MOVING then -- finger direction to move character
move=true
mx=t.x
my=t.y
elseif t.state==ENDED then -- finger raised, stop moving character
move=false
end
end
Wow! Thanks so much! This will help a ton!