Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: PSP Turismo V0.31

                  
   
  1. #21
    DCEmu Legend gunntims0103's Avatar
    Join Date
    May 2006
    Location
    Brentwood, NY
    Age
    34
    Posts
    2,976
    Rep Power
    112

    Arrow 3dinterpreter.lua code that i got so far

    Code:
    status = "3dmap"
    
    --indentify the 3d map as a variable--
    3dmap = Image.load("images/3dmap.png")
    
    --circuit sprites--
    sprite1 = Image.load("images/sprite1.png")
    sprite2 = Image.load("images/sprite2.png")
    sprite3 = Image.load("images/sprite3.png")
    
    --load files--
    loadA = loadfile("game.lua")
    
    --load code as 3d variables--
    3drender = screen:blit
    3dOnscreen = screen:flip()
    3dLoop = screen.waitVblankStart()
    
    while true do
    
    current = 1
    oldpad = Control.read()
    
    while true do
    
    pad = Control.read()
    screen:clear()
    
    --3d image blit to screen--
    3drender(0,0,3dmap)
    
    --blits circuit sprites to screen--
    if current == 1 then
    3drender()
    end
    
    if current == 2 then
    3drender()
    end
    
    if current == 3 then
    3drender()
    end
    
    --this is to scrool through the circuit sprites--
    if pad:up() and oldpad:up() ~= pad:up() then
    current = current-1
    end
    
    if pad:down() and oldpad:down() ~= pad:down() then
    current = current+1
    end
    
    if current == 4 then
    current = 1
    end
    
    if current == 0 then
    current = 3
    end
    
    -----this is to select your menu options------
    if pad:cross() and current == 1 then
    LoadA()
    end
    
    if pad:cross() and current == 2 then
    LoadA()
    end
    
    if pad:cross() and current == 3 then
    LoadA()
    end
    
    3dloop
    3dOnscreen
    oldpad = pad
    
    end
    
    end
    this is what i have so far. I hope that the code being defined as a variable works. I didnt test it yet since im getting the corrordinates of where the circuit selection sprites are going to be blit to.

    Im taking a break i should be done by the end of today if not earlier.

  2. #22
    DCEmu Legend gunntims0103's Avatar
    Join Date
    May 2006
    Location
    Brentwood, NY
    Age
    34
    Posts
    2,976
    Rep Power
    112

    Default

    Code:
    status = "map"
    
    -----Loads images--------
    Background = Image.load("images/3dmap.png")
    sprite1 = Image.load("images/sprite1.png")
    sprite2 = Image.load("images/sprite2.png")
    sprite3 = Image.load("images/sprite3.png")
    
    -----loads files-----
    LoadA = loadfile("game.lua")
    
    while true do
    
    current = 1
    oldpad = Controls.read()
    
    while true do
    
    pad = Controls.read()
    screen:clear()
    
    ----prints to the screen-------
    screen:blit(0, 0, Background)
    
    ----this creates a cursor-----
    if current == 1 then
    screen:blit(45, 95, sprite1)
    end
    
    if current == 2 then
    screen:blit(232, 111, sprite2)
    end
    
    if current == 3 then
    screen:blit(388, 137, sprite3)
    end
    
    
    -----this makes it so that you can scroll through your menu----
    if pad:up() and oldpad:up() ~= pad:up() then
    current = current-1
    end
    
    if pad:down() and oldpad:down() ~= pad:down() then
    current = current+1
    end
    
    if current == 4 then
    current = 1
    end
    
    if current == 0 then
    current = 3
    end
    
    -----this is to select your menu options------
    if pad:cross() and current == 1 then
    LoadA()
    end
    
    if pad:cross() and current == 2 then
    LoadA()
    end
    
    if pad:cross() and current == 3 then
    LoadA()
    end
    
    screen.waitVblankStart()
    screen:flip()
    oldpad = pad
    
    end
    
    end
    i had to do the code over due to my theory of codes being defined as variables. I kept getting a unexpected symbol error next to ever '3'

    so i went the easy way. This is the code i used and everything is working i have a map up and it shows usa circuit, european circuit, and japan circuit. Its a bit primitive but i promise i will make it look alot better as the game progresses i will send you v0.04 now splonger15.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •