+ Reply to Thread
Results 1 to 8 of 8

Thread: [R Games] scoRched (beta version 0.11)

Hybrid View

  1. #1
    R purist
    Points: 13,351, Level: 75
    Level completed: 26%, Points required for next Level: 299
    TheEcologist's Avatar
    Location
    The Netherlands.
    Posts
    1,282
    Thanks
    112
    Thanked 250 Times in 126 Posts

    [R Games] scoRched (beta version 0.11)

    Hi Guys,

    Please find attached a new R game, a clone one of my favorite old DOS games by Wendell Hickens, Scorched Earth.

    Please help with beta testing. In this beta version 0.1, I have built a very simple game with

    • No wind
    • Stupid AI
    • flat world
    I will implement improvements on these features in the future. Please give any suggestions you may have on how to improve the game. This game runs without any packages.

    How to play?
    Copy & paste the code into R or use source(), then type "scoRched()" and follow the instructions provided in the graphics. You can only choose 1 game yet (please help me improve these, or add suggestions for your own). Any suggestions on interface improvements are welcome but I want to keep this base package!

    Credit goes to Dason for showing us great new ways of procrastination in R.

    This has been tested on Linux (PCLOS, e17,R 2.13.0). Works normally.

    Test WIN 7 VM; speed of animations seems too high. Anybody else experiencing instant projectiles?

    As for copyright ect, the code is free for everyone to use and abuse - just give credit where credit is due (like towards Wendell Hickens).

    Download the code here:

    Version 0.11
    Fixed instant projectile trajectories, now customizable fps via scoRched(fps = X ); increased fps will slow down animations
    ScoRched.V0.11.txt

    Version 0.10
    ScoRched.V0.1.txt

    Requests for next release:
    Sound (trinker)
    randomized start positions (trinker)
    The true ideals of great philosophies always seem to get lost somewhere along the road..

  2. The Following 2 Users Say Thank You to TheEcologist For This Useful Post:

    bugman (07-25-2011), trinker (07-24-2011)

  3. #2
    FormerlyKnownAsRaptor
    Points: 24,343, Level: 94
    Level completed: 99%, Points required for next Level: 7
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    3,166
    Thanks
    882
    Thanked 550 Times in 498 Posts

    Re: [R Games] scoRched (beta version 0.1)

    Thanks for another fun way to procrastinate. I'm dodging qualitative micro coding right now.

    Test WIN 7 VM; speed of animations seems too high. Anybody else experiencing instant projectiles?
    Yes instant projectile on win7. The game still works. It reminds me of gorilla basic I used to play in high school. I like it. Any chance of hit and miss sounds in future versions. Nothing more satisfying than an explosion sound as your oponent disinigrates.
    "If you torture the data long enough it will eventually confess."
    -Ronald Harry Coase -

  4. #3
    RotParaTon
    Points: 46,229, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardFrequent PosterCommunity AwardMaster Tagger
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,076
    Thanks
    211
    Thanked 1,607 Times in 1,377 Posts

    Re: [R Games] scoRched (beta version 0.1)

    It looks like you could add a very short Sys.sleep in while you're doing the trajectory animation to slow it down to non-instant.

  5. #4
    R purist
    Points: 13,351, Level: 75
    Level completed: 26%, Points required for next Level: 299
    TheEcologist's Avatar
    Location
    The Netherlands.
    Posts
    1,282
    Thanks
    112
    Thanked 250 Times in 126 Posts

    Re: [R Games] scoRched (beta version 0.1)

    Yea, I'm already using Sys.sleep extensively. However to me this reveals a problem in my OS (slow loops or graphical plotter), something more serious.

    Anyway what else would you guys like to see implemented? Weapons choice? Missile Shields? Nukes? Non Earth gravity? Airstrikes? Ammo? Buy Menu?

    I am now thinking about my A.I. handler.

    Anyway here is version 0.11 (see post # 1) with improved trajectory animation (customizable for your system).

    Sound can be implemented pretty easily, I'll choose some nice ones from http://www.freesound.org
    Look for it in the next release.

    Dason, when do you think we have enough for a package?
    The true ideals of great philosophies always seem to get lost somewhere along the road..

  6. #5
    FormerlyKnownAsRaptor
    Points: 24,343, Level: 94
    Level completed: 99%, Points required for next Level: 7
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    3,166
    Thanks
    882
    Thanked 550 Times in 498 Posts

    Re: [R Games] scoRched (beta version 0.11)

    I'd love to see a games package

    Sorry TheEcologist but it still moves pretty fast (not as instant but almost). For the oponent turn it moves instantly.
    I'm running windows 7 homepremium, 64 bit OS. I'm running [R] version 2.14 (beta version) {maybe this is pertinent}

    I'd like the opponent triangle randomized (change position) after each game? Not sure if this is possible but between you and Dason's heads I'm sure you can come up with a way.

  7. #6
    R purist
    Points: 13,351, Level: 75
    Level completed: 26%, Points required for next Level: 299
    TheEcologist's Avatar
    Location
    The Netherlands.
    Posts
    1,282
    Thanks
    112
    Thanked 250 Times in 126 Posts

    Re: [R Games] scoRched (beta version 0.11)

    Hi trinker, randomization of location is very possible! Eventually I would prefer the user to choose a location, and then the AI also chooses.

    Have you fooled around with the fps option? for instance scoRched(fps=1000) will make it go very slow on my win 7 vm (as this forces very fine scaled animations (1000 per second - likely too much to handle).
    Anyway the animations speed could still use some improvements. I'll think on an overall more intelligent way to do it. [yea I know fps is not the correct term]

    On the AI, it will get smart in version 0.2. It will use a 1-dim optimization algorithm remembering wind speed, angle, power and its effect on distance to target. Also I will add an option for special weapons with limited ammo but more mass (thus heavier) and bigger explosions. Your base will also have limited power, so you can't shoot very heavy ammo every turn (power will slowly replenish every turn).
    The true ideals of great philosophies always seem to get lost somewhere along the road..

  8. #7
    FormerlyKnownAsRaptor
    Points: 24,343, Level: 94
    Level completed: 99%, Points required for next Level: 7
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    3,166
    Thanks
    882
    Thanked 550 Times in 498 Posts

    Re: [R Games] scoRched (beta version 0.11)

    Fixed instant projectile trajectories, now customizable fps via scoRched(fps = X )
    I got so excited to play I missed this. Sorry. Works just the way you describe now. Thanks.

  9. #8
    Ninja say what!?!
    Points: 8,297, Level: 61
    Level completed: 49%, Points required for next Level: 153
    Link's Avatar
    Posts
    1,165
    Thanks
    37
    Thanked 82 Times in 75 Posts

    Re: [R Games] scoRched (beta version 0.11)

    This is very nice ecologist! Thanks for sharing.

+ Reply to Thread

Posting Permissions

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








Advertise on Talk Stats