forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Magic Maze & Monster World Online

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Ats



Joined: 05 Dec 2005
Posts: 37
Location: Biarritz - France

PostPosted: Mon Dec 05, 2005 6:24 am    Post subject: Magic Maze & Monster World Online Reply with quote

I've discovered LUA a few days ago and quickly made "Magic Maze" (v0.1beta)
You can download it here:
http://atien.free.fr/jeux/magicmaze/magicmaze.rar

It's a port of Ravensburger game "Labyrinth". Since it is my first LUA game, it's most badly written, but it's already working.
Right now, you can only play with 4 human players and the game is never ending.

Everything need to be done so feel free to give me your comments and suggestions.


Last edited by Ats on Tue Mar 07, 2006 8:38 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Bob535



Joined: 04 Nov 2005
Posts: 56

PostPosted: Tue Dec 06, 2005 3:54 am    Post subject: Reply with quote

yay, thanks, come out and join us on IRC

irc.freenode.net
#luaplayer
Back to top
View user's profile Send private message
DrNicket



Joined: 26 Nov 2005
Posts: 13
Location: Duncan, BC, Canada

PostPosted: Wed Dec 07, 2005 11:55 am    Post subject: English translation of the Readme Reply with quote

=============================
Magic Maze by Etienne Bégué
=============================
v0.1

http://www.atien.net

Magic Maze is an adaptation of the game Labyrinth by Ravensburger on PSP.
Entirely (but quickly) written in LUA, LUAplayer is required to play this game (http://www.luaplayer.org/)


======
Play
======

The goal is to traverse the labyrinth in order to amass the most treasures

======================
Controls of the play
======================

The play proceeds in two phases:

1 - Placing the free flagstone

(D-pad) to move the free flagstone around the labyrinth
(X) to rotate the flagstone
(O) to insert the flagstone in the labyrinth

2 - Moving of the pawn

(D-pad) to move the pawn
(O) to confirm its position

==========
History
==========

Version 0.1
- Posted the playable beta version online
- The game never ends
- 4 human Players only

[English translation by DrNicket]
_________________
Dr. Nicket
----------------------------------------------------------------------------
"Alright, you primitive screwheads, listen up. See this? This is my BOOMSTICK!"
- Ash (Bruce Campbell)
Back to top
View user's profile Send private message Yahoo Messenger
Ats



Joined: 05 Dec 2005
Posts: 37
Location: Biarritz - France

PostPosted: Fri Dec 09, 2005 11:43 pm    Post subject: Reply with quote

Thanks DrNicket!

I've got a little question:
I've made a fonction to check how many flagstones are left in the three boxes c0max, c1max and c2max, and pick one if the chosen box is not empty.

Code:
function check()
   -- Choose one of the three boxes
   i = math.random(0, 2)
   name = _G["c"..i.."max"]
   -- While loop if the chosen box is empty
   while name == 0 do
      i = math.random(0, 2)
      name = _G["c"..i.."max"]
   end
   print (c0max.." "..c1max.." "..c2max)
   -- Pick one flagstone in the chosen box
   name = name - 1
   return i
end


but name = name - 1 does not work so I used this instead:

Code:
if i == 0 then
   c0max = c0max - 1
end
if i == 1 then
   c1max = c1max - 1
end
if i == 2 then
   c2max = c2max - 1
end


It works but I'm not really proud of this. Can someone help me to get name = name - 1 working?

Thanks.
Back to top
View user's profile Send private message Visit poster's website
fullerlee



Joined: 03 Nov 2005
Posts: 54

PostPosted: Sat Dec 10, 2005 4:02 am    Post subject: Reply with quote

I'm not sure how you're populating _G["c"..i.."max"] (which seems to be where you're setting name from), but you may need to do this:

Code:
name = tonumber(name) - 1


Lee
Back to top
View user's profile Send private message
Ats



Joined: 05 Dec 2005
Posts: 37
Location: Biarritz - France

PostPosted: Sat Dec 10, 2005 5:24 am    Post subject: Reply with quote

Thanks Lee, but tonumber don't work too.
After a bunch of tries I finally get this:
Code:
_G["c"..i.."max"] = name - 1
Back to top
View user's profile Send private message Visit poster's website
Ats



Joined: 05 Dec 2005
Posts: 37
Location: Biarritz - France

PostPosted: Tue Mar 07, 2006 8:23 pm    Post subject: Back from the sewers Reply with quote

Hi! I've managed to recover some data from my broken hard drive.
Now I can tell you about the two LUA projects I was working on months ago.
You'll need LUA player for both of them.
Enjoy :D


Magicmaze - v0.2
http://atien.free.fr/jeux/magicmaze/magicmaze.rar
- Addition of the title/menu
- New icon for LUA browser
- Large code optimization
- The treasure cannot any more appear on an occupied box
- The pawn which begins the game is selected randomly
- Winner's display at the end


Monster World (Online?) - v0.1
http://atien.free.fr/jeux/mwo/mwo.rar
For now, it's just a test for making a good engine for a platform game.
The sprites comes from Wonderboy: the dragon's trap.
You can walk through the town with the human hero.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group