![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on [Release] thought i might try a pokemon game within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I'm not sure if this is so much a release, than a preview... Anyways, I just started learning lua and ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
I'm not sure if this is so much a release, than a preview...
Anyways, I just started learning lua and made this. It's my attempt to make a pokemon remake. I know that there are a lot of these out there, but I haven't found one that lets you trade with friends yet. This is more for personal use and for friends when I finish, but I thought I might put it up here to see what other people thought about it. here is the link: preview : http://chrisp6825.googlepages.com/po...me-preview.rar preview 2 : http://chrisp6825.googlepages.com/po...e-preview2.rar I wrote more about it and me inside it and more about what I'm trying to do with this. I don't want people to reply with things like "oh my god, stop making pokemon games" or "this sucks/blows" If it sucks, then tell me why. Tell me what I can do to make it better and what you think is so bad about it. what im working on right now : maps and tile sets for maps and objects next : debating between fight scene or talking to npc's. read in-game signs. in-game menu. own at least one pokemon. few pokemon stats (for the owned pokemon). then release an alpha! (note that I do realize that these next things will take a long time) Anyways, ya... check it out. Last edited by chrisp6825; 02-20-2008 at 09:48 PM.. |
|
|
|
|
|
#2 | ||
![]() Enter Custom Title
|
hmm i would suggest a spritesheet for the character :]]] that will make life easier for u
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#3 |
![]() |
what do you mean, sprite sheet? something like this?...
http://chrisp6825.googlepages.com/dp_npcs.png oh, actually... i think i might know what you mean. like, put all of the sprites i used on that char. on one pic then load them through coordinates? |
|
|
|
|
|
#4 | ||
![]() Enter Custom Title
|
yes all sprites on one sheet :] and you could blit them like so
screen:blit(player.x,play er.y,photo name here,[x coordinate,y coordinate,with,height]) so you would only need to load one picture for your character :]
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#5 |
![]() |
ohhh.. i never really thought of that. that should help in the long run if i get real far in this. thanks man, ill start on that next time i get a chance.
so what did you think about it? coming from someone who started learning this stuff like.. last friday... |
|
|
|
|
|
#6 | ||
![]() Enter Custom Title
|
umm well...i think it still has a long way to go of course but good job considering you have just started...:]]
collision detection would be nice though :P EDIT: also nice coding format lol... iv never had a proper teacher for this stufff lol just the internet so if u look at anything iv made its kinda sloppy haha ...
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#7 |
![]() |
thanks.
um ya.. well, im learning as i go and i only worked on this for about 5 days... i actually just learned to make my guys legs move or "walk" haha. so ya.. but im prolly gonna work on that next. im thinking i need to make the grass, house, and other objects separate from each other. and add them in as their own objects?... i havnt looked for any yet, but if you have any tips, or links to some good tutorials on the collisions, i would really like it. thanks though for looking at what ive gotten so far. feed back is always good. edit - haha, ya well ive never really commented on my code, in it. in class i usually just did the program, made it work and turn it in. so i got bad grades and eventually learned to do it. i also like the tabbing and stuff cause it helps me read it. i can tell when and where a if, for and function end. |
|
|
|
|
|
#8 | ||
![]() Enter Custom Title
|
hmm it would be good i think to set them as their own objects with predefined characteristics so that when they are needed multiple times u could just call that object and everything will be set already :] ...
there are some good tutorials here: http://www.evilmana.com/tutorials/lua_tutorial_12.php that is a tut on collision
__________________
http://img489.imageshack.us/img489/5841/99862310tg8.jpg Quote:
Quote:
|
||
|
|
|
|
|
#9 |
![]() |
ohh, box collisions... that stuff gets messy when your not messing with just squares...
luckily i am. haha. this will help though, thanks. ill update this when i finish the collisions and you or someone can tell me what you think. thanks for your help. gotta mod a friends psp then sleep now. later |
|
|
|
|
|
#10 |
![]() ![]() ...in a dream...
|
If your using Pokemon RPG sized sprites, it honestly won't be noticeable if the collision is off a few pixels if you use BBC. But there may be a few exceptions where BBC is very noticeable (curvey path or circular arena or something I dunno). For those you can use a function something like this
Code:
function distance(a,b) return math.sqrt ( (b.x-a.x)^2 + (b.y-a.y)^2 ) end function BoundingCircles (imageA, imageB) -- remove the comment on the line below this for bounding ellipse return (distance(imageA,imageB) <= imageA.width) -- or (distance(imageA,imageB) <= imageA.height) -- or if both ellipses don't have corresponding radii, copy and paste the same thing, just replace the <= imageA.width and height with imageB.width and imageB.height end ![]() We all hope for the best with this, but starting relatively big never ends well But still I wish you the best.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#11 |
![]() |
ya. this seems like a big project but it isnt really, at least in my mind.
heres how i see the progress will go : show a player show a background or grass move player make collisions make pokemon battle make tall grass for wild pokemon thats all i need for a small functional game. and im close to it... then i plan on this : some npc's catch pokemon (maybe a small, short story. like 2 gyms) trade pokemon with npc's trade pokemon through internet or router. but thats all planned to come waaay later. i dont plan on giving up on this. its mostly a time passer when im bored or feeling creative. |
|
|
|
|
|
#12 |
![]() Ænima
|
It may not seem like a big project, but it is. Wait until you get to the game mechanics. Exp Points, Stats, Level Up, etc. And don't forget you have to plot all the Pokemon data for the Pokedex. I was going to make a Pokemon clone before, but realized that it would just be too much work to do alone.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG] Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs. |
|
|
|
|
|
#13 |
![]() |
hmm.. ya good point. well, i still want to go as far as i can go. i might put the level and stats on that second part of the list.
for now, i just want a functioning game, that could be mistaken as a real pokemon game. then work from there. i know it will be hard and long, but i dont plan on giving up. im not set on a certain time limit, and i do this in my spare time. so it will take a while but i dont see it as being a monster project. |
|
|
|
|
|
#14 | |
![]() ![]() total-Z
|
Quote:
"Exp Points, Stats, Level Up, etc" can be held in a table of tables (where the parent table is the pokemon you currently have on you, and the child tables have the name, "Exp Points, Stats, Level Up, etc". Pokedex = same technique. Seriously, simple stuff; even for new people.
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
|
#15 |
![]() |
Took a bit of a look at your index.lua. Astounding.
It took you 41 lines to do this: Code:
function math.round(n)
return math.floor(n+0.5)
end
Also, several of your other functions can be cut in size by many times. You've got the concepts of how to do things down very well, better than most pokemon games, but I'd recommend spending a few weeks just making very simple things (like space invaders - it can be done in the code of one of your functions for this) and get a feel for lua and how you can do various things before you dive into a big project. Just to show you that it really CAN be done, I made a quick space invaders concept game in 35 lines (haven't tested it yet but I doubt there are any huge flaws): Code:
player,enemies,enemyImg,bullet,level,gameover = {x=0,y=239,w=32,h=32,img=Image.load("player.png")},{},Image.load("enemy.png"),{x=player.x+16,y=player.y,w=1,h=1,firing=false,s=10},1,false
function collision(ob1,ob2)
return (ob1.x + ob1.w > ob2.x) and (ob1.x < ob2.x + ob2.w) and (ob1.y + ob1.h > ob2.y) and (ob1.y < ob2.y + ob2.h)
end
while not gameover do
screen:clear()
screen:blit(player.x,239,player.img)
for i = 1, table.getn(enemies) do
screen:blit(enemies[i].x,enemies[i].y,enemyImg)
if enemies[i].y > 239 or collision(enemies[i],player) then gameover = true end
enemies[i].y = enemies[i].y+0.02*level
if collision(enemies[i],bullet) then table.remove(enemies,i) break end
end
if bullet.firing then
bullet.y = bullet.y-bullet.s
if bullet.y < 1 then bullet.firing = false end
elseif pad:cross() then
bullet.x = player.x+16
bullet.y = player.y
bullet.firing = true
end
if table.getn(enemies) < 1 then
for i = 1,30 do table.insert(enemies,{x = (tonumber(string.sub(i-1,-1))+1)*32+48,y=math.ceil(i/10-1)*32,w=32,h=32} end
level = level + 1
end
if pad:left() then
player.x = player.x - 5
if player.x < 0 then player.x = 0 end
elseif pad:right() then
player.x = player.x + 5
if player.x > 448 then player.x = 448 end
end
screen.waitVblankStart()
screen.flip()
end
|
|
|
|
|
|
#18 | |
![]() Ænima
|
Quote:
I'm not saying this stuff is difficult, but it's VERY VERY time consuming. Just for the original 151 Pokemon, it could take 200 hours of work to gather all the data that needs to be done. Pokemon is a very complex RPG, and won't be finished in two months. -= Double Post =- I just looked at this code, and by the looks of it, you are NOT going about this the right way. There's so many things that you are doing to make things more difficult on yourself. I'm not saying their wrong, but they won't pay off in the long run. First thing you need to do, is get a basic tile engine down, because making each map a huge picture like that, will not only boost the file size, but make collision detecting a *****.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG] Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs. Last edited by Judas; 02-17-2008 at 02:06 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#19 | |
![]() ![]() total-Z
|
Quote:
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
|
#20 | |
![]() |
Quote:
|
|
|
|
|
|
|
#21 | |
![]() |
Quote:
well, i was having problems with some rounding function i found. plus, yours only rounds up. like, if i had put "Math.round(4.25)" then it would return 5, not 4. but i found other that rounded up and down but for an odd reason they wernt rounding to a whole number, so i took a cheap way out cause i didnt want to bother with it then. i went back and fixed it now to something better that works now, tho. and, if you read my comments in the code, it says " if you want to criticize me, then read my about me" which says "I'm still learning all the functions, shortcuts, and limitations of psp lua, so I might have done some wrong things in here." |
|
|
|
|
|
|
#23 | |
![]() |
Quote:
You make some very good points, but look... I released this to see what some people thought of it. Like, the idea, how would they like it if i could try to do multiplayer, and how good they thought it was considering it that I just started learning this a week ago. When I work on this, I ALWAYS have to go back and change things. Either cause I found something stupid I did (like the big map picture) or cause I found an easier, less problematic way of doing it. The big map picture was just to see what it would look like when you moved around. I didnt want to test and see my guy walking over a black world, so i pasted a quick picture of a town to see it. Of course im going to do tiles, duh. but I was working on getting my guy to have the "walking" animation before I did the tiles and collisions. And I also know that I could make a tile set of my guy walking instead of 20 pics in different folders and loading each of them. Im working on that too. I uploaded this right after I found out, and finished making my guy do the walking animation. Soon, im going to learn collisions and put SMALL ones in and see how it goes. Ill also put a list of what im going to do on this on the first post. As in, what I know how to do and what part of it im working on. right now at this moment I dont know how to do collisions but i should know about an hour from now, if i work on it tonight. If you doubt me, good. move on, find another game to wait for and play. im not making this for other people on this site. im making it as a learning tool, and for friends around me with psp's. i thought id upload it so yall could help me, give me tips, and when its playable other people on the internet can check it out too. But if your going to put me down, discourage me, and talk bad about it then leave. dont reply or comment on it. im not saying that you put me down, judas. but your not helping either. I know that it can be a BIG project, and theres tons to do. but baby steps. You can have a "functioning pokemon game" without so much detail into the battles, stats, and stuff like that. it wont be so fun, but im not going to work on that right away. I see it like this... i make a game where you walk around. you have boundaries, objects, and "people". you cant talk to them, yet. you can go into houses, and walk in grass. then next release or checkpoint you have random wild pokemon and a battle scene next, talking npc's, SOME stats, few items and maybe catching. but this is all way later, i still need collisions, and to make tile sets. this is all spare time too, so im not worrying much about it. i know my code is messy, "noobish", and there are way better ways to do some things, but im new. im still learning as i go. instead of say "wow, you did way too much to do just this" or "thats a horrible way to do this" help me out. give me an example and tell me about it. anyways, this post is turning into a book and im tired of typing. so... ya.. |
|
|
|
|
|
|
#24 |
![]() ![]() Developer
|
usually when people said "wow, you did way too much to do just this" or "thats a horrible way to do this", from what i read on this thread they tended to give u examples as well
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#25 | |
![]() |
Quote:
i know, i was just saying that. and i think i started getting mixed up with another place i was getting tips from where someone else was doing that. i didnt mean to put anyone off, im tired and just got home. i got on here and there a few post doubting me and saying i was doing somethings wrong. i just wanted to let everyone im new and know that a lot of things are wrong. no hard feelings, i hope? |
|
|
|
|
|
|
#26 |
![]() ![]() Developer
|
chris you'll always get doubters but if you see it through than you well have the self-satisfaction that you just one-upd those doubters
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#27 | |
![]() |
Quote:
math.round(1) cut the decimal off 1.5 - 1 math.round(4.25) cut the decimal off 4.75 - 4 math.round(4.75) cut the decimal off 5.25 - 5 math.round(1.5) cut the decimal off 2 - 2 math.round(1.49) cut the decimal off 1.99 - 1 It works just fine. |
|
|
|
|
|
|
#28 | |
![]() Ænima
|
Quote:
And to the original poster, I an NOT doubting you. I hope you do come through. I'm just saying, that this project is a lot bigger than you think, and you're going to have to put a lot of time into it.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG] Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs. |
|
|
|
|
|
|
#29 | |
![]() |
Quote:
well i fixed my rounding function anyways today, thanks though. i was wondering though, could anyone help me out on the player tilesets? im going to put all of the pictures of my guy onto one file, then load the whole file and assign different parts of it to variables. like, say my guy facing right is at (20,0) of the pic and is (19,30) wide and tall. could i make a new image that just has the part of the image from those dimensions? i know you can blit images like that, but i have to make variables like player.standing.right.wid th and player.standing.right.x when ever i blit it. hope that makes any sense. to judas : ok. i know this is going to take a long while. but its just something im doing as a pass time and not worried about how long it takes at all. i do know how big this can get but im not going to let it over come me. i have a bit of ocd and i tend to not stop on things. when i was in my comp sci class learning java, if i didnt finish a project on time i would still at least finish it. even if my teacher told me it wouldnt matter to my grade if i did or not, i just could not go on knowing that i had something unfinished. so, it will take me time, but i wont worry about how long it takes. just as long as i finish it eventually. thanks for not doubting me though. -= Double Post =- cool, i figured out the character sheet. i just needed to know how to blit onto images, then blit that image. right now im making the character sheet and making the functions to make it animate again. next will come map tile sheets. first will be grasses then some houses. after i have 1 or 2 houses ill try out collisions. but now, i need to sleep. Last edited by chrisp6825; 02-17-2008 at 11:03 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#30 | ||
![]() ![]() total-Z
|
Quote:
-= Double Post =- Quote:
floor(1) = 1 floor(1.1) = 1 floor(1.9) = 1 floor(2) = 2 ceil(1) = 1 ceil(1.1) = 2 ceil(1.9) = 2 ceil(2) = 2
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth Last edited by youresam; 02-18-2008 at 01:53 PM.. Reason: Automerged Doublepost |
||
|
|
|
![]() |
| Tags |
| game , pokemon , release , thought |
| Thread Tools | |
|
|