PSP Lua Programming - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

PSP Lua Programming

Description:

It bares a close resemblance to Java. It is as easy to use as BASIC. Lua means moon in Greek it is not an acronym. What is a PSP? ... – PowerPoint PPT presentation

Number of Views:154
Avg rating:3.0/5.0
Slides: 10
Provided by: stude1032
Category:
Tags: psp | bares | lua | programming

less

Transcript and Presenter's Notes

Title: PSP Lua Programming


1
PSP Lua Programming
  • By Kevin Randino

2
What is Lua?
  • Lua is an interoperated scripting language.
  • It bares a close resemblance to Java.
  • It is as easy to use as BASIC.
  • Lua means moon in Greek it is not an acronym.

3
What is a PSP?
  • A PSP is a portable gaming device created by
    Sony.
  • With just the right modifications, it can support
    homebrew games such as Lua scripts.
  • Thanks to Sonys horrible security, homebrew on
    the PSP has a strong fanbase.

4
Why Program for the PSP?
  • High CPU power for a portable system (333 MHz)?
  • Easy to use Coding Language.
  • More people do Homebrew on it than the DS.
  • DS Cartages are expensive

5
What Hell have I Unleashed?
  • Throughout my Seminar class I've been working on
    a Random 3D Maze Generator called MazeGen3D.
  • I built it from the ground up with no knowledge
    of 3D programming.

6
How do you generate mazes?
  • A Maze is nothing more than a 2D Integer Array,
    where 0 is a wall and 1 is a path.
  • To create a maze, you must
  • Create a start and end point.
  • Create a straightforward pathfrom the start
    point to the end point.
  • Add Branches
  • Remove extra paths
  • The end result should look something like this

7
OK, so you have a 2D Maze... now what?
  • It's quite simple really, now that I've created a
    program that makes random mazes, I just need to
    place 3D cubes wherever there's a wall.
  • By placing the cubes together, it will make it
    appear as though it is a continuous wall, and
    therefore, a3D maze is born!

8
What can you do with Mazes?
  • Because maze files are so generic, they can
    easily be modified to be played differently.
  • One example is my 3D Pacman engine that takes
    maze files and turns them into a Pacman game.

9
What did I learn from this?
  • Through this program I got a basic knowledge of
    programming 3D games.
  • I also learned a lot more about recursion, code
    optimizing, and working with random factors.
  • I'll be using what I learned in future games both
    for and not for the PSP.
Write a Comment
User Comments (0)
About PowerShow.com