Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7668685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:25:22+00:00 2026-05-31T15:25:22+00:00

I am trying to create a game where the enemies walk around based on

  • 0

I am trying to create a game where the enemies walk around based on what is coded in a Lua script file. The game is currently created in C# with XNA. The reason I want to use scripting language for monsters is because if I want to add more enemies to the game I can use the same scriptfiles for both Android and WP7.

So for example:

function update(gameTime)
x = x - gameTime * 0.3;
return x, y
end;

Or something a little more advanced (scripts are more advanced then this, if you want to see something more advanced I can post that too):

function update(gameTime)
x = x - gameTime * 0.2;
y = math.sin(x / 30) * 20 + starty;
return x, y
end;

Now what I want to do is port this game to Android and Windows Phone 7. There are however a few problems with this:
Lua doesn’t seem to be able to work on Windows Phone 7 since it requires parts of the Reflection.Emit module in .net that isn’t available. This is why I chose to use Iron Ruby, this library does work on both WP7 and Android but on WP7 it runs too slow to be able to update more then 10 monsters (60x per second) at a time.

Does anyone have any good suggestions on this topic? (other ways to do this without scripting languages, or a better scripting language for this purpose???)

PS:
For the WP7 game I use the special version of XNA
For the Android version I use the android SDK plugin within eclipse (So java).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:25:23+00:00Added an answer on May 31, 2026 at 3:25 pm

    Did you try JINT?

    I have no clue as for the perf you will get from it.. But you may want to try it.

    https://github.com/joelmartinez/Jint.Phone

    S

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to create a menu system for a game and cannot
I am trying to create a pacman game to learn XNA, but I am
I am trying to create my first game for android. I currently have a
I'm trying to create a small and basic ajax based multiplayer game. Coordinates of
I am trying to create a game server, and currently, I am making it
Using Rebol/View 2.7.7, I'm trying to create a card game based on Nick's Rebol
I'm sort of new to c++ and i'm trying to create a game. I
I am trying to create a platformer game and i am trying to make
For a game I am trying to create for Android I am looking for
I'm trying to create a chat box for my game. The user type's their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.